diff --git a/libs/core/music.ts b/libs/core/music.ts index 470d0d7d..d80aaed0 100644 --- a/libs/core/music.ts +++ b/libs/core/music.ts @@ -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;