rally

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.

ControlRangeDefaultWhat it does
RootC-1 to G9 (0 to 127)C4 (60)The note that plays the sound at its own pitch
Low0 to 127C2 (36)The lowest key that plays the sound
High0 to 127C6 (84)The highest key that plays the sound
Attack0 to 2 s5 msTime from silence to full level after a note starts
Decay0 to 4 s100 msTime from full level down to Sustain
Sustain0% to 100%100%Level held while a note is down
Release5 ms to 1.9 s100 msFade after a note ends, in Gate mode
Start0 to the sound's length0 sWhere in the sound each note begins
ModeGate or One-shotGateWhether 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

  1. Make sure the sound is in your project and has finished processing.
  2. In the Sounds rail, find the sound. Choose Use in Sampler, or drag the sound onto a MIDI track's header.
  3. 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:

LaneRangeHow it follows a lane
Level-60 to +6 dBContinuously
Attack0 to 2 sRead when each note starts
Decay0 to 4 sRead when each note starts
Sustain0% to 100%Read when each note starts
Release5 ms to 1.9 sRead when each note starts
Start0 to the sound's lengthRead when each note starts
ModeGate or One-shotRead 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.