Pad
An instrument optimized for drums and other rhythmic or non-melodic patterns.
- class
- Pad
- extends
- Sampler
- tag
<pad-blam>
Props
| name | type | default | description |
|---|---|---|---|
| bank | string | By default, the sample bank for the element will be a descendant Bank element. Or you can supply an |
|
| out | string | An |
|
| gain | number | 1 | The gain level for samples played by this element. All subsequent gain settings in the signal chain are relative to this. |
| detune | number | 0 | Maps to the buffer’s |
| length | number | 100 | Foreshorten the sample. The value, in beats, represents the new length. Can be randomized using a |
| start | number | 0 | Where, in beats, to start the sample playback. Maps to the |
| mute | boolean | false | Sets the |
| choke | boolean|number | false | Whether to stop the previous sound when a new sound starts. Important for emulating instruments like bass. If set as a Boolean attribute, the gain of the previous sample is rapidly sloped to |
| reverse | boolean|number | false | Whether to play the reversed version of the sample. Set as a Boolean, there's a 100% chance. Set with a number/float sets the probability. For example, |
| robin | boolean | false | By default, samples are played at random and the same sample is never played twice in a row. With |
Events
| type | description |
|---|---|
| blam | Fired whenever a sound (buffer) is played. |
| blamend | Fired whenever a sound stops playing (is either foreshortened or reaches its end). |
Methods
| name | args | description |
|---|---|---|
| play | cipher: The number (not zero-based) or |
Plays one of the associated Bank’s sounds. |
| stop | time: When to stop the sound. By default, it’s immediately, using |
Stops the previous sound, using |
Examples
Examples that use the Pad element:
- Just the samples
- Give the drummer some
- A motif with some mojo
- I wear many hats
- Can one kick it?
- Snare makes the groove
- Getting ghosted
- Saturation shenanigans
- Automayhem
- Make It Fed
- Tape emulation
- A light lo-fi listen with LFOs
- Hopeless Horror hole
- Ch-ch-ch-chocolate
- Dub Club
- Radioactive orb
- Side parting
- Wah, I’m Sad
- Secret Sauce