Members
(inner) trans
Transpose notes
Methods
(inner) chord(pitches, durations, attributes) → {Array}
Create a collection of simultaneus notes
You can specify a collection of pitches, durations and attributes
and chord
will arrange them as a collection of notes in simultaneus
layout
Parameters:
Name | Type | Description |
---|---|---|
pitches |
String | Array | the chord note pitches |
durations |
String | Array | the chord note durations |
attributes |
Hash | the chord note attributes |
Returns:
a parallel musical structure
- Type
- Array
Example
score.phrase('A B C D E', 1)
(inner) phrase(pitches, durations, attributes) → {Array}
Create a phrase (a sequential structure of notes)
Parameters:
Name | Type | Description |
---|---|---|
pitches |
String | Array | the phrase note pitches |
durations |
String | Array | the phrase note durations |
attributes |
Hash | the phrase note attributes |
Returns:
a sequential musical structure
- Type
- Array
Example
score.phrase('A B C D E', 1)