Open taat opened 2 months ago
I can't find a way to change the fill color or add any attributes to a single note within a chord (each note head with of a different color). Is this possible with VexFlow?
I'm rendering a chord like this:
let notes = score.notes('(F4 G#4 C#5)/4', { clef: clef } );
I can even add some custom attributes for a whole group of notes:
let notes = score.notes('(F4 G#4 C#5)/4[id="foobar"]', { clef: clef } );
But how do I change a color or attribute of a just single note (eg. G#4 should be red).
False alarm, found it:
notes[0].setKeyStyle(1, {fillStyle: "red"});
sorry for the noise.
I can't find a way to change the fill color or add any attributes to a single note within a chord (each note head with of a different color). Is this possible with VexFlow?
I'm rendering a chord like this:
I can even add some custom attributes for a whole group of notes:
But how do I change a color or attribute of a just single note (eg. G#4 should be red).