Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: play-buffer-loop* , Previous: phasor-loop* , Up: P , Home: Overview

Clamps Dictionary

play-buffer*

Incudine DSP Function

(play-buffer* &rest optional-keywords &aux (#:lambda-list '((buffer (incudine-missing-arg "buffer") (env *env1*) (dur nil) (amp 0) (rate 1) (pan 0.5) (start 0) (out1 0) (out2 1) (gate 1) (done-action #'free) id head tail before after replace action stop-hook free-hook fade-time fade-curve))))

Play buffer with env for dur seconds and amp in dB at rate, with pan from start seconds into the sample. A dur of nil indicates playing to the end of the buffer. Output will be panned between out1 and out2. All other keywords of incudine dsps also apply. Works with any block size.

Arguments

buffer Incudine Buffer.
env Incudine Envelope.
dur Positive Number denoting duration. Defaults to nil (end of buffer).
amp Positive Number denoting amplitude in dB. The dB range [-100..0] is mapped to the linear range [0..1].
rate Positive Number denoting playback rate, adjusted for the sample rate of buffer.
pan Number in the range [0..1] denoting panorama between out1 and out2.
start Positive Number denoting the start in seconds into the buffer.
out1 Non Negative Integer denoting first output channel.
out2 Non Negative Integer denoting second output channel.
gate Non Negative Integer denoting gate.
done-action Function to be called with the node as argument at the end.

Author: Orm Finnendahl

Created: 2026-02-25 Mi 16:32

Validate