namespace EvilEngine.GenerativeMotion; public sealed record LayerSettings { public int MinLead { get; init; } = 18; public int MaxLead { get; init; } = 58; public int Picks { get; init; } = 5; public int PickWindow { get; init; } = 6; public double DriftDistance { get; init; } = 0.3; public double DriftAngle { get; init; } = 20 * Math.PI / 180; public int AskAhead { get; init; } public int CrossfadeFrames { get; init; } = 9; public static int AskAheadFor(double generationMilliseconds) { return (int)Math.Ceiling(generationMilliseconds * SomaContract.SampleRate / 1000.0) + 1; } }