n = new music21.note.Note();
n.groups.push('yellow');
s = new music21.stream.Stream();
s.repeatAppend(n, 4);
s.notes.first().groups.push('red');
console.log(s.notes.map(n => n.groups)); // ['yellow', 'red'] * 4 (but red should appear on the first only)