Instrument synthesis through a PWM output running at 62.5 kHz
2. Reading commands from a keypad
3. Reading keyboard input from a keyboard/keypad
4. Storing notes for each track
5. Printing to an LCD
6. Managing the state machine that would control the keyboard
7. Reading input/calculating output on time
The frequency synthesis is done through a table of PWM samples for one cycle of frequency modulated sine wave. The frequency of the note heard is changed by how fast we run through the PWM samples. The PWM output runs at 62.5 KHz.
Most transitions in state are triggered by commands. Every key on the keyboard is associated with a function which when pressed is called. These functions are controlled by a state machine. Writing the state machine for transition control is another milestone in this project and also forms a major portion of the software accomplishments here.
Filed Under: Reviews