Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
is there example to set(change) instruments?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
larry zhou  
View profile  
 More options Jul 1 2012, 8:53 pm
From: larry zhou <larryz...@gmail.com>
Date: Sun, 1 Jul 2012 17:53:55 -0700 (PDT)
Local: Sun, Jul 1 2012 8:53 pm
Subject: is there example to set(change) instruments?

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?

thanks

larry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David  
View profile  
 More options Jul 2 2012, 9:59 am
From: David <oneov...@gmail.com>
Date: Mon, 2 Jul 2012 06:59:35 -0700 (PDT)
Local: Mon, Jul 2 2012 9:59 am
Subject: Re: is there example to set(change) instruments?

Hi Larry,

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

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »