Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: Z , Previous: with-unwatched , Up: W-Y , Home: Overview

Clamps Dictionary

write-sfz

Function

(write-sfz dir name template &key (volume 0))

Generate and write an sfz file using all samples in the samples subdir of dir with name using template with optional volume in dB. The names of samplefiles have to start with 3 digits denoting the midi keynum.

Arguments

dir String or Pathname denoting the parent dir of the soundfont to create.
name String denoting the basename of the sfz file.
template String denoting a template for samples to match
:volume Number denoting the volume in dB (0dB = unit gain) in each sample region of the sfz.

Example

;;; generate a sfz file named ~/work/snd/sfz/bd/bd.sfz from all samples in the
;;; ~/work/snd/sfz/bd/samples/ subdirectory named 001-bd.wav,
;;; 002-bd.wav,...

(write-sfz "~/work/snd/sfz/bd/" "bd" "bd")

Author: Orm Finnendahl

Created: 2025-10-25 Sa 13:53

Validate