MIRLC2 is an incremental improvement over MIRLC. For the moment it includes the MIRLCRep2 module, which is designed for repurposing audio samples from Freesound.org using and expanding the Freesound quark for SuperCollider. It provides improved methods for querying and some automatic methods. It can also apply effects to the downloaded sounds.
Creates a new instance.
backend |
An Integer indicating the database used, default 0 to use the Freesound database. |
dbSize |
An Integer indicating the size of the database in terms of the total number of sounds of the Freesound database. |
path |
A String containing the path name where the sounds are downloaded (write mode). |
creditsPath |
A String containing the path name where the sound credits list is stored (write mode). |
Returns a sound by its Freesound ID number.
id |
An Integer indicating the Freesound ID number of a sound. |
size |
An Integer that indicates the number of sounds to be retrieved. This is only used for internal purposes as only one sound is expected to be returned from a Freesound ID. |
A FSSound sound
Returns a sound by random.
size |
An Integer that indicates the number of sounds to be retrieved. |
A FSSound sound
Returns a sound by a defined tag.
tag |
A String that indicates the tag. |
size |
An Integer that indicates the number of sounds to be retrieved. |
A FSSound sound
Returns a similar sound from a target sound.
targetnumsnd |
An Integer indicating the index number of the sound in the group. |
size |
An Integer that indicates the number of sounds to be retrieved. |
A FSSound sound
Returns a sound by content search that is defined by a target sound (feature) and filter.
size |
An Integer that indicates the number of sounds to be retrieved. |
feature |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the feature value (
|
fvalue |
An Integer or Float that indicates the value of the argument |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value (
|
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter (
|
A FSSound sound
Returns a sound based on the dissonance feature.
size |
An Integer that indicates the number of sounds to be retrieved. |
fvalue |
An Integer or Float that is paired with the dissonance feature and indicates the value of the feature |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value ( |
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter ( |
A FSSound sound
Returns a sound based on the duration feature.
size |
An Integer that indicates the number of sounds to be retrieved. |
fvalue |
An Integer or Float that is paired with the duration feature and indicates the value of the feature |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value ( |
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter ( |
A FSSound sound
Returns a sound based on the BPM feature.
size |
An Integer that indicates the number of sounds to be retrieved. |
fvalue |
An Integer or Float that is paired with the BPM feature and indicates the value of the feature |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value ( |
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter ( |
A FSSound sound
Returns a sound based on the pitch feature.
size |
An Integer that indicates the number of sounds to be retrieved. |
fvalue |
An Integer or Float that is paired with the pitch feature and indicates the value of the feature |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value ( |
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter ( |
A FSSound sound
Returns a similar sound from a target sound filtered by a filter.
targetnumsnd |
An Integer indicating the index number of the target sound in the group of sounds. |
size |
An Integer that indicates the number of sounds to be retrieved. |
fx |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter value ( |
fxvalue |
A Symbol in an internal dictionary or a String from the Freesound API, which pairs with the filter ( |
A FSSound sound
Mutes all the sounds except for the selected sound from a given group.
targetnumsnd |
An Integer indicating the index number of the sound in the group. |
Mutes a selected sound from a given group.
targetnumsnd |
An Integer indicating the index number of the sound in the group. |
Mutes all the sounds from a given group.
Stops the sound of the group of sounds (sets the amplitude to zero).
Plays sounds sequentially, one after the other.
Plays sounds in parallel, all of them looping at the same time.
Sets the volume of the group of sounds within a range 0..1.
vol |
A Float indicating the volume value. |
Fades out all synths of a group of sounds with a smooth fade out.
release |
Release time in seconds. |
Activated when stopping the code, stops all sounds.
Plays the sounds of the same group several times at different rates that are changed on every certain interval.
times |
An Integer that indicates the number of times that the rate will be changed. |
tempo |
An Integer that indicates duration of the interval. |
Plays the sounds of the same group several times at different rates that increasingly slow down that are changed on every certain interval.
startspeed |
An Integer that indicates the start rate of the sound. |
endspeed |
An Integer that indicates the end rate of the sound. |
times |
An Integer that indicates the number of times that the rate will be changed. |
tempo |
An Integer that indicates duration of the interval. |
Plays the sounds of the same group several times at randomly assigned rates during a certain interval.
times |
An Integer that indicates the number of times that the rate will be changed. |
tempo |
An Integer that indicates duration of the interval. |
Returns a set of similar sounds from a target sound scheduled to be downloaded on every certain interval.
targetnumsnd |
An Integer indicating the index number of the sound in the group. |
size |
An Integer that indicates the number of sounds to be retrieved. |
tempo |
An Integer indicating the interval in seconds. |
Plays the same sound a number of times on every certain interval.
id |
An Integer indicating the Freesound ID number of a sound. |
size |
An Integer that indicates the number of times to retrieve the same sound. |
tempo |
An Integer indicating the interval in seconds. |
Bypasses the effects.
Applies a lowpass filter.
Applies a highpass filter.
applies a bandpass filter.
freq |
Centre frequency in Hertz. WARNING: due to the nature of its implementation frequency values close to 0 may cause glitches and/or extremely loud audio artifacts. |
Applies a reverb.
Applies a phaser.
maxdelaytime |
The maximum delay time in seconds. Used to initialize the delay buffer size. |
Applies a delay.
Applies a bitcrush filter.
Applies a distortion.
ampfx |
Controls the point at which the output signal becomes linear. |
Applies a compressor.
threshold |
Control signal amplitude threshold, which determines the break point between slopeBelow and slopeAbove. Usually 0..1. The control signal amplitude is calculated using RMS. |
Prints the list of sounds used in a session including information about the title of the sound, author and the license.
Returns the duration of a sound.
feature |
A String that describes the duration of a sound in the Freesound API. |
A Float indicating the duration of the sound.
Returns the key of a sound.
feature |
A String that describes the key of a sound in the Freesound API. |
A String indicating the key of the sound.
Returns the pitch of a sound.
feature |
A String that describes the pitch of a sound in the Freesound API. |
A String indicating the pitch of the sound.
Returns the ID of a sound.
feature |
A String that describes the ID of a sound in the Freesound API. |
A String indicating the ID of the sound.
Returns the BPM of a sound.
feature |
A String that describes the BPM of a sound in the Freesound API. |
A String indicating the BPM of the sound.
Returns the volume.
(describe method here)
(describe returnvalue here)
Retrieves all content-based descriptors listed in the Analysis Descriptor Documentation from the FreeSound API: "https://www.freesound.org/docs/api/analysis_docs.html#analysis-docs". The result can be filtered using the descriptors request parameter passing a list of comma separated descriptor names chosen from the available descriptors e.g. 'descriptors=lowlevel.mfcc,rhythm.bpm'
descriptors | |
action |
A String indicating information about the descriptors of the sound
Prints the synths information and associated FS metadata information for all the active sounds.
Prints the synth information and associated FS metadata information of the current active sound.
index |
An Integer indicating the index of the targeted sound. |
Prints the buffers information and associated FS metadata information for all downloaded sounds.
Prints the FS metadata information for all downloaded sounds.
Prints the 3 arrays stored during a session of metada, buffers and synths.
Plots the server.
Plots an oscilloscope.