Simple synthesizer for STM32F401RE/STMstation.

Dependencies:   FastPWM mbed-dsp

Embed: (wiki syntax)

« Back to documentation index

melody Struct Reference

melody Struct Reference

Stores data for a song or sound effect. More...

#include <STMstation_synth.h>


Detailed Description

Stores data for a song or sound effect.

Parameters:
notesNote frequency and timbre
durationsDuration (from 1/64th to 4 counts)
ARAttack/Release (bits 7:4 - attack, 3:0 - release)
volVolume (0 - muted, 127 - 1x volume, 255 - 2x volume
maxMax index of each channel
endedHas the channel completed playing?
repeatShould the channel repeat or stop?
bpmTempo, in 1/4th counts per minute

Definition at line 21 of file STMstation_synth.h.