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.

Play Note

Play musical note on specified pin on BBC micro:bit

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

Description

The Play Note block plays a musical note on a speaker connected to the specified pin on a BBC micro:bit. The note played corresponds to the input frequency.

Ports

Input

expand all

The block has one input port.

The frequency (in Hz) corresponding to the musical note to be played. The input frequency can be derived from the output of a Note Generator block or from the output of a constant block or a wave block.

Data Types: double

Parameters

expand all

The number of the pin on the BBC micro:bit that is connected to the speaker intended to play the musical note.

See Also

External Websites