Constructor
new Rhythm(rhythm, options)
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
rhythm |
String | Iterable | either a String or Iterable of delta-start times If it's a String, it can contain the following characters:
If it's a Iterable of delta-start times, it represents the time between each note (and the start of sequence for the first note). The times are are relative to the rate option. |
||||||||||
|
Iterable | |||||||||||
options |
Object |
Properties
|
- Source:
Methods
(static) distribute(pulses, total, options)
Generates a Rhythm by evenly distributes the given number of pulses into the given total number of time units. Very similar to a "Euclidean rhythm".
Parameters:
Name | Type | Description |
---|---|---|
pulses |
number | |
total |
number | |
options |
accepts the same options as the constructor, plus a rotation option |