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

View File

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