initial implementation of polyphony using variable length array of notes on
This commit is contained in:
		| @@ -1101,16 +1101,21 @@ void cc_callback(MidiDevice * device, | ||||
|     uint8_t chan, uint8_t num, uint8_t val); | ||||
| void sysex_callback(MidiDevice * device, | ||||
|     uint16_t start, uint8_t length, uint8_t * data); | ||||
|  | ||||
| void setup_midi(void) | ||||
| { | ||||
| 	midi_init(); | ||||
| 	midi_device_init(&midi_device); | ||||
|     midi_device_set_send_func(&midi_device, usb_send_func); | ||||
|     midi_device_set_pre_input_process_func(&midi_device, usb_get_midi); | ||||
| } | ||||
| #endif | ||||
|  | ||||
| int main(void)  __attribute__ ((weak)); | ||||
| int main(void) | ||||
| { | ||||
|  | ||||
| #ifdef MIDI_ENABLE | ||||
|     midi_device_init(&midi_device); | ||||
|     midi_device_set_send_func(&midi_device, usb_send_func); | ||||
|     midi_device_set_pre_input_process_func(&midi_device, usb_get_midi); | ||||
|     setup_midi(); | ||||
| #endif | ||||
|  | ||||
|     setup_mcu(); | ||||
|   | ||||
| @@ -49,7 +49,7 @@ | ||||
| #include <LUFA/Drivers/USB/USB.h> | ||||
| #include "host.h" | ||||
| #ifdef MIDI_ENABLE | ||||
|   #include "midi.h" | ||||
|   #include "process_midi.h" | ||||
| #endif | ||||
| #ifdef __cplusplus | ||||
| extern "C" { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user