StereoChordEGG.ck

// In the late '60s or early 70's Paia electronics came out with a circuit kit called the
// Stereo Chord EGG (Electronic Gratification Generator). It was a top-octave generator
// along with a resistor network to mix up the I,IV and V chords into the left and right channels.
//
// This little chuck proggy is an attempt to re-create "the wisdom of the ancients" and let you
// hear what this little guy sounded like -- as best as my 35 year old, admittedly alcohol
// addled memories will permit.
class Chord
{
string myName; // a name for us to show the user during debug prints. BTW: what's with <<<>>> ??!?!
//Paia's circuit used a top-octave generator to make a square wave train that they somehow filtered.
// I can't remember how that happened so I used banded wave guides, since it sounded right.

// the banded wave guides will be playing all the time, so the only control is that
// we will be ramping the gain of the mixer from current vol to wanted vol.
float currvol;
float wantedvol;
g => dac;

// set some defaults for the banded wave guide generators. I don't know or care too much
// what these all mean. It is enough that someone out in internet land knows.
// "The internet is the ultimate irreferance": Jim Hinds. and you can quote me on that.
public void setBand ( BandedWG b, float loudness, int note ) {
loudness=> b.gain;
1=> b.preset;