Skip to content

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.

Declaration
[Serializable]
public struct AudityMusicSettings
Declaration
[Tooltip("Tempo of this clip. 0 = not musical (no grid or tempo snapping in the waveform editor).")]
[Min(0)]
public float bpm
Declaration
[Tooltip("Beats per bar for the waveform grid. 0 = 4.")]
[Min(0)]
public int beatsPerBar
Declaration
[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 downbeatSamples

Rate-stamped like DarkEffekt.Audity.AudityLoopSettings.authoredFrequency.

Declaration
public int authoredFrequency

Resolves DarkEffekt.Audity.AudityMusicSettings.downbeatSamples onto the clip’s CURRENT rate and clamps into the clip.

Declaration
public void ResolveFrames(int clipFrequency, long clipFrames, out long downbeatFrames)
Type Name
System.Int32 clipFrequency
System.Int64 clipFrames
System.Int64 downbeatFrames