Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output pin? #2

Open
widarr opened this issue Jan 23, 2014 · 6 comments
Open

Output pin? #2

widarr opened this issue Jan 23, 2014 · 6 comments

Comments

@widarr
Copy link

widarr commented Jan 23, 2014

I tested ALL pins of my MEGA2560 and there is no output at all.
How can I test this?

@mrgame64
Copy link

It's because the code was specifically written for ATmega168/328 based Arduinos.
The incompatibility with MEGA2560 is due to different clock registers etc.

I was able to modify the code to run on the MEGA2560 perfectly, but I lost it.
I'll make a fork and rewrite+upload my code for the Mega board as soon as I find some time.

@widarr
Copy link
Author

widarr commented Feb 1, 2014

Ok, thank you.
Would it be possible to change to output pin of the ATMEGA328 version to be PB1 (Digital Pin 9)?
I have a finished circuit board where I want to use a wavetable synthesizer but I can't change the pin lokation anymore without many bodge wires.

@mrgame64
Copy link

mrgame64 commented Feb 1, 2014

I think it's doable, but not that simple.
Currently I forked the repo (https://github.com/mrgame64/ArduinoSynth) so please direct your issue(s) there.

@mrgame64
Copy link

mrgame64 commented Feb 2, 2014

@widarr My fork is now compatible with MEGA boards: dacb7f0

@widarr
Copy link
Author

widarr commented Feb 20, 2014

Nice Work :D It works now on my MEGA Board :)
I want to learn more about how the code works, can you make a comment in the setup() function how to use the input 2d array? The rows are the voices right? But how do you change the frequencies of the different waveforms? And what do the Envelopes do?

@mrgame64
Copy link

Honestly I'm unable to explain how that program actually works, but I can only point you to a freshly released "user friendly" version of this synthesizer with examples, documentation, etc. (MEGA is supported!)

https://github.com/dzlonline/the_synth

As for the envelopes, they fade out a sound as it ends. More about them here: http://en.wikipedia.org/wiki/ADSR_envelope#ADSR_envelope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants