Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: make-sfz-synth , Previous: make-serial-sensor-data , Up: M , Home: Overview

Clamps Dictionary

make-sf-player

Function

(make-sf-player file)

Return a soundfile player closure. To start playback, call the closure with :start as first argument and an optional number indicating a startoffset in seconds. To stop playback, call the returned closure with :stop as first argument. To pause the playback, call the returned closure with :pause as first argument.

Arguments

file A string indicating the full path of the file to play back.

Example

(defparameter *my-player* (make-sf-player "/tmp/rec-1.wav"))

(funcall *my-player* :start)
(funcall *my-player* :pause)
(funcall *my-player* :start)
(funcall *my-player* :stop)

See also

Author: Orm Finnendahl

Created: 2026-04-12 So 21:46

Validate