Fix default value for note block (#1053)

This commit is contained in:
Richard Knoll 2018-08-08 14:51:00 -07:00 committed by GitHub
parent c8e12334cf
commit 9aac836ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,13 +210,13 @@ namespace music {
/**
* Gets the frequency of a note.
* @param name the note name, eg: Note.C
* @param name the note name
*/
//% weight=50 help=music/note-frequency
//% blockId=device_note block="%note"
//% blockId=device_note block="%name"
//% shim=TD_ID color="#FFFFFF" colorSecondary="#FFFFFF"
//% note.fieldEditor="note" note.defl="262"
//% note.fieldOptions.decompileLiterals=true
//% name.fieldEditor="note" name.defl="262"
//% name.fieldOptions.decompileLiterals=true
//% useEnumVal=1
export function noteFrequency(name: Note): number {
return name;