Examples

A gallery of the example scripts across the SCAMP packages. The tutorial examples are a progressively-ordered teaching set; the by-topic pages collect every example (tutorial and beyond) by subject.

Tutorial

Work through the tutorial in order for a guided tour of the framework.

By topic

Each topic is one page, grouping its examples under headings.

  • Time & clocks — Forking & simultaneity · Setting & changing tempo · Advanced

  • Pitch — Scales & microtonality · Pitch spelling · Glissando

  • Envelopes — Construction · As note parameters · As compositional parameters

  • Notation & engraving — Basics · Quantization · Special notations · Abjad & pymusicxml tweaks · From live input · Other

  • Playback — Playback implementations · Note handles · Playback adjustments · MIDI CC & arbitrary parameters · Other

  • Interactivity & visualization — Keyboard input · Mouse input · MIDI input · Responding to a GUI · Visualization

  • Composition & form — Algorithmic approaches · Larger-scale form