This example demonstrates the Line class.
#include <MozziGuts.h>
#include <Oscil.h>
#include <tables/triangle_valve_2048_int8.h>
#include <tables/sin2048_int8.h>
#include <Line.h>
#include <mozzi_midi.h>
#define CONTROL_RATE 64 // powers of 2 please
void setup(){
aSig.setFreq(
mtof(65.f));
kTremelo.setFreq(5.5f);
}
unsigned int gain = (128u+kTremelo.next())<<8;
}
return (
int)((long)((
long) aSig.next() * aGain.
next()) >> 16);
}
void loop(){
}