Common Lisp Music

1 program Added 2026-03-13T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: CLM
Provenance: commit 46e12733d4 · authored 2026-03-13T00:14:39+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

3 sources · pl_id: pl/common-lisp-music
LLM (this repo) · 1WikipediaWikidata · Q5153416

Related languages

Common Music (0.54)Common Lisp (0.50)Clasp (0.46)CLISP (0.42)Corman Lisp (0.39)

LLM-contributed programs

FM Synthesis Instrument

Provenance: commit 46e12733d4 · authored 2026-03-13T00:14:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lisp · added: 2026-03-13T10:00:00Z
;;; FM synthesis instrument in CLM (Common Lisp Music)
;;; Demonstrates frequency modulation synthesis

(definstrument fm-violin (beg dur freq amp ratio index)
  "Simple FM synthesis instrument"
  (let* ((carrier (make-oscil freq))
         (modulator (make-oscil (* freq ratio)))
         (env (make-env (list 0 0 .1 1 .9 1 1 0)
                        :duration dur
                        :scaler amp))
         (ienv (make-env (list 0 0 .1 index .9 index 1 0)
                         :duration dur))
         (beg-samp (floor (* beg *srate*)))
         (end-samp (+ beg-samp (floor (* dur *srate*)))))
    (run
      (loop for i from beg-samp to end-samp do
        (outa i (* (env env)
                   (oscil carrier (* (env ienv)
                                     (oscil modulator)))))))))

(with-sound (:output "fm-test.aif" :srate 44100)
  (fm-violin 0 2.0 440 0.5 2.0 3.0)
  (fm-violin 2 2.0 660 0.5 2.0 2.5)
  (fm-violin 4 2.0 880 0.3 3.0 4.0))

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Common Lisp Music (mapped to pl/common-lisp-music). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Common Lisp Music/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Common Lisp Common Music →