With JSMini you can convert a mini-notation string to steps by calling the "cycle()" or "step()" method.
Cycle() will return the next cycle to play, which consists of one or more steps.
Step() will return the next step to play, which is an array with 5 values:
You can use the 5 values any way you want.
Create a new JSMini object
mini_notation |
The mini-notation string to parse |
the JSMini object
Get the next step to play, according to the mini-notation string
Array object with values \trig, \delta, \dur, \str, \num
Get the next cycle to play, according to the mini-notation string
Array object with one or more steps (sub-arrays) in it
Log the internal node-tree to the post window, for debugging
Log the parsed tokens to the post window, for debugging
Logs the given number of cycles to the post window, for debugging
cycles |
An integer. |