Vixen
02b45cc4
csharp
public readonly record struct MusicMarker

A named place in a segment, in beats from its start.

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

Remarks

What gameplay hangs on: a door that opens on the downbeat, a light that flashes on the snare. MusicPlayer.MarkerPassed is raised as the playhead crosses one, on the game thread and therefore late by up to a frame — which is fine for anything visual and is not what a musical change is scheduled with.

Fields and properties (2)

  • public string Name

    What it is called.

  • public float Beat

    How far in, in beats.

Methods (1)

  • public MusicMarker(string Name, float Beat)

    A named place in a segment, in beats from its start.

Used by (3)

  • MusicPlayerVixen.Audio
  • MusicSegmentVixen.Audio
  • MusicSegmentAssetVixen.Audio