Note Generator
Generate frequency corresponding to a musical note
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.
Examples
Ports
Output
The block has one output port.
Port_1(Frequency) — Frequency generated corresponding to a musical
note
scalar
The frequency (in Hz) that is generated corresponding to the specified musical Note and Scale.
Data Types: double
Parameters
Scale — Scale of musical note
Mid
(default) | Low
| High
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.
Note — Letter name of note from the chromatic scale
C
(default) | C#
| D
| D#
| E
| F
| F#
| G
| G#
| A
| A#
| B
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)