Main Content

Note Generator

Generate frequency corresponding to a musical note

  • Note Generator block

Libraries:
Simulink Coder Support Package for BBC micro:bit/Audio

Description

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

Ports

Output

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

Parameters

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.

Version History

Introduced in R2018a

See Also