2016-03-26 00:47:20 +01:00
|
|
|
# Ring Tone
|
|
|
|
|
|
|
|
Play a continuous tone through pin P0.
|
|
|
|
|
|
|
|
## Simulator
|
|
|
|
|
|
|
|
Simulation of this function is available in many, but not all browsers.
|
|
|
|
|
|
|
|
```sig
|
|
|
|
music.ringTone(440)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* `frequency` : [Number](/reference/types/number) - Plays a tone in (Hz)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
Play a sound based on the tile of the device
|
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.forever(() => {
|
|
|
|
music.ringTone(input.acceleration(Dimension.X))
|
|
|
|
})
|
|
|
|
```
|
|
|
|
|
|
|
|
### See also
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
[rest](/reference/music/rest), [play tone](/reference/music/play-tone) , [tempo](/reference/music/tempo), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by)
|
2016-03-26 00:47:20 +01:00
|
|
|
|