Code Explanation

Making your program work.
Post Reply
Aegis
Posts: 1
Joined: Fri Nov 08, 2013 5:30 pm

Code Explanation

Post by Aegis » Fri Nov 08, 2013 5:34 pm

So I'm running Fluxamasynth on an ArduinoUno with the most recent updates. I have the library installed and I've used an example program to verify that everything is working properly.

My question is this:

Can anyone explain the synth commands beyond the very unhelpful wiki info? Specifically:

How does the programChange command work?
What are each of the variables in the different commands and how do they relate to one another? (programChange, noteOn, pitchBend)
What, exactly, does the pitchBend do?

Any help is greatly appreciated given I have 2 weeks to complete this project and can't afford to get hung up on the code.

paul
Site Admin
Posts: 733
Joined: Mon May 12, 2008 4:19 pm

Re: Code Explanation

Post by paul » Tue Nov 26, 2013 9:26 am

Angie,

I'm sorry for the really slow reply and I'm sorry you're having a hard time with the code.
Maybe you're up and running with the code by now.

The wiki is currently getting fixed but does work anyway. Just scroll down past the errors.

http://wiki.moderndevice.com/pmwiki.php ... istMethods

has the definitions of the all the library functions. Click on each one for a definition of the parameters.
How does the programChange command work?
void programChange(byte bank, byte channel, byte voice);
the params are explained here: http://wiki.moderndevice.com/pmwiki.php ... gramChange

What are each of the variables in the different commands and how do they relate to one another? (programChange, noteOn, pitchBend)

What, exactly, does the pitchBend do?
PitchBend will move the frequecy up or down smoothly a certain amount, which is set in pitchBendRange
http://wiki.moderndevice.com/pmwiki.php ... hBendRange

Hope that helps,

Paul

Post Reply