2016-04-05 23:23:42 +03:00
|
|
|
# Music
|
|
|
|
|
2016-05-05 21:16:14 +03:00
|
|
|
Generation of music tones through pin ``P0``.
|
2016-04-05 23:23:42 +03:00
|
|
|
|
|
|
|
```cards
|
|
|
|
music.playTone(0, 0);
|
|
|
|
music.ringTone(0);
|
|
|
|
music.rest(0);
|
2016-04-05 23:54:48 +03:00
|
|
|
music.noteFrequency(Note.C);
|
2016-05-05 21:16:14 +03:00
|
|
|
music.beat(BeatFraction.Whole);
|
2016-04-05 23:23:42 +03:00
|
|
|
music.tempo();
|
|
|
|
music.changeTempoBy(20);
|
|
|
|
music.setTempo(120);
|
|
|
|
```
|