getting FM
This commit is contained in:
@@ -28,7 +28,7 @@ void loop(){
|
||||
Music.setFrequency(frequency);
|
||||
|
||||
xB = analogRead(A0);
|
||||
volume = -float(xB)/256.; // B position
|
||||
volume = -float(xB)/1024.; // B position
|
||||
volume = pow(10,volume);
|
||||
Music.setGain(volume);
|
||||
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
//FM synthes of a sort
|
||||
<<<<<<< HEAD:software/lib/MMM/examples/Motion/_8_FM/_8_FM.ino
|
||||
//hang on! (it's unstable and wants to limit cycle)
|
||||
=======
|
||||
//hang on! it's unstable and wants to limit cycle
|
||||
|
||||
#define BIT_DEPTH 8 // gives us 16 Waveforms
|
||||
>>>>>>> getting FM:software/apps/Modeling/FM/FM.ino
|
||||
|
||||
#include <Music.h>
|
||||
#define BIT_DEPTH 8 // gives us 16 Waveforms
|
||||
|
||||
#include <Motor.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user