|
|
@ -148,7 +148,8 @@ void sendMidiMessage(uint8_t command, uint8_t byte1, uint8_t byte2) |
|
|
|
// The callback function wich will be called by uClock each Pulse of 16PPQN clock resolution. Each call represents exactly one step. |
|
|
|
// The callback function wich will be called by uClock each Pulse of 16PPQN clock resolution. Each call represents exactly one step. |
|
|
|
void ClockOut16PPQN(uint32_t * tick) |
|
|
|
void ClockOut16PPQN(uint32_t * tick) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint16_t step, length; |
|
|
|
uint16_t step; |
|
|
|
|
|
|
|
uint16_t length = NOTE_LENGTH; |
|
|
|
|
|
|
|
|
|
|
|
// get actual step. |
|
|
|
// get actual step. |
|
|
|
_step = *tick % _step_length; |
|
|
|
_step = *tick % _step_length; |
|
|
@ -165,7 +166,6 @@ void ClockOut16PPQN(uint32_t * tick) |
|
|
|
length = NOTE_LENGTH + (i * 6); |
|
|
|
length = NOTE_LENGTH + (i * 6); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} else if ( _sequencer[step].rest == false ) { |
|
|
|
} else if ( _sequencer[step].rest == false ) { |
|
|
|
length = NOTE_LENGTH; |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -274,4 +274,4 @@ void loop() |
|
|
|
//processYourLeds(); |
|
|
|
//processYourLeds(); |
|
|
|
//processYourPots(); |
|
|
|
//processYourPots(); |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|