Vixen
dd8b0a81
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

The panel is AudioMixerView.vxml; this file is the accessibility modifier, the records the markup's snapshot is made of, and the handful of elements that exist only so that markup can write an intrinsic tag's own Text. Same arrangement as GpuTimelineView.

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 (16)

  • protected override string TagName
  • public const float MinimumDb

    The quietest a fader goes, in decibels.

  • public const float MaximumDb

    And the loudest.

  • protected override bool AcceptsFocus

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

  • public ElementRefs<Slider> Faders

    Each strip's fader, by the strip the loop reconciled it on.

  • public ElementRefs<ToggleButton> Mutes
  • 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.

Methods (4)

  • protected override void OnCreated()
  • protected override void OnRemoved()
  • public void Show(AudioMixerDocument mixer)

    Shows a mixer.

  • public void Reload(AudioMixerDocument mixer)

    Re-reads the document.

Used by (2)

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