Guitar Sounds

• Nov 17, 2011 - 12:39

Hello all, hello musescore,
I think it would be cool if we can change the Guitar sound just by type 
the sound name we want as Staff Text.
I don't think other music notation software 
has feature like this:

Example:
//www.musescore.com/ronaldhutasuhut/scores/30687

Thanks,
Ronald Hutasuhut


Comments

Actualy, you can sort of already do this, but you have to configure it yourself. Start by editing the instruments.xml file that came with MuseScore to add multiple sounds for the Guitar instrument (see how it does similarly for violin and for trumpet to see how it is done), then restart MuseScore. Then, after adding staff text on the guitar staff, you can right click it, select StaffTextProperties, and choose which sound you want.

For the eventual 2.0 release, it looks like this process is streamlined.

In reply to by Marc Sabatella

I couldn't find the file: instruments.xml in any folder of musescore (program files), do we have to download it from somewhere so we can edit the file?
And when I added a Staff Text to a Guitar note and then click the Staff Text Properties, it only give one option, Channel -> Normal. What I have missed?

Thank you for your information.

In reply to by ronaldhutasuhut

Right, it,s an ordinary text file, so you need a text editor to edit it. If you go to Edit->Preferences, it tells you where this file is being loaded from and allows you to change tht location, so you don't have to save your changes on top of the official version.

The staff text properties does indeed start off empty, but once you have added additional channels for an instument by editing that file, those channels will start showing up.

In reply to by Marc Sabatella

I copied this from the intruments.xml file:

Violin
Vln.
0
55-88
55-103

40

E Trumpet
E Tpt.
0
2
3
57-84
57-87

56

1

Electric Guitar
El. Guit.
3
40-86
40-86

27

Question:
How do we edit the script to add multiple sound (clean, overdrive, distortion, etc.) of guitar instrument?
I guess we have to change/add value/name of the Channel/Program, if so, how could we get the list of Channel/Program so we can figure out which Channel/Program we need?

- I hope musescore would make all these coding issues automated in the future, because I believe the main marketing target of musescore is Musician, not programmer nor musician with programming knowledge. -

Thank you.

In reply to by ronaldhutasuhut

I'm assuming you actually typed in the contents of the XML file, but the forum software stirpped out the tags. Anyhow, all you need to copy are the "channel" tags. See how trumpet has one unnamed channel that lists program 56, then a channel named "mute" that lists program 59? That's what you want to recreate. The program numbers are the patch numbers f the soundfont you are using. The default soundfont uses General MIDI patch numbers, so you would need to Google that term to get a listng of patch numbers, or just use the patch numbers u see in the regular definitions of the various guitars.

And yes, as I said, 2.0 looks like it already streamlines this process. What I'm describing is just a way to get the job done meanwhile.

In reply to by Marc Sabatella

I edited the instruments.xml file.
I added code to the Electric Guitar part in the same way the code written in the Violin part
(forgive my English, I hope I explain this correctly):

Violin
Vln.
0
55-88
55-103

40

Electric Guitar
El. Guit.
3
40-86
40-86

27

(I pasted the code from original form (html), I don't know why it became like this)

But.. nothing happen. I need a help to solve this,
how to write the code correctly so we can use one track (staff) of a Guitar for multiple sound..
please.

Thank you very much.

In reply to by ronaldhutasuhut

Try with the following (to encode I used HTML encoder

Find an example attached.


<instrument>
<name>Guitar</name>
<short-name>Guit.</short-name>
<clef>3</clef>
<aPitchRange>40-83</aPitchRange>
<pPitchRange>40-83</pPitchRange>
<channel>
<program>24</program>
</channel>
<channel name="steel">
<program value="25"/>
</channel>
<channel name="electric-jazz">
<program value="26"/>
</channel>
<channel name="electric-clean">
<program value="27"/>
</channel>
<channel name="electric-muted">
<program value="28"/>
</channel>
<channel name="overdriven">
<program value="29"/>
</channel>
<channel name="distortion">
<program value="30"/>
</channel>
<channel name="harmonics">
<program value="31"/>
</channel>
</instrument>

Attachment Size
guitars.mscz 1.99 KB

In reply to by ronaldhutasuhut

Make sure you save it to the place MuseScore is looking (see instrumentals.xml) then restart MuseScore. Also make sure your staff really uses this instrument and not on of he similarly-named ones. To be sure, maybe change the name temporarily in the file, restart MuseScore again, and add a new staff using he new insteument name.

In reply to by [DELETED] 5

It works! Thanks to you all. This is what I had to do:

1) Edit instruments.xml in: your directory:\Program Files\MuseScore\templates
Follow the post --> "Try with the following.." Submitted by lasconic on Sat, 11/19/2011 - 17:46.
2) Open Musescore. Go to Preferences -> General -> Instrument list file and point to your modified file.
And then RESTART Musescore.
3) The new html code will only works with a new file/score.

Follow this link to see the example:
"Sweet Child o' Mine"

Thank you very much for all of you!
Still, though I have a precious experience,
I hope musescore will make all these coding issues be automated in the future.
Thank you!

Please visit my site sometime: Ronald Hutasuhut's Music

Ronald Hutasuhut

Do you still have an unanswered question? Please log in first to post your question.