Skip to content
mohayonao edited this page Dec 19, 2013 · 4 revisions

Numeric string is represent a number on human-friendly. When compiling, are converted to a number.

SynthDef ->
  linear = Line.kr(0, 1, dur:"bpm120 l2", doneAction:2)
  amp = SinOsc.kr(freq:"~5sec").unipolar()
  Out.ar(0, SinOsc.ar("A4".midicps()) * amp * linear))
.play()

Time Value Syntax

  • Frequency are specified with a single number followed by hz.
  • Milliseconds are specified with a number followed by ms.
  • Seconds are specified with a number followed by sec.
  • Minutes are specified with a number followed by min.
  • Hour/Minutes/Seconds are specified with numbers separated by colons, such as "00:03:25".
  • Samples are specified with a single number followed by samples.
  • Note Length , such as "BPM120 L4..".
  • Beat, such as "BPM120 0.1.240".
  • Ticks, such as "BPM120 120ticks"

If starts with ~, calculates as frequency.

MIDI Number Syntax

  • "C4"
  • "C#4"
  • "C+4"
  • "C-4"
  • "Cb4"
Clone this wiki locally