Struct AudityMusicSettings
Musical identity of a sample: its tempo (for the waveform editor’s grid and snapping) and its downbeat - the frame where bar 1 beat 1 lands. Audio before the downbeat is a pickup: a quantized Wave Player launch starts the clip early so the DOWNBEAT (not frame 0) lands on the grid boundary. A downbeat of 0 means the clip starts on its own downbeat (no pickup) - the neutral default.
Assembly: DarkEffekt.Audity.Runtime
Section titled “Assembly: DarkEffekt.Audity.Runtime”[Serializable]public struct AudityMusicSettingsFields
Section titled “Fields”[Tooltip("Tempo of this clip. 0 = not musical (no grid or tempo snapping in the waveform editor).")][Min(0)]public float bpmbeatsPerBar
Section titled “beatsPerBar”[Tooltip("Beats per bar for the waveform grid. 0 = 4.")][Min(0)]public int beatsPerBardownbeatSamples
Section titled “downbeatSamples”[Tooltip("Where bar 1 beat 1 lands. Audio before it is a pickup that plays ahead of the boundary on a quantized launch.")]public long downbeatSamplesauthoredFrequency
Section titled “authoredFrequency”Rate-stamped like DarkEffekt.Audity.AudityLoopSettings.authoredFrequency.
public int authoredFrequencyMethods
Section titled “Methods”ResolveFrames(int, long, out long)
Section titled “ResolveFrames(int, long, out long)”Resolves DarkEffekt.Audity.AudityMusicSettings.downbeatSamples onto the clip’s CURRENT rate and clamps into the clip.
public void ResolveFrames(int clipFrequency, long clipFrames, out long downbeatFrames)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
clipFrequency |
System.Int64 |
clipFrames |
System.Int64 |
downbeatFrames |