Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
MIDI Buffer Increment Fill Command
This is similar to the Buffer Fill command except that instead of filling with a specified constant, it fills with an ascending or descending sequence. The format is Bivb.i0=(start,count), where v is Voice number 1-8, and b is buffer number 1-4. i0 is the index (position) where the fill should start, start is the initial value, and count is the number of buffer positions to be filled.
If count is positive, the result is an ascending sequence; if negative, the sequence descends from the initial value.
One important use for this command is for creating buffers full of instrument numbers that include multiple families or portions of families of instrument types. You might want this to allow random selection of only certain instrument types, such as only certain plucked or struck string instruments. (See General MIDI Instrument Sounds for a list of instruments by number and family.)
Suppose you want to include the whole Piano family, instrument numbers 0-7, plus the first five Guitar instruments 24-28, plus all of the Bass family 32-39. To build a list in Voice 1, Buffer 3 you could use:
Bi13.0=(0,8) Bi13.8=(24,5) Bi13.13=(32,8)
This fills positions 0-20 with the desired instrument numbers. To set the Voice 1 instrument with a random selection from this set, you would use I1=B13.?(0,20).
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