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.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.
| Input | Type | Description |
|---|---|---|
visible | Sprites.Reactive.Value | Shows the window while true. |
data | Sprites.Reactive.Value | The 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);