DISCLAIMER: The Common Music Dictionary is part of the Common Lisp Distribution of Common Music 2. It was entirely written by Rick Taube with CSS Styling by Tobias Kunze and is integrated into Clamps for convenience. The original CSS styling was slightly adapted to the overall style of the Clamps HTML Documentation. Neither Rick Taube nor Tobias Kunze are affiliated in any form with the Author of Clamps and the Author of Clamps doesn't claim or own any intellectial property of this Dictionary.
cents->scaler
(list (note 60) (rhythm 'h.))
number
number | boolean
Braces { } and brackets [ ] are sometimes used to associate or group the enclosed terms and are not part of actual code.
{number | boolean}
describes single value that is either a number or a boolean.
prob is a required argument that may be followed by up to two optional values. Thus, each of the following calls is correct:
(
odds
prob [trueval] [falseval])
(odds .5) (odds 1 'win) (odds .2 "Yup" "Nope")
means that any number of keyword and value pairs, including none, may follow the required class argument. Each of the following calls is correct:
(
new
class {keyword value}*)
(new midi)
(new midi :time 10)
(new midi :keynum 22 :duration 3)
A plus + after a brace means that the enclosed terms may be specified one or more times.
means that any number of additional values, including none, may follow arg.
(
pick
arg ...)
Evaluation is indicated using the right arrow:
⇒
keyword string special comment :music
"Hello, world"
loop
;; bug!