Skip to content

Commit

Permalink
Introduce mellow factor to uniformly slow down the LFO rate.
Browse files Browse the repository at this point in the history
  • Loading branch information
awonak committed Jun 9, 2023
1 parent 3910289 commit 34f958d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lfo/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import (
"time"

uncertainty "github.com/awonak/UncertaintyGo"
)

Expand All @@ -17,6 +19,9 @@ var (
1 << 2,
}

// Sleep duration between advancing LFO CVs to uniformly slow down the rate.
mellowFactor = time.Millisecond * 20

// The collection of LFO state machines for each output.
lfos [8]*LFO
)
Expand All @@ -35,5 +40,6 @@ func main() {
// Calculate next voltage value for this LFO and set the cv output.
lfo.Next(nudge / (i + 1))
}
time.Sleep(mellowFactor)
}
}

0 comments on commit 34f958d

Please sign in to comment.