// SUPER SETS
if (superSetsLength > 0) {
vexSuperSetsArr.forEach(set => {
// Create a notes / "tone" (= one note or many notes, like a chord, in one moment)
const currRelatedChord = new VF.StaveNote({
clef: store.state.clefDef.clefType,
keys: set.vexNotes,
duration: 'w'
})
.addAnnotation(0, new VF.Annotation('Whole measure rest').setPosition(1))
// Add accidentals
set.vexAccidentals.map((accid, index) => {
if (accid === '') { return false }
return currRelatedChord.addAccidental(index, new VF.Accidental(accid))
})
superSetsStaveNotes.push(currRelatedChord)
})
}