diff --git a/software/lib/MMM/Music.h b/software/lib/MMM/Music.h index ddadd1c..44aba7f 100644 --- a/software/lib/MMM/Music.h +++ b/software/lib/MMM/Music.h @@ -338,10 +338,15 @@ ISR(TIMER2_COMPA_vect) { // timer 2 is audio interrupt timer void inline MMusic::synthInterrupt8bit() { + PORTD &= ~(1<<3); // Frame sync low for SPI (making it low here so that we can measure lenght of interrupt with scope) +#ifdef CFO + PORTB &= ~(1<<2); +#else PORTD &= ~(1<<6); +#endif accumulator1 = accumulator1 + period1; index1 = accumulator1 >> 8; @@ -436,8 +441,11 @@ void inline MMusic::synthInterrupt8bit() while (!(SPSR & (1<> 4; @@ -544,8 +556,11 @@ void MMusic::synthInterrupt12bitSine() while (!(SPSR & (1<