Vixen
02b45cc4
csharp
public sealed class AudioMixerView

A mixer, open for editing: a strip per bus, its inserts, and the snapshots.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Doc 20's B5 row is "buses, sends, effects, snapshots", and the layout is the one every mixer has had since the hardware ones: a horizontal row of vertical strips, because a fader is a thing you compare against its neighbours and a list of numbers is not.

⚠ The fader is a slider in decibels with a fixed scale, not a normalised one. A 0–1 fader is linear in amplitude, which puts every useful mix position in the top fifth of its travel; −60 to +12 dB is what a person can actually aim at, and it is the number the file stores, so what the strip shows and what the file says are the same number.

⚠ Solo is an editor state and is not written. It is a thing you do while listening and never a thing you ship, so it lives here and mutes the others in the preview rather than being a member of MixerBusAsset that a build would honour.

Fields and properties (14)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public UiElement Strips

    The strips.

  • public UiElement Side

    The column beside them.

  • public UiElement Fields

    The selected bus's inserts and sends.

  • public UiElement Snapshots

    The snapshots.

  • public UiElement Problems

    What building the mixer said.

  • public Button AddBus

    Adds a bus under the selected one.

  • public Button RemoveBus

    Removes the selected bus.

  • public Button AddSnapshot

    Adds a snapshot.

  • public string Selected

    Which bus is selected, or empty.

  • public string Snapshot

    Which snapshot the strips are showing, or empty for the authored mix.

  • public const float MinimumDb

    The quietest a fader goes, in decibels.

  • public const float MaximumDb

    And the loudest.

Methods (4)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(AudioMixerDocument mixer)

    Shows a mixer.

  • public void Reload(AudioMixerDocument mixer)

    Rebuilds the strips from the document.

  • public void Restate()

    Rebuilds the side panel for the selected bus and the snapshot list.

Used by (2)

  • AudioMixerEditorFactoryVixen.Editor.AssetEditors
  • AudioMixerViewTestsVixen.Editor.AssetEditors.Tests