Sample Methods
This content is for v0.7. Switch to the latest version for up-to-date documentation.
Velocity Methods
Section titled “Velocity Methods”Velocity controls how hard a sample is hit.
| Method | Velocity | Description |
|---|---|---|
vel(v) | Custom | Set velocity (0 to infinity) |
ghost() | 0.3 | Ghost note (quiet) |
soft() | 0.5 | Soft hit |
accent() | 1.0 | Accented hit |
loud() | 1.2 | Loud hit |
drums << [bd.loud sd.soft]; // Loud kick, soft snaredrums << [bd.ghost sd.accent]; // Ghost kick, accented snaredrums << [bd.vel(0.7) sd.vel(1.5)]; // Custom velocitiesTransformation Methods
Section titled “Transformation Methods”| Method | Description |
|---|---|
slice(start, end) | Play portion of sample [0-1 range] |
reverse() | Play sample backwards |
pitch(semitones) | Pitch shift sample |
pan(position) | Set stereo position [-1.0 to 1.0] |
drums << [bd.pitch(12) sd]; // Kick up one octavedrums << [bd.pitch(-5) sd]; // Kick down a fifthdrums << [bd.pan(-1) sd.pan(1)]; // Kick left, snare rightdrums << [bd.reverse()]; // Reverse kickMethod Chaining
Section titled “Method Chaining”Methods can be chained for complex transformations:
drums << [bd.loud.pan(-0.3) sd.soft.pitch(2)];drums << [hh.ghost.pan(-0.5) hh.ghost.pan(0.5)]; // Stereo hatsSee Also
Section titled “See Also”- CR-78 Kit - Built-in drum kit mapping