Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: make-cm-line , Previous: make-bang , Up: M , Home: Overview

Clamps Dictionary

make-chord

Function

(make-chord pitches &key (ampdb -6) (dur 1) (time 0) (preset :sine))

Return a list of sfz instances with keynums set to pitches, :time, :ampdb and :dur, using :preset.

Arguments

pitches Number or List of keynums of the chord.
:ampdb Number or List of a length (>= (length pitches)), set in the :amplitude slot of the sfz instances.
:dur Number or List of a length (>= (length pitches)), set in the :duration slot of the sfz instances.
:preset Keyword, Number or List of Keywords or Numbers of a length (>= (length pitches)), indicating the registered sfz preset(s) to use.

Example

(score-display
 (make-chord (mapcar (lambda (partial) (ftom (* partial (mtof 54)))) '(4 5 6 8 9 10 11 13 15 17 18 19))))
; -> nil
make-chord.svg
Figure 14: Plot of a chord with filtered partials.
;; Play the chord:
(sprout
 (make-chord (mapcar (lambda (partial) (ftom (* partial (mtof 54)))) '(4 5 6 8 9 10 11 13 15 17 18 19))))
; -> nil

Author: Orm Finnendahl

Created: 2025-12-15 Mo 22:48

Validate