support for piano

This commit is contained in:
chmora
2017-02-23 09:44:18 -08:00
committed by Peli de Halleux
parent 4c62df1112
commit d858bd0fe8
3 changed files with 55 additions and 52 deletions

View File

@@ -554,7 +554,7 @@ declare namespace music {
*/
//% help=music/play-tone weight=90
//% blockId=device_play_note block="play|tone %note=device_note|for %duration=device_beat" icon="\uf025" blockGap=8
//% parts="speaker" async shim=music::playTone
//% parts="speaker" async useEnumVal=1 shim=music::playTone
function playTone(frequency: number, ms: number): void;
}
declare namespace pins {