Skip to content
0.2.0-dev Download ZIP
18 lines ·638 B Raw
1namespace EvilEngine.GenerativeMotion;
2
3public sealed record LayerSettings
4{
5 public int MinLead { get; init; } = 18;
6 public int MaxLead { get; init; } = 58;
7 public int Picks { get; init; } = 5;
8 public int PickWindow { get; init; } = 6;
9 public double DriftDistance { get; init; } = 0.3;
10 public double DriftAngle { get; init; } = 20 * Math.PI / 180;
11 public int AskAhead { get; init; }
12 public int CrossfadeFrames { get; init; } = 9;
13
14 public static int AskAheadFor(double generationMilliseconds)
15 {
16 return (int)Math.Ceiling(generationMilliseconds * SomaContract.SampleRate / 1000.0) + 1;
17 }
18}