Main Content

Note Generator

Generate frequency corresponding to a musical note

  • Library:
  • Simulink Coder Support Package for BBC micro:bit/Audio

  • Note Generator block


The Note Generator block generates a frequency that corresponds to the selected musical note and scale.



expand all

The block has one output port.

The frequency (in Hz) that is generated corresponding to the specified musical Note and Scale.

Data Types: double


expand all

Specify the scale of the musical note. Scale can take a value of Low, Mid, or 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 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.

See Also