Reputation: 3056
I'm trying to render a very simple chord like so:
I tried to do
score.notes('(C#5/q B4 A4 G#4)')
as demonstrated here: https://jsfiddle.net/gcrb86fk/38/
But I get IncompleteVoice: Voice does not have enough notes
in the console. Is there any easy way to do this straightforward use case? Or another js library?
Upvotes: 1
Views: 1840
Reputation: 21
You need to fill the whole measure, which means you need to make it last four quarters long (one whole note). This is done using "w" for Whole Note.
score.voice(score.notes('(C4 E4 G4 Bb4)/w')),
Upvotes: 2
Reputation: 1320
'(C#5/q B4 A4 G#4)'
This is defining one chord that is one quarter note in length.
'C#5/q, B4, A4, G#4'
One solution is to expand the chord into 4 individual quarter notes.
'(C#5 B4 A4 G#4)/q, B4, A4, G#4'
Another solution is to add 3 more quarter notes to the voice.
EDIT:
'(C#5 B4 A4 G#4)/1'
One chord and one chord alone.
Upvotes: 1