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

Clamps Dictionary

play-buffer-loop*

Incudine DSP Function

(play-buffer-loop* &rest optional-keywords &aux (#:lambda-list '((buffer (incudine-missing-arg "buffer") (env (incudine-missing-arg "env")) (dur 1) (amp 0) (rate 1) (pan 0.5) (loopstart 0) (loopend 0) (start 0) (out1 0) (out2 1) 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. Loop the playback between loopstart and loopend. loopend of 0 denotes end of 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.
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.
loopstart Positive Number denoting start of loop.
loopstart Positive Number denoting end of loop.
out1 Non Negative Integer denoting first output channel.
out2 Non Negative Integer denoting second output channel.

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate