Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: cl-poolplayer , Previous: Loading sfz files , Up: cl-sfz , Home: General

Clamps Packages

Playing sfz events

The function play-sfz1 plays a sound from a sfz preset. It takes the a pitch, amplitude in dB and duration in seconds as arguments. The default preset is :flute-nv. In addition it takes the keywords :preset, :oneshot, :pan, :out1 and :out2.

(play-sfz 60 0 3) ;; => nil

;; play without looping
(play-sfz 60 0 30 :preset :yamaha-grand-piano :oneshot t) ;; => nil


;; 30 seconds, left channel only

play-sfz is a wrapper around play-lsample.

Footnotes:

1

(play-sfz 60 0 20 :preset :yamaha-grand-piano :pan 0) ;; => nil