PWM not outputting desired waveforms

Status
Not open for further replies.

Lennox

New member
Hi all,

I'm currently working on a wavetable synthesizer project at university. I borrowed source code from a project that Gary DeReese developed (https://github.com/gdereese/arduino-wavetable-synth).

I've uploaded the code to my teensy 3.6 and I can't seem to get the desired output. Right now, the code is set for a sine wave, and I'm getting this as my output:
Capture[22].jpg

I'm also getting this warning:
Screen Shot 2021-04-19 at 18.30.27.jpg

Here's my code:
View attachment wavetable-synth.ino

And here are the libraries I used:
phase-inc-table.h
View attachment phase-inc-table.h

wavetables.h
View attachment wavetables.h
 
One million won't fit into a 16-bit unsigned integer.

Copying the text of the message and pasting it in your message is a lot easier than an image.

Pete
 
Status
Not open for further replies.
Back
Top