Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
cc959c94
Commit
cc959c94
authored
Apr 25, 2012
by
Dean Camera
Browse files
Oops - fix broken MIDIToneGenerator project due to MIDI class API changes.
parent
69ecaae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Projects/MIDIToneGenerator/MIDIToneGenerator.c
View file @
cc959c94
...
...
@@ -100,7 +100,7 @@ int main(void)
MIDI_EventPacket_t
ReceivedMIDIEvent
;
if
(
MIDI_Device_ReceiveEventPacket
(
&
Keyboard_MIDI_Interface
,
&
ReceivedMIDIEvent
))
{
if
((
ReceivedMIDIEvent
.
Command
==
(
MIDI_COMMAND_NOTE_ON
>>
4
))
&&
((
ReceivedMIDIEvent
.
Data1
&
0x0F
)
==
0
))
if
((
ReceivedMIDIEvent
.
Event
==
MIDI_EVENT
(
0
,
MIDI_COMMAND_NOTE_ON
))
&&
((
ReceivedMIDIEvent
.
Data1
&
0x0F
)
==
0
))
{
DDSNoteData
*
LRUNoteStruct
=
&
NoteData
[
0
];
...
...
@@ -134,7 +134,7 @@ int main(void)
/* Turn on indicator LED to indicate note generation activity */
LEDs_SetAllLEDs
(
LEDS_LED1
);
}
else
if
((
ReceivedMIDIEvent
.
Command
==
(
MIDI_COMMAND_NOTE_OFF
>>
4
))
&&
((
ReceivedMIDIEvent
.
Data1
&
0x0F
)
==
0
))
else
if
((
ReceivedMIDIEvent
.
Event
==
MIDI_EVENT
(
0
,
MIDI_COMMAND_NOTE_OFF
))
&&
((
ReceivedMIDIEvent
.
Data1
&
0x0F
)
==
0
))
{
bool
FoundActiveNote
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment