Fix default value for note block (#1053)
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user