forked from mirrors/qmk_userspace
initial implementation of polyphony using variable length array of notes on
This commit is contained in:
parent
5ae1411fc3
commit
e405ab4bc6
5 changed files with 211 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue