Detune drones slightly
This commit is contained in:
parent
7f867b3018
commit
3be02ea3d9
23
uilleann.ino
23
uilleann.ino
|
@ -9,7 +9,7 @@
|
||||||
#include "notes.h"
|
#include "notes.h"
|
||||||
#include "fingering.h"
|
#include "fingering.h"
|
||||||
|
|
||||||
#define DEBUG
|
//#define DEBUG
|
||||||
#define KNEE_OFFSET 0
|
#define KNEE_OFFSET 0
|
||||||
#define KEY_OFFSET 2
|
#define KEY_OFFSET 2
|
||||||
|
|
||||||
|
@ -24,15 +24,14 @@ AudioMixer4 mixL;
|
||||||
AudioMixer4 mixR;
|
AudioMixer4 mixR;
|
||||||
AudioOutputAnalogStereo dacs1;
|
AudioOutputAnalogStereo dacs1;
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
AudioSynthNoiseWhite debug;
|
AudioSynthNoiseWhite debug;
|
||||||
#endif
|
|
||||||
|
|
||||||
AudioConnection FMVoicePatchCords[] = {
|
AudioConnection FMVoicePatchCords[] = {
|
||||||
#ifdef DEBUG
|
{debug, 0, mixR, 3}, // Don't know why, but the first one is ignored
|
||||||
{debug, 0, mixL, 3},
|
{debug, 0, mixL, 3},
|
||||||
{debug, 0, mixR, 3},
|
|
||||||
#endif
|
{mixL, 0, dacs1, 0},
|
||||||
|
{mixR, 0, dacs1, 1},
|
||||||
|
|
||||||
{Chanter.outputMixer, 0, biquad1, 0},
|
{Chanter.outputMixer, 0, biquad1, 0},
|
||||||
{biquad1, 0, mixL, 0},
|
{biquad1, 0, mixL, 0},
|
||||||
|
@ -50,9 +49,6 @@ AudioConnection FMVoicePatchCords[] = {
|
||||||
{mixRegulators, 0, mixL, 2},
|
{mixRegulators, 0, mixL, 2},
|
||||||
{mixRegulators, 0, mixR, 2},
|
{mixRegulators, 0, mixR, 2},
|
||||||
|
|
||||||
{mixL, 0, dacs1, 0},
|
|
||||||
{mixR, 0, dacs1, 1},
|
|
||||||
|
|
||||||
FMVoiceWiring(Chanter),
|
FMVoiceWiring(Chanter),
|
||||||
FMVoiceWiring(Drones[0]),
|
FMVoiceWiring(Drones[0]),
|
||||||
FMVoiceWiring(Drones[1]),
|
FMVoiceWiring(Drones[1]),
|
||||||
|
@ -114,8 +110,9 @@ void setup() {
|
||||||
|
|
||||||
// Turn on drones
|
// Turn on drones
|
||||||
for (int i=0; i<3; i++) {
|
for (int i=0; i<3; i++) {
|
||||||
|
float detune = (1-i) * 0.002;
|
||||||
FMVoiceLoadPatch(&Drones[i], &Bank[0]);
|
FMVoiceLoadPatch(&Drones[i], &Bank[0]);
|
||||||
FMVoiceNoteOn(&Drones[i], JustPitches[NOTE_D4 - 12*i] + i);
|
FMVoiceNoteOn(&Drones[i], JustPitches[NOTE_D4 - 12*i] * (1 + detune));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Turn on all mixer channels
|
// Turn on all mixer channels
|
||||||
|
@ -124,11 +121,9 @@ void setup() {
|
||||||
mixR.gain(i, 0.6);
|
mixR.gain(i, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
debug.amplitude(0.1);
|
debug.amplitude(0.1);
|
||||||
mixL.gain(3, 0.1);
|
mixL.gain(3, 0);
|
||||||
mixR.gain(3, 0.1);
|
mixR.gain(3, 0);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define BUTTON_UP 0
|
#define BUTTON_UP 0
|
||||||
|
|
Loading…
Reference in New Issue