How sfz works

1

Sound recordings of instruments are split into individual audio files for quick access sampling.

sfz samples
2

Simple text codes in an .sfz file define when, and how the collection of samples should be played.

Orchestra.sfz  <group>
  lovel=0
  hivel=127

  <region> trigger=attack  pitch_keycenter=60 lokey=30 hikey=61 sample=./samples/C4.wav
  <region> trigger=attack  pitch_keycenter=62 lokey=62 hikey=63 sample=./samples/D4.wav
  <region> trigger=attack  pitch_keycenter=64 lokey=64 hikey=64 sample=./samples/E4.wav
  <region> trigger=attack  pitch_keycenter=65 lokey=65 hikey=66 sample=./samples/F4.wav
arrow down
3

Midi input is processed by an sfz player and mapped audio samples are played back in realtime.

sfz player