Skip to content

repeatAppend()/clone() makes shallow copies of groups #176

@jacobtylerwalls

Description

@jacobtylerwalls
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions