Hey guys,
first of all I'm sorry if I'm posting this thread into the wrong forum section!
I got a problem with my Arduino code as you can see below in the pictures (here again I'm sorry if making a screenshot was inappropriate, not sure how to show you the whole thing otherwise).
I started off with one of the Teensy example audio projects inside Arduino and tried to implement my own code, but failed so far
My idea was to start with a simple sawtooth oscillator and to try to create a modulo counter which should write the incremented values into my audio block pointer as you can see below.
Does anyone know what my mistake is so far? I tried to debug with serial.print() (you can see the serial monitor in the last picture). Why is the wrap around coming between 18000 and 19000 - and not 32767 like i wanted it to?
At the moment I'm just hearing a flimsy roar at a high frequency on my speakers (much higher than the wanted 100 Hz) so my code is clearly not working at all
Hope you guys can help me!
with best wishes,
MarkV
first of all I'm sorry if I'm posting this thread into the wrong forum section!
I got a problem with my Arduino code as you can see below in the pictures (here again I'm sorry if making a screenshot was inappropriate, not sure how to show you the whole thing otherwise).
I started off with one of the Teensy example audio projects inside Arduino and tried to implement my own code, but failed so far
My idea was to start with a simple sawtooth oscillator and to try to create a modulo counter which should write the incremented values into my audio block pointer as you can see below.
Does anyone know what my mistake is so far? I tried to debug with serial.print() (you can see the serial monitor in the last picture). Why is the wrap around coming between 18000 and 19000 - and not 32767 like i wanted it to?
At the moment I'm just hearing a flimsy roar at a high frequency on my speakers (much higher than the wanted 100 Hz) so my code is clearly not working at all
Hope you guys can help me!
with best wishes,
MarkV