Types

Cents

A cent is a hundredth of a semitone.

Notation

A string representing a duration relative to a measure. <ul> <li>“4n” = quarter note</li> <li>“2m” = two measures</li> <li>“8t” = eighth-note triplet</li> </ul>

NormalRange

Normal values are within the range [0, 1].

AudioRange

AudioRange values are between [-1, 1].

Decibels

Decibels are a logarithmic unit of measurement which is useful for volume because of the logarithmic way that we perceive loudness. 0 decibels means no change in volume. -10db is approximately half as loud and 10db is twice is loud.

Interval

Half-step note increments, i.e. 12 is an octave above the root. and 1 is a half-step up.

BPM

Beats per minute.

Milliseconds

One millisecond is a thousandth of a second.

Frequency

Frequency can be described similar to time, except ultimately the values are converted to frequency instead of seconds. A number is taken literally as the value in hertz. Additionally any of the Time encodings can be used. Note names in the form of NOTE OCTAVE (i.e. C4) are also accepted and converted to their frequency value.

Degrees

Angle between 0 and 360.

MIDI

A number representing a midi note.

Note

A frequency represented by a letter name, accidental and octave. This system is known as Scientific Pitch Notation.

Positive

The value must be greater than or equal to 0.

Ticks

Ticks are the basic subunit of the Transport. They are the smallest unit of time that the Transport supports.

Time

Time can be described in a number of ways. Read more Time. <ul> <li>Numbers, which will be taken literally as the time (in seconds).</li> <li>Notation, (“4n”, “8t”) describes time in BPM and time signature relative values.</li> <li>TransportTime, (“4:3:2”) will also provide tempo and time signature relative times in the form BARS:QUARTERS:SIXTEENTHS.</li> <li>Frequency, (“8hz”) is converted to the length of the cycle in seconds.</li> <li>Now-Relative, (“+1”) prefix any of the above with “+” and it will be interpreted as “the current time plus whatever expression follows”.</li> <li>Expressions, (“3:0 + 2 - (1m / 7)”) any of the above can also be combined into a mathematical expression which will be evaluated to compute the desired time.</li> <li>No Argument, for methods which accept time, no argument will be interpreted as “now” (i.e. the currentTime).</li> </ul>

TransportTime

A colon-separated representation of time in the form of BARS:QUARTERS:SIXTEENTHS.

docs generated Sep 15 2019