Sprites.Media.Sequencer.File

The File window: import and export a tune as a file, alongside the automatic save to the library. This page is a skeleton ahead of the build; each example's live preview is wired once the editor lands.

Sprites.Media.Sequencer.File

Sprites.Media.Sequencer.File.Window Void

Sprites.Media.Sequencer.File.Window(visible, data)

The File window, with import and export buttons for the tune. The tune is saved to the library automatically as it is edited; this window is for moving a tune in and out as a file.

InputTypeDescription
visibleSprites.Reactive.ValueShows the window while true.
dataSprites.Reactive.ValueThe tune.

Returns nothing.

const data = Sprites.Reactive.Value({ name: 'Untitled', tracks: [] });
const open = Sprites.Reactive.Value(false);
Sprites.Ui.Button.SetValue(open, true, 'Show file window');
Sprites.Media.Sequencer.File.Window(open, data);
A button opens the File window, with import and export for the tune.