note Frequency
Get the frequency of a musical note.
music.noteFrequency(Note.C)
Parameters
name
is the name of the Note you want a frequency value for.
Returns
Example
Play a ‘C’ note for one second, rest for one second, and then play an ‘A’ note for one second.
music.playTone(music.noteFrequency(Note.C), 1000)
music.rest(1000)
music.playTone(music.noteFrequency(Note.A), 1000)