Class RecipeMusicTrackDto
Recipe description of a single music track definition. Maps to a UnityMusicTrackDefinition asset.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public class RecipeMusicTrackDto
Constructors
RecipeMusicTrackDto()
Declaration
public RecipeMusicTrackDto()
Fields
artist
Declaration
public string artist
Field Value
| Type | Description |
|---|---|
| string | Artist / composer name. |
beatUnit
Declaration
public int beatUnit
Field Value
| Type | Description |
|---|---|
| int | Time-signature denominator (Bars mode). Defaults to 4. |
beatsPerBar
Declaration
public int beatsPerBar
Field Value
| Type | Description |
|---|---|
| int | Time-signature numerator (Bars mode). Defaults to 4. |
bpm
Declaration
public float bpm
Field Value
| Type | Description |
|---|---|
| float | Tempo in BPM (Bars mode). Defaults to 120. |
endBar
Declaration
public int endBar
Field Value
| Type | Description |
|---|---|
| int | 1-indexed loop-out bar, exclusive (Bars mode). Defaults to 2. |
endTimeSeconds
Declaration
public float endTimeSeconds
Field Value
| Type | Description |
|---|---|
| float | Loop-out point in seconds (Time mode); 0 means loop the whole clip. |
id
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string | Stable logical identifier (becomes the asset's |
loopInputMode
Declaration
public string loopInputMode
Field Value
| Type | Description |
|---|---|
| string | Loop authoring mode, as a |
output
Declaration
public string output
Field Value
| Type | Description |
|---|---|
| string | Output path relative to |
source
Declaration
public string source
Field Value
| Type | Description |
|---|---|
| string | Project path to an existing |
startBar
Declaration
public int startBar
Field Value
| Type | Description |
|---|---|
| int | 1-indexed loop-return bar (Bars mode). Defaults to 1. |
startFromLoopPoint
Declaration
public bool startFromLoopPoint
Field Value
| Type | Description |
|---|---|
| bool | Whether first playback begins at the loop-return point, skipping the intro. |
startTimeSeconds
Declaration
public float startTimeSeconds
Field Value
| Type | Description |
|---|---|
| float | Loop-return point in seconds (Time mode). |
tailFadeOutCurve
Declaration
public string tailFadeOutCurve
Field Value
| Type | Description |
|---|---|
| string | Tail fade-out curve shape, as a |
tailFadeOutDuration
Declaration
public float tailFadeOutDuration
Field Value
| Type | Description |
|---|---|
| float | Tail fade-out duration in seconds; 0 cuts the tail at the loop point. |
tailPreservingLoop
Declaration
public bool tailPreservingLoop
Field Value
| Type | Description |
|---|---|
| bool | Whether the track loops with a tail-preserving (dual-source) seam. |
title
Declaration
public string title
Field Value
| Type | Description |
|---|---|
| string | Display title of the track. |