1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
/* handlers.c -- null handlers to avoid link errors due to callouts in moxc.c */
#include "musiprog.h"
char *app_syntax = "";
/* note -- a simple way to make a midi note on channel 1 */
/**/
void note(pitch, dur)
{
}
/* asciievent -- ascii event handler */
/**/
void asciievent(char c)
{
}
/* keyup -- key up handler */
/**/
void keyup(int c, int k)
{
/* insert key up actions here */
}
/* keydown -- key down handler */
/**/
void keydown(int c, int k, int v)
{
/* insert key down actions here */
}
/* midievent -- handle a midi message */
/**/
void midievent(midi_data)
byte midi_data[4];
{
/* this is only called if mididecode is false so */
/* you can assume this function is never called */
}
/* prgmchange -- program change handler */
/**/
void prgmchange(int chan, int value)
{
/* insert program change actions here */
}
/* bendchange -- pitch bend handler */
/**/
void bendchange(int chan, int value)
{
/* insert pitchbend actions here */
}
/* ctrlchange -- control change handler */
/**/
void ctrlchange(int chan, int ctrl, int value)
{
/* insert control change actions here */
}
/* peddown -- pedal down handler */
/**/
void peddown(int c)
{
/* insert pedal down actions here */
/* the following default action invokes your control change handler */
ctrlchange(c, SUSTAIN, 127);
}
/* pedup -- pedal up handler */
/**/
void pedup(int c)
{
/* insert pedal up actions here */
/* the following default action invokes your control change handler */
ctrlchange(c, SUSTAIN, 0);
}
/* touchchange -- after touch handler */
/**/
void touchchange(int chan, int value)
{
/* insert after touch actions here */
}
void sysex(void)
{
}
/*
* NOTE: this is called just before closing down the midi interface.
*/
void coda(void)
{
}
#ifdef AMIGA
void buttonchange(int number, int value)
{
}
void propchange(int number, int value)
{
/* insert propchange actions here */
}
#endif
|