Clamps Packages
cm-poolevt
A poolevt is a sample event type like sfz. In contrast to sfz, a poolevt implements granular transposition and stretching for playback.
A poolevt also uses lsamples, but ignores their loop points. The sample to be played doesn't need to have a defined pitch. Nevertheless, it uses a keynum slot for SVG export. The transposition is determined by comparing the keynum of a poolevt instance with the keynum of its lsample1.
(setq *flute-lsample* (create-lsample "69-Flute.nv.ff.1A4.wav" :keynum 69 :path (list (asdf:system-relative-pathname :clamps "extra/")))) ;; => *flute-lsample* (output (new poolevt :lsample *flute-lsample* :keynum 69)) ;; => ; No value (output (new poolevt :lsample *flute-lsample* :keynum 69 :stretch 3 :wwidth 500)) ;; => ; No value (output (new poolevt :lsample *flute-lsample* :keynum 67 :stretch 3)) ;; => ; No value (output (new poolevt :lsample *flute-lsample* :keynum 67 :stretch 100 :wwidth 27 :amp -6)) ;; => ; No value
Footnotes:
1
It is important to note that in SVG export the original keynum will be contained in the attributes field of every exported poolevt.