]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/keymap_midi.h
rests between notes as an argument
[qmk_firmware.git] / quantum / keymap_midi.h
index a89420ce2a26f89d510e1555df32fe5b0318ccce..795f26380ed8fb5eb53ac5b2999e358769cb1f09 100644 (file)
@@ -20,7 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include <lufa.h>
 
-#define MIDI 0x6000
+#define MIDI(n) ((n) | 0x6000)
 #define MIDI12 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000, 0x6000
 
 #define CHNL(note, channel) (note + (channel << 8))