Generate frequency corresponding to a musical note
Simulink Coder Support Package for BBC micro:bit/Audio
The Note Generator block generates a frequency that corresponds to the selected musical note and scale.
The block has one output port.
Port_1(Frequency)— Frequency generated corresponding to a musical note
The frequency (in Hz) that is generated corresponding to the specified musical Note and Scale.
Scale— Scale of musical note
Specify the scale of the musical note. Scale can take
a value of
High, placing the note
in one of three available octaves. Middle C, with a
frequency of 261.6 Hz, corresponds to a
Note value of C in the Mid
Note— Letter name of note from the chromatic scale
Specify one of the 12 notes of the chromatic scale. The notes listed are in order from low to high in pitch. Each pair of notes is one half step apart.