1
0
Fork 0

Working on keymap.c file...

This commit is contained in:
Ante Laurijssen 2017-05-15 22:56:33 -04:00
parent ee0b34feaf
commit 814b570ba1

View file

@ -9,15 +9,16 @@ enum keyboard_layers {
MIDI, //Midi Layer MIDI, //Midi Layer
}; };
// Midi Chord Keycodes
// Midi Chord Keycodes
/*
bool midi_chord(uint8_t mode, uint16_t root); bool midi_chord(uint8_t mode, uint16_t root);
enum midi_chord_modes { enum midi_chord_modes {
major = 0, major = 0,
minor, minor,
}; };
*/
enum midi_chord_keycodes { enum midi_chord_keycodes {
//Major Chords //Major Chords
@ -160,6 +161,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
}; };
/*
// Midi Chord Function // Midi Chord Function
bool midi_chord(uint8_t mode, uint16_t root) { bool midi_chord(uint8_t mode, uint16_t root) {
@ -199,7 +201,7 @@ bool midi_chord(uint8_t mode, uint16_t root) {
uint8_t minor_third = midi_compute_note(root) + 3; uint8_t minor_third = midi_compute_note(root) + 3;
uint8_t fifth = midi_compute_note(root) + 7; uint8_t fifth = midi_compute_note(root) + 7;
midi_send_noteon(&midi_device, channel, root_note, velocity); midi_send_noteon(&midi_device, channel, root_note, velocity);
midi_send_noteon(&midi_device, channel, major_third, velocity); midi_send_noteon(&midi_device, channel, minor_third, velocity);
midi_send_noteon(&midi_device, channel, fifth, velocity); midi_send_noteon(&midi_device, channel, fifth, velocity);
tone_status[tone] = root_note; tone_status[tone] = root_note;
} }
@ -219,4 +221,4 @@ bool midi_chord(uint8_t mode, uint16_t root) {
}; };
return true; return true;
}; };
*/