RingTone.h
Go to the documentation of this file.
virtual bool readNextNote(NoteDef ¬e)=0
Fetch the next note for this tune.
Definition: RingTone.h:19
unsigned getClosestNote(unsigned frequency, unsigned &octave)
Convert a frequency into a scale/note combination into frequency.
unsigned charToNoteValue(char c)
Get the corresponding note number for a letter.
static unsigned noteFrequencyA4
Reference note frequency.
Definition: RingTone.h:51
@ D_Flat
@ C_Sharp
@ B_Flat
@ MUTE
@ E_Flat
@ F_Sharp
@ D_Sharp
@ A_Flat
@ G_Sharp
@ A_Sharp
unsigned getNoteFrequency(unsigned octave, unsigned note)
Convert a scale/note combination into frequency.
Definition: RingTone.h:43