Table of Contents

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

VoiceLeadingSolverOptions

EnforceSpacing

If true, enforce spacing rules during voicing generation

public bool EnforceSpacing { get; init; }

Property Value

bool

MaxTransitionCost

Maximum allowed transition cost (prunes search space)

public float MaxTransitionCost { get; init; }

Property Value

float

ParallelOptions

Parallel options for the search

public ParallelOptions ParallelOptions { get; init; }

Property Value

ParallelOptions

Relaxed

Relaxed preset: violations are tolerated, with a higher cost cap and lighter smoothness weighting.

public static VoiceLeadingSolverOptions Relaxed { get; }

Property Value

VoiceLeadingSolverOptions

SmoothnessWeight

Weight for smoothness in the cost function (higher = prefer smoother motion)

public float SmoothnessWeight { get; init; }

Property Value

float

Strict

Strict preset: any violation invalidates the transition, with heavier smoothness weighting.

public static VoiceLeadingSolverOptions Strict { get; }

Property Value

VoiceLeadingSolverOptions

StrictMode

If true, any voice leading violation makes the transition invalid

public bool StrictMode { get; init; }

Property Value

bool