-
Notifications
You must be signed in to change notification settings - Fork 96
Closed as not planned
Labels
conclusion: duplicateHas already been submittedHas already been submittedtopic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Hi, since today i'm getting weird error in the controlChange sendnote functions.
Compiling does not work anymore, I've even tried your read MIDI example from this github.. Reinstalled all libraries. Nothing seem to work.
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino: In function 'void noteOn(byte, byte, byte)':
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino:19:42: warning: narrowing conversion of '(int)(144 | ((unsigned char)((int)channel)))' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
midiEventPacket_t noteOn = {0x09, 0x90 | channel, pitch, velocity};
~~~~~^~~~~~~~~
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino: In function 'void noteOff(byte, byte, byte)':
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino:24:43: warning: narrowing conversion of '(int)(128 | ((unsigned char)((int)channel)))' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
midiEventPacket_t noteOff = {0x08, 0x80 | channel, pitch, velocity};
~~~~~^~~~~~~~~
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino: In function 'void controlChange(byte, byte, byte)':
C:\Users\i4studio\Documents\Arduino\MIDI READ EXAMPLE GIHUB\MIDI READ EXAMPLE GIHUB.ino:38:41: warning: narrowing conversion of '(int)(176 | ((unsigned char)((int)channel)))' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
midiEventPacket_t event = {0x0B, 0xB0 | channel, control, value};
~~~~~^~~~~~~~~
Sketch uses 4908 bytes (17%) of program storage space. Maximum is 28672 bytes.
Global variables use 457 bytes (17%) of dynamic memory, leaving 2103 bytes for local variables. Maximum is 2560 bytes.
Metadata
Metadata
Assignees
Labels
conclusion: duplicateHas already been submittedHas already been submittedtopic: documentationRelated to documentation for the projectRelated to documentation for the projecttype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project