Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: port-available-p , Previous: points->svg , Up: P , Home: Overview

Clamps Dictionary

poolevt

Common Music Class

(new poolevt &key time (lsample nil) (keynum 60) (amp 0) (start 0) (end 0) (stretch 1) (wwidth 123) (attack 0) (release 0.01) (pan 0.5) (adjust-stretch nil) (out1 0) out2)

Create a poolevt Event.

poolevt accepts the following slot initializations:

:time – The output time in seconds, initially unbound.

:lsamplelsample struct to use for playback.

:keynum – Keynum in Midicents.

:amp – Amplitude in dB, the range [-100..0] corresponding to linear values [0..1].

:dy – Number denoting transposition in Midicents at end of playpack in relation to the beginning.

:start – Start offset into the sample in seconds.

:end – End time of sample sample in seconds. 0 denotes end of sample

:stretch – Non zero Number denoting stretch ratio. Negative indicates reverse playback.

:wwidth – Positive number denoting window size in ms for granular stretching.

:attack – Number in the range [0..1] indicating attack time ratio in relation to full length.

:release – Number in the range [0..1] indicating release time ratio in relation to full length.

:pan – Number in the range [0..1] defining equal power panning between the two outputs of the dsp on playback.

:adjust-stretch – Boolean indicationg whether to adjust the stretch factor in relation to the transposition.

:out1 – Non negative Integer denoting the left output channel index.

:out2 – Non negative Integer denoting the right output channel index. Defaults to (1+ out1)

Examples

(new poolevt)
;; => #i(poolevt lsample nil keynum nil amp 0.0 dy 0.0 start 0 end 0
;; stretch 1.0 wwidth 123 attack 0 release 0.01 pan 0.5 snd-id nil
;; adjust-stretch nil out1 0 out2 1)

(output (new poolevt :lsample ...)) ; => ; No value
;; ; No values

See also

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate