MidiOpen
HC
Sound programming
Midi
MidiOpen
MidiOpen outputDeviceNr
This command opens the Midi device number outputDeviceNr and accesses it through a Midi device driver.
The device driver chosen depends on several things.
It lets you choose any available Midi driver available on your system.
The id starts at 0 up to 1 less than number of Midi drivers available.
To determine which id maps to which driver try several MidiOpen commands with increasing id.
MidiOpen will output the name of the driver being used.
device:(List) When successfully opened outputs the name of the driver being used.
id:(Integer) Is an index that specifies which Midi device driver you wish to open. When no id given it selects the Midi Mapper device driver.
Basically Midi allows you to generate sound on your sound card.
You will need to install the appropriate drivers under Windows for your sound card to work.
Most sound cards come with a Midi player which basically reads Midi messages from the file and passes them to the Midi driver.
If you have your Midi player working under Windows then aUCBLogo should work too.
Midi commands in aUCBLogo do not yet support Midi files (.MID or .MDI).
Instead you directly build up sequences of Midi messages and send them directly to the Midi device.
You can think of Midi commands in aUCBLogo as a programmable keyboard.
It just so happens that the link between your programmable keyboard (Midi commands) and your Speaker is Midi.
Example:
See also:
Examples:
References: