Audio Sampler Grain

Same module as the grain-sampler-recorder but without recording possibilities.

Range selection and zooming.

Selection of the palying range

zoom with the mouse wheel

Use shift-click to zoom vertically.

drop files and list

You can drop fies directly on the sampler panel as show in the screenshot bellow.

Also open the file list by clicking on the following icon.



Renames the selected object. Alternative to [alt-click] on an interface-design module, or any panel, to change its caption.


Saves the selected object as a file.

curves commands

Each automation curve will create a corresponding button in the contextual menu. By clicking on this button you will show the curve.

But sometimes common automation curves are created automatically like volume, pan, pitch, etc.

example of sampler curves

General menu commands are:

  • hide Hides the current curve.
  • clear Clear the current curve.
  • delete Delete totally the automation curve.

To create a new point or delete an existing point, [dbl-click] on a line.

Each curves have a set of settings in the curves tab where you can set minimum and maximum values, scale but also curves type.


Display scale:

  • linear : grows linearly from left to right.
  • log (logarithm): grows slowly on the left side, more and more quickly towards the right.
  • exp (exponential): grows quickly on the left side, more and more slowly towards the right.

curves type

  • steps
  • curves
  • trigger

Bezier curve

Use this option to have a graphic smoother curve. Example with the option ON and OFF

edit file

Opens the wave editor chosen in the setup-global (audio files only).

stretch file

Opens the audio-strecth-panel to change the tempo, pitch or length of the current audio sample (audio files only).


show list

Shows the files list.


Audio input flow(s).


Audio output flow(s).


Volume applied to the output.


Plays the sound in reverse mode (backward).


Pitch transposition value (in half-tone).

play loop

Plays the file in loop mode until you stop it.

loop mode

Synchronization options:

  • Free loop: the file is played in loop mode.
  • Cycle: the file is played at each beginning cycle.
  • Bar: the file is played at each beginning bar.
  • Beat: the file is played each beat.
  • Eighth note: the file is played each eighth note.
  • Sixteenth note: the file is played each sixteenth note.
  • 2 bars : the file is played every 2 bars.
  • 4 bars : the file is played every 4 bars.
  • 6 bars : the file is played every 6 bars.
  • 8 bars : the file is played every 8 bars.
  • 10 bars : the file is played every 10 bars.
  • 12 bars : the file is played every 12 bars.
  • 14 bars : the file is played every 14 bars.
  • 16 bars : the file is played every 16 bars.
  • loop on bar: the file is played entirely as in loop mode, and then, at the end, restarts at the beginning of the next bar.
  • loop on beat: the file is played entirely as in loop mode, and then, at the end, restarts at the beginning of the next beat.

auto restart

Forces to restart from the beginning, on play or on activation of the patch.


Plays the file.

Only when the play loop is OFF.

play button mode

  • play-replay:first click play the file (once) second click restart the file.
  • play-stop:first click play the file (once) second click stop the file.


Stops the file.

Only when the play loop switch is OFF.

on activation

  • do nothing: When parent patch is activated nothing is done nothing special done.
  • play once: When patch activated the file is played once.

at the end

Determines what happens when the sample or MIDI sequence reach it's end:

  • do nothing: nothing is done.
  • next grid section: the grid goes to the next section.

is playing

Sends a 1 value when the module is playing. 0 otherwise.


Sends 1 value each time the current file is starting or re-starting.

Works properly only when loop mode = synchro.


  • Single: the selected file is played in loop.
  • Next: each file is played once and then plays to the next file in the list.
  • Previous: each file is played once and then plays to the previous file in the list.
  • Random: plays files in a random order.

file number

File number combobox.

The numerical value corresponds to the selected file number in files list.

  • -1: no file is selected.
  • 0: the first file in the list is selected.
  • 1: the second file in the list is selected
  • etc.

number of files

Gets the number of files in the list.


Length in ms of the selected file.

nb of channels

Gets the number of audio channels of the selected file.

  • 1 : mono,
  • 2 : stereo,
  • 4 : surround 4 channels,
  • etc.


File duration in milliseconds.

start pos

Start reading position.

end pos

End reading position.

the file is read between the start and end position


Sets or gets the current reading position.


Selects the next file in the list.


Selects the previous file in the list.

next rand

Random selection of a file in the list.


Waveform array to display (see panel-wave-display).

short filename

Gives only the name of the file, without the path and extension.

long filename

Gives the full name of the file, included the path.

add file name

Set this value with a filename to add a new file in the list (this applies to the sampler, video player and piano roll).

list comma text

Input to set the file list with a comma-text.

clear list

Clear the sample list. When you press saverand or savename the recorded file is automatically added to the sample list. With the clear list button you can clear the list directly.

display area start

Display area start of the sample when using the zoom.

display area end

Display area end of the sample when using the zoom.

nb of markers

Get or set the total number of markers created. Can be used to clear the markers (set it to 0).


Array which contains the markers position: the length of the array is the total number of markers. Each element is the value of their respective position (from 0..100%).

insert marker

Button to insert a new marker at the current position.

clear markers

Clear all existing markers.

goto markers

When the value changes, goes directly to nth marker. if the value is -1, does nothing.

goto next marker

When the value changes, goes to the next marker.

set selector on goto

When a goto marker is done, the selection area of the sample becomes the marker area.

current marker num

Get the index of the current marker.

current marker caption

Get the caption of the current marker.

user curve

Output value of the user curve. Can be used to synchronize processing with the current sample. example of a user curve

visible curve

Determines which curve is actually visible and editable on the waveform. example of a pan curve

grain size

Grain size (duration) in ms. For small sizes, you obtain a good sound resolution but it creates audio artifact's. For normal utilization set it to 30-50 ms.

for performance reasons, the grain size is always multiple of Current Bloc Size (which is generally 128).


Speed percent of the original.

  • 100% means no speed modification.
  • 50% half speed.
  • 0% stopped...

speed mode

Speed assignation mode:

  • speed fader: the sample speed is affected by the position of Speed fader control.
  • cycle: the speed is automatically calculated so that the sample length fits to the cycle length.
  • bar: the sample length fits to the bar length.
  • 2 bars: the sample has two bars length.
  • 3 bars: the sample has 3 bars length.
  • 4 bars: the sample has 4 bars length.
  • 8 bars: the sample has 8 bars length.
  • 16 bars: the sample has 16 bars length.


determines the shape of grains see Window-function.

  • hanning (hann)
  • blackman opt
  • bartlett
  • blackman-harris
  • nuttall

saved in preset

Determines if parameters of this object are saved in the preset-panel.

fade preset

Parameters of the this object can cross faded when you recall a preset in the grid.

Optional setting, does not appear on all objects.

can be randomized

When ON, this object will be randomized when using the randomize command of its patch.

can be reset

When ON, this object will be reseted to its default value when using the reset command of its patch.

save list in presets

Save the complete list of samples in the preset.

Dangerous option, use with care.

zero crossing

Activates the zero crossing option to avoid clicks when the start & end parameters are modified. This option works also during the recording process.

If you use the Sampler module to record data's, disable this option.

file location

Wave file location:

  • File: Wave data are read from the hard disk (advised for large files).
  • Memory: Wave data are loaded in memory (advised for small files).

drop file mode

Determines how the file is added to the list of samples when it is dropped onto the sampler:

  • add file to list: the file is added at the end of the sampler's list.
  • replace file: the list is cleared and, after, the file added in the list. So the list will contain only a single file.

normalize file

Normalize the audio file when loaded in memory.

high quality

Uses a better quality engine.

See also

version 4.1.201021 GWPD birthday

Edit All Pages