Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
15 lines
574 B
Text
15 lines
574 B
Text
use mod.flow.*
|
|
|
|
/** The music recording to transcribe. */
|
|
let audio = Input{ type: @audio }
|
|
let transcribe = Notes{ audio: audio.audio() model: "basic-pitch" }
|
|
/** Publish the timed note analysis into the flow asset library. */
|
|
let notes = Publish{ value: transcribe.json() namespace: "flows" tags: ["flow", "notes"] }
|
|
/** The companion MIDI file. */
|
|
let midi = Output{ type: @bytes value: transcribe.midi() }
|
|
|
|
Flow{
|
|
label: "Transcribe notes"
|
|
brief: "Transcribes polyphonic music into timed note JSON and a companion MIDI file."
|
|
audio, transcribe, notes, midi
|
|
}
|