Class VoiceLeadingSolverOptions
- Namespace
- Celeritas.Core.VoiceLeading
- Assembly
- Celeritas.dll
Options for the voice leading solver.
public sealed class VoiceLeadingSolverOptions
- Inheritance
-
VoiceLeadingSolverOptions
- Inherited Members
Properties
Default
Default options.
public static VoiceLeadingSolverOptions Default { get; }
Property Value
EnforceSpacing
If true, enforce spacing rules during voicing generation
public bool EnforceSpacing { get; init; }
Property Value
MaxTransitionCost
Maximum allowed transition cost (prunes search space)
public float MaxTransitionCost { get; init; }
Property Value
ParallelOptions
Parallel options for the search
public ParallelOptions ParallelOptions { get; init; }
Property Value
Relaxed
Relaxed preset: violations are tolerated, with a higher cost cap and lighter smoothness weighting.
public static VoiceLeadingSolverOptions Relaxed { get; }
Property Value
SmoothnessWeight
Weight for smoothness in the cost function (higher = prefer smoother motion)
public float SmoothnessWeight { get; init; }
Property Value
Strict
Strict preset: any violation invalidates the transition, with heavier smoothness weighting.
public static VoiceLeadingSolverOptions Strict { get; }
Property Value
StrictMode
If true, any voice leading violation makes the transition invalid
public bool StrictMode { get; init; }