Sprites.Media.Sequencer.Info

The Info window: an always-open window (no close button) with number inputs for the tune's tempo in beats per minute, the beats per bar, and the bars per block. The bpm input writes its field straight, while the beats per bar and bars per block inputs write through a lens that resizes the blocks live via the tune data - changing the beats per bar resizes the beat dimension of every block and changing the bars per block resizes the bar dimension.

Sprites.Media.Sequencer.Info

Sprites.Media.Sequencer.Info.Window Void

Sprites.Media.Sequencer.Info.Window(visible, data, model)

The Info window with number inputs for bpm, beats per bar and bars per block over the tune's tempo. The bpm input writes its field straight. The beats per bar and bars per block inputs write through a lens that also resizes every block: changing the beats per bar resizes the beat dimension of every block, and changing the bars per block resizes the bar dimension, so the block editor reshapes live in the right dimension.

InputTypeDescription
visibleSprites.Reactive.ValueA boolean shown flag, held true.
dataSprites.Reactive.ValueThe tune data.
modelObjectThe platform descriptor, used to size the resize.

Returns nothing.

const model = Sprites.Platform.PC.Sequencer;
const fresh = Sprites.Media.Sequencer.NewDocument(model);
const data = Sprites.Reactive.Value(fresh);
const open = Sprites.Reactive.Value(false);
Sprites.Ui.Button.SetValue(open, true, 'Show info window');
Sprites.Media.Sequencer.Info.Window(open, data, model);
A button opens the Info window, which resizes the blocks live via the tune data.