Beat

Returns the duration of a beat in milli-seconds

Simulator

This function only works on the Calliope mini and in some browsers.

music.beat(BeatFraction.Whole)

Parameters

Returns

Example

music.playTone(Note.C, music.beat(BeatFraction.Quarter))

See also

play tone, ring tone, rest, set tempo, change tempo by

Edit this page on GitHub