JSMini:
Filter:
Pmini/Classes (extension) | mini-notation

JSMini
ExtensionExtension

Convert a mini-notation string to steps

Description

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.

Class Methods

.new

Create a new JSMini object

Arguments:

mini_notation

The mini-notation string to parse

Returns:

the JSMini object

Instance Methods

.step

Get the next step to play, according to the mini-notation string

Returns:

Array object with values \trig, \delta, \dur, \str, \num

.cycle

Get the next cycle to play, according to the mini-notation string

Returns:

Array object with one or more steps (sub-arrays) in it

.log_nodes

Log the internal node-tree to the post window, for debugging

.log_tokens

Log the parsed tokens to the post window, for debugging

.log

Logs the given number of cycles to the post window, for debugging

Arguments:

cycles

An integer.

Examples