Making music
Sampler
Play one of your project's sounds across the keys, set its root, key range, envelope and start point, and know which settings automation can follow.
Reflects Rally v0.112.0
The Sampler plays one sound from your project across the keys. Each key plays the sound at a different pitch, by changing its speed. You pick the sound, set the note that plays it at its own pitch, and shape how it starts and ends.
#Controls
The Sampler panel is in the Instrument section of the inspector. Enter commits a typed value, and Escape cancels it. Dragging a slider commits once, when you let go. Each commit is one change, and one Undo reverses it.
| Control | Range | Default | What it does |
|---|---|---|---|
| Root | C-1 to G9 (0 to 127) | C4 (60) | The note that plays the sound at its own pitch |
| Low | 0 to 127 | C2 (36) | The lowest key that plays the sound |
| High | 0 to 127 | C6 (84) | The highest key that plays the sound |
| Attack | 0 to 2 s | 5 ms | Time from silence to full level after a note starts |
| Decay | 0 to 4 s | 100 ms | Time from full level down to Sustain |
| Sustain | 0% to 100% | 100% | Level held while a note is down |
| Release | 5 ms to 1.9 s | 100 ms | Fade after a note ends, in Gate mode |
| Start | 0 to the sound's length | 0 s | Where in the sound each note begins |
| Mode | Gate or One-shot | Gate | Whether a note stops at its release or plays to the sound's end |
Root, Low and High are notes. Type a name such as C4 or F#3, or a number from 0 to 127. Arrow keys step one semitone, and Shift with an arrow, or Page Up and Page Down, steps an octave.
Low and High must stay within 24 semitones of Root. Rally keeps them in that range when you change Root.
#Using a sound in the Sampler
- Make sure the sound is in your project and has finished processing.
- In the Sounds rail, find the sound. Choose Use in Sampler, or drag the sound onto a MIDI track's header.
- The track's instrument becomes the Sampler, with this sound. Its other settings are kept if the track already had a Sampler. Start moves to the beginning if the sound is shorter than the old Start.
You can also open the track's Preset menu in the inspector and pick a sound under Sampler.
The Sounds rail's action is hidden or names its reason when it cannot be used. The line under the action says which MIDI track it will change.
Press Preview in the inspector to hear the Root note for one second. It plays on this device only.
#Limits
Sound length and size
- A sound can be 20 seconds or shorter. Longer sounds are left out of the Sampler's choice list, and the list says so.
- The Sampler sounds in one project share 32 MiB of decoded audio. Each sound takes about 4 bytes per sample per channel once decoded, so a 20-second stereo sound is about 7.7 MB. If a new sound would pass the limit, Rally refuses it and says why.
- A sound must be ready. A sound that is still processing, or that failed, plays silent and its status line says why.
#Tips
- Set Root to the note the sound was recorded at. A piano sample at middle C should have Root at C4, so the keys above and below sound in tune.
- Narrow Low and High to the keys you need. A tuned sound outside its range plays nothing.
- Use Gate mode for sustained sounds such as pads and strings, and One-shot for drums, hits and vocal stabs. In One-shot mode, Release is greyed out because the sound plays to its end.
- Start moves into the sound. Use it to skip a silent intro or to choose a particular hit.
- If a sound is silent, check its status line first. A missing or removed sound says so.
#Automation
These Sampler settings can have automation lanes:
| Lane | Range | How it follows a lane |
|---|---|---|
| Level | -60 to +6 dB | Continuously |
| Attack | 0 to 2 s | Read when each note starts |
| Decay | 0 to 4 s | Read when each note starts |
| Sustain | 0% to 100% | Read when each note starts |
| Release | 5 ms to 1.9 s | Read when each note starts |
| Start | 0 to the sound's length | Read when each note starts |
| Mode | Gate or One-shot | Read when each note starts |
A note keeps the envelope and Start it began with. The next note picks up the lane's new value.
These cannot follow a lane:
- Pitch. Changing the playback speed also changes where the sound ends, and the note's end would need to follow the lane. Use Root or the key range instead. Pitch lanes for the Sampler are not available yet.
- Root, Low and High. Changing the key range remaps the keys, which would change which notes play at all. Set them in the panel.
For how lanes work, read Automation and what can be automated.
#Related guides
- Instruments for assigning and previewing
- Importing audio for adding the sound to the project
- Synth and Drums