This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Note Generator

Generate frequency corresponding to a musical note

  • Library:
  • 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.

See Also