Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Voice Instrument Number
There are 128 General MIDI Instruments that almost every synthesizer supports, numbered 0-127.
When you change the number on this control, the long adjacent Instrument On/Off button changes to the name of the new instrument.
You can see the General MIDI Instruments list at any time by right-clicking the Instrument Number or Instrument On/Off controls for Voices 2 through 8 in the Pitch-to-MIDI dialog. (Not Voice 1, which provides this control Help, as do the Voice Setup controls.)
Use Iv=n to set the Voice v Instrument Number to the value n, which is an unsigned integer that will be limited to the range of 0 to 127. For example, I2=12 sets Voice 2 to use Instrument Number 12, which is Marimba.
Tip: The n value can be any valid variable or expression, including current MIDI control values, random values, current computer keyboard states or mouse position, input or buffered notes, or oscillators.
You can use "voice" 9 to set all voices to the same Instrument number.
If you look at the General MIDI Instruments list, you will see that they are grouped by families. For example Reed instruments are numbers 64 (Soprano Sax) to 71 (Clarinet). So to choose one Reed instrument at random for Voice 2, use I2=?(64,71).
See Random Selection from a Buffer under the Changes Script Random Values topic for a way to randomly select from an arbitrary assortment of instruments.
MIDIinst2=12 sets Voice 2 to use Instrument Number 12 (Marimba). MIDIinst2=>1 increments the Instrument Number by 1, while MIDIinst2=>-1 decrements it.
However, Changes scripts are recommended for this purpose.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 30 Years of Innovative Instrumentation
© Copyright 2007 - 2017 by Interstellar Research
All rights reserved