code like this s=stream.Stream() n=note.Note("A") s.append(n)
but the default instrument is always piano. how can i change it to violin or other?
I am new to music21 but I have solved your question the following way:
## Set instrument for part i = instrument.Violin() s.append(i)
a list of instruments can be found here: http://mit.edu/music21/doc/html/moduleInstrument.html
- Hide quoted text -- Show quoted text -
> code like this > s=stream.Stream() > n=note.Note("A") > s.append(n)
> but the default instrument is always piano. how can i change it to violin > or other?