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.
See Also
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)