SGI Audio Tools: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Danielface (talk | contribs) m (wording tweak) |
Danielface (talk | contribs) (Fix instrument formatting) |
||
Line 167: | Line 167: | ||
An example <code>instrument</code> might look like: |
An example <code>instrument</code> might look like: |
||
instrument AnExampleInstrument |
instrument AnExampleInstrument |
||
{ |
{ |
||
Line 173: | Line 174: | ||
sound = AnExampleSound; |
sound = AnExampleSound; |
||
} |
} |
||
Note how <code>sound</code> property matches the name of an existing sound above. |
Note how <code>sound</code> property matches the name of an existing sound above. |
||
An <code>instrument</code> can specify multiple <code>sound</code>. For example, <code>GenMidiBank.inst</code> in the N64 SDK uses four sounds for a MIDI Cello: |
An <code>instrument</code> can specify multiple <code>sound</code>. For example, <code>GenMidiBank.inst</code> in the N64 SDK uses four sounds for a MIDI Cello: |
||
instrument Cello |
instrument Cello |
||
{ |
{ |
||
volume = 127; |
volume = 127; |
||
pan = 64; |
pan = 64; |
||
vibratoType = 128; /* 128, 129, 130, 131 */ |
vibratoType = 128; /* 128, 129, 130, 131 */ |
||
vibratoRate = 222; /* 0 to 255 */ |
vibratoRate = 222; /* 0 to 255 */ |
||
vibratoDepth = 6; /* 0 to 255 */ |
vibratoDepth = 6; /* 0 to 255 */ |
||
vibratoDelay = 1; /* 1 to 255 */ |
vibratoDelay = 1; /* 1 to 255 */ |
||
sound = Cello00; |
sound = Cello00; |
||
sound = Cello01; |
sound = Cello01; |