pxt-calliope/docs/reference/music/ring-tone.md
2016-04-13 08:27:45 -07:00

627 B

Ring Tone

Play a continuous tone through pin P0.

Simulator

Simulation of this function is available in many, but not all browsers.

music.ringTone(440)

Parameters

  • frequency : Number - Plays a tone in (Hz)

Example

Play a sound based on the tile of the device

basic.forever(() => {
    music.ringTone(input.acceleration(Dimension.X))
})

See also

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