UNPKG

pxt-core

Version:

Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors

25 lines (24 loc) 912 B
import { FieldMusicEditor, FieldMusicEditorOptions } from "./field_musiceditor"; import * as Blockly from "blockly"; interface FieldPianoRollOptions extends FieldMusicEditorOptions { maxPolyphony?: number; hideHeader?: boolean; borderColor?: string; encodeAsMelody?: boolean; minOctave?: number; maxOctave?: number; } export declare class FieldPianoRoll extends FieldMusicEditor { protected showInWidgetDiv: boolean; protected encodeAsMelody: boolean; showEditor_(): void; protected getEditorKind(): string; protected isFullscreen(): boolean; protected getValueText(): string; protected createNewAsset(text?: string): pxt.Asset; protected parseFieldOptions(opts: any): FieldPianoRollOptions; protected onEditorClose(newValue: pxt.Asset): void; protected syncTempoField(bpm: number): void; protected getTempoField(): Blockly.Field; } export {};