The <sound> element
Parent element: <sounds>
The sound type lists one of the standard sounds available in MusicXML 4.0. The required id attribute lists the MusicXML sound identifier string used by the instrument-sound element.
The optional any, solo, and ensemble elements can be used for mapping MusicXML sound IDs to an application’s or virtual instrument library’s method of identifying sounds. These methods could include Sibelius SoundWorld IDs, capella genericsound IDs, and General MIDI patch numbers.
The primary attribute is used when multiple sound elements map to the same application or library ID. In this case, the primary attribute indicates which of the MusicXML IDs is primary when mapping to a MusicXML sound id.
Content
Exactly one of the following- <any>
- In this order
- <solo> (Zero or more times)
- <ensemble> (Zero or more times)
Attributes
| Name | Type | Required? | Description |
|---|---|---|---|
| id | xs:ID | Yes | |
| primary | yes-no | No |
Examples
This element is used in the following examples:
<any><attributes><coda><double><ensemble><f><ff><fff><ffff><fffff><ffffff><instrument-change><measure-distance><metronome-note><metronome><mf><mp><n><p><pan> and <elevation><pedal> (Symbols)<per-minute><pp><ppp><pppp><ppppp><pppppp><segno><solo><sound><straight><string-mute> (Off)<string-mute> (On)<swing><wedge>Tutorial: Après un rêveTutorial: Chopin PreludeTutorial: Chord SymbolsTutorial: PercussionTutorial: Tablature