Trasselfrisyr / MIB

MIDI Injector Box, merge controller data to MIDI
2 stars 1 forks source link

how to fix error 'MIDIEvent' was not declared in this scope #1

Open hadikhakbazpour opened 3 years ago

hadikhakbazpour commented 3 years ago

hi i upload file Breath-Injector-ProMicroArcore.ino to my Arduino pro micro but not compiling successful this is error :

C:\Users\Pro Book\Desktop\New folder (10)\MIB-master\MIB-master\Breath-Injector-ProMicroArcore\Breath-Injector-ProMicroArcore.ino: In function 'void controlChange(byte, byte, byte)': Breath-Injector-ProMicroArcore:163:3: error: 'MIDIEvent' was not declared in this scope MIDIEvent event = {0x0B, 0xB0 | channel, control, value}; ^~~~~ Breath-Injector-ProMicroArcore:164:3: error: 'MIDIUSB' was not declared in this scope MIDIUSB.write(event); ^~~ C:\Users\Pro Book\Desktop\New folder (10)\MIB-master\MIB-master\Breath-Injector-ProMicroArcore\Breath-Injector-ProMicroArcore.ino:164:3: note: suggested alternative: 'MIDI' MIDIUSB.write(event); ^~~ MIDI Breath-Injector-ProMicroArcore:164:17: error: 'event' was not declared in this scope MIDIUSB.write(event); ^~~~~ C:\Users\Pro Book\Desktop\New folder (10)\MIB-master\MIB-master\Breath-Injector-ProMicroArcore\Breath-Injector-ProMicroArcore.ino: In function 'void channelAT(byte, byte)': Breath-Injector-ProMicroArcore:168:3: error: 'MIDIEvent' was not declared in this scope MIDIEvent event = {0x0D, 0xD0 | channel, value}; ^~~~~ Breath-Injector-ProMicroArcore:169:3: error: 'MIDIUSB' was not declared in this scope MIDIUSB.write(event); ^~~ C:\Users\Pro Book\Desktop\New folder (10)\MIB-master\MIB-master\Breath-Injector-ProMicroArcore\Breath-Injector-ProMicroArcore.ino:169:3: note: suggested alternative: 'MIDI' MIDIUSB.write(event); ^~~ MIDI Breath-Injector-ProMicroArcore:169:17: error: 'event' was not declared in this scope MIDIUSB.write(event); ^~~~~ exit status 1 'MIDIEvent' was not declared in this scope

error

Trasselfrisyr commented 3 years ago

Arcore is needed. https://github.com/rkistner/arcore

I haven't used this for quite some time, so I don't know if Arcore is compatible with current Arduino IDE versions. I guess you'll find out :)