Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
teslakom
tesla-driver
Commits
e50c1a6b
Commit
e50c1a6b
authored
Mar 01, 2014
by
Knut Aldrin
Browse files
Final change
parent
6098e86c
Changes
1
Show whitespace changes
Inline
Side-by-side
Tonegenerator/Tonegenerator/midi.c
View file @
e50c1a6b
...
...
@@ -206,6 +206,18 @@ void note_create( uint8_t chan, uint8_t notenum, uint8_t vel ) {
}
}
*/
/* Emergency code for one channel only
if( iLastNote0 == 1 ) {
notes[chan][0] = newNote;
iLastNote0 = 0;
}
else {
notes[chan][1] = newNote;
iLastNote0 = 1;
}
*/
if
(
chan
==
0
)
{
if
(
iLastNote0
==
1
)
{
notes
[
chan
][
0
]
=
newNote
;
...
...
@@ -229,6 +241,7 @@ void note_create( uint8_t chan, uint8_t notenum, uint8_t vel ) {
// Set the new note!
//notes[chan][iEldestNoteNum] = newNote;
}
...
...
Write
Preview
Markdown
is supported
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