added configs to booket, pluck and byte
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
//
|
||||
// Released under the Apache 2.0 License
|
||||
|
||||
#include "config.h"
|
||||
|
||||
/// BOOKER
|
||||
///
|
||||
@ -20,7 +21,7 @@
|
||||
///
|
||||
/// THE LESLIE. Booker comes with a Leslie, which is on by default:
|
||||
|
||||
#define LESLIE_ON // To turn this off, put a // before the #define, as in //#define
|
||||
// #define LESLIE_ON // To turn this off, put a // before the #define, as in //#define
|
||||
|
||||
// Leslie changes both the amplitude and pitch at a certain rate.
|
||||
// You can adjust them here
|
||||
@ -336,15 +337,6 @@ int8_t drawBarAmplitudes[9] =
|
||||
};
|
||||
|
||||
|
||||
#define CV_POT_IN1 A7 // Note in, Pitch Scaling
|
||||
#define CV_POT_IN2 A6 // Gain
|
||||
#define CV_POT3 A4 // Organ Selection
|
||||
#define CV_IN3 A2 // [Unused]
|
||||
#define CV_AUDIO_IN A0 // Pitch Tune
|
||||
#define CV_AUDIO_OUT 9 // Out
|
||||
#define CV_GATE_OUT 10 // [Unused]
|
||||
|
||||
|
||||
#define MEDIAN_OF_THREE(a,b,c) (((a) <= (b)) ? (((b) <= (c)) ? (b) : (((a) < (c)) ? (c) : (a))) : (((a) <= (c)) ? (a) : (((b) < (c)) ? (c) : (b))))
|
||||
uint16_t pitchCV;
|
||||
uint16_t tuneCV;
|
||||
@ -411,7 +403,7 @@ void setup()
|
||||
drawbars[i][j] = drawBarAmplitudes[drawbars[i][j]];
|
||||
}
|
||||
}
|
||||
initializeFrequency(CV_POT_IN1, CV_AUDIO_IN);
|
||||
initializeFrequency(CVIn, Knob1);
|
||||
}
|
||||
|
||||
void loop()
|
||||
@ -430,7 +422,7 @@ uint16_t gain; // our current gain
|
||||
uint16_t counter =0;
|
||||
void updateControl()
|
||||
{
|
||||
float frequency = getFrequency(CV_POT_IN1, CV_AUDIO_IN);
|
||||
float frequency = getFrequency(CVIn, Knob1);
|
||||
|
||||
// leslie!
|
||||
#ifdef LESLIE_ON
|
||||
@ -445,7 +437,7 @@ void updateControl()
|
||||
}
|
||||
|
||||
// determine the gain
|
||||
gain = 1 + (mozziAnalogRead(CV_POT_IN2) >> 2) // Gain (Volume)
|
||||
gain = 1 + (mozziAnalogRead(Knob3) >> 2) // Gain (Volume)
|
||||
#ifdef LESLIE_ON
|
||||
#if LESLIE_VOLUME==0
|
||||
#else
|
||||
@ -458,7 +450,7 @@ void updateControl()
|
||||
if (++counter == COUNTER_MAX)
|
||||
{
|
||||
counter = 0;
|
||||
organ = (organ + (mozziAnalogRead(CV_POT3) * NUM_DRAWBAR_SELECTIONS)) >> 10; // Organ Selection
|
||||
organ = (organ + (mozziAnalogRead(Knob2) * NUM_DRAWBAR_SELECTIONS)) >> 10; // Organ Selection
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user