OverviewClamps PackagesCM DictionaryClamps DictionaryFomus

Common Music Dictionary

Common Music Dictionary

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 adapted to the overall style of the Clamps HTML Documentation in 2024/2026 by Orm Finnendahl. Neither Rick Taube nor Tobias Kunze are affiliated in any form with Orm Finnendahl and he doesn't claim or own any intellectual property of this Dictionary.

Typographic Rules

  • The Dictionary documentation uses the following typographic conventions:

    Definition terms are printed in fixed-width face:
    cents->scaler
  • Literals and programming code are printed in fixed-width face:
    (list (note 60)(rhythm 'h))
    
  • Variables and metavariables (names that stand for pieces of code) are printed in italic face:
    number
  • Terms separated by | are exclusive choices where exactly one must apply:
    number | boolean
  • Braces { } and brackets [ ] are sometimes used to associate or group the enclosed terms and are not part of actual code.

    • Braces group the enclosed terms into a single entity. Thus:
      {number | boolean}

      describes single value that is either a number or a boolean.

    • Brackets make the enclosed term optional. An optional term may appear at most one time. For example, in the following definition:
      (odds prob [trueval] [falseval])
      prob is a required argument that may be followed by up to two optional values. Thus, each of the following calls is correct:
      (odds .5)
      (odds 1 'win)
      (odds 0.2 "Yup" "Nope")
  • A star * after a brace means that the enclosed terms may be specified zero or more times. For example:

    (new class {keyword value}*)

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

  • A sequence of three dots means the rest of the arguments, no matter how many. For example:
    (pick arg ...)
    means that any number of additional values, including none, may follow arg.
  • Evaluation is indicated using the right arrow:

  • Syntax highlighting distinguishes important syntactic units:
    keywordstringspecialcomment
    :music"Hello, world"loop;; bug!