home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
112.lha
/
Director_Midi
/
readme
< prev
next >
Wrap
Text File
|
1986-11-20
|
2KB
|
62 lines
Included is a freely distributable prototype of a replacement for
the Director's sound module that provides MIDI note input. It can
be used to synchronize Director animations with external MIDI
instruments, synthesizers, sequencers, etc.
At present, you MUST leave the module named sound.mod, or the
Director will not be able to link with it.
The new module runs all the original sound commands, and adds
2 new commands:
SOUND v,"midi",channel,sendoff
SOUND <variable>,<string>,<expr>,<expr>
This command initializes the MIDI port, and signals what MIDI-channel
note on/off signals to pay attention to.
Variable 'v' is a status return variable and returns no specific
information for this command.
"midi" is the sound command.
'channel' is the midi channel number that the module will pay attention
to.
'sendoff' if a 1, will enable the recognition of both note-on and
note-off commands, if a 0, only note-on commands will be recognized.
This allows you to mask out note-off commands if you only need simple
triggering based on note-on.
SOUND v,"wait"
SOUND <variable>,<string>
This command will wait for the next note-on or note-off on the specified
channel. All other MIDI commands will be ignored.
Variable 'v' will return both the note and velocity information.
To extract this information, use the following computations:
note = v%256
velocity = v/256
If velocity is 0, then it is a note off command.
An accompanying script, 'miditest' is an example of the use of
these new MIDI features. The .film file miditest.film can be
used with the release version of the projector (V1.2), even if
you don't have the Director.
To use, run the miditest.film file with the projector or director.
When all disk activity stops, the program will then respond to
MIDI note-on/off commands on MIDI channel 1. To change the
MIDI channel, edit the script 'miditest' to modify the sound
command as described above. Make sure the Amiga sound is
connected, as there are accompanying effects.
Keith Doyle 2/27/88