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
;; 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