home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sound Sensations!
/
sound_sensations.iso
/
midifile
/
cmtcmu
/
echoes.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-28
|
356b
|
20 lines
#include "cmtprog.h"
#define delay 15
echo(chan, pitch, vel) {
vel = vel - 5;
if (vel > 0) {
midi_note(chan, pitch, vel);
cause(delay, echo, chan, pitch, vel);
} else midi_note(chan, pitch, 0);
}
keydown(chan, pitch, vel) {
cause(delay, echo, chan, pitch, vel);
}
mainscore() {
cause(1000, mainscore);
}