Skip to content

Commit

Permalink
only read once per cycle, slightly bump mellow
Browse files Browse the repository at this point in the history
 factor.
  • Loading branch information
awonak committed Jun 9, 2023
1 parent 34f958d commit 28e31ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lfo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
}

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

// The collection of LFO state machines for each output.
lfos [8]*LFO
Expand All @@ -34,9 +34,9 @@ func main() {

// Main loop.
for {
// Capture the cv input to increase the LFO speed.
nudge := (uncertainty.Read() / 4)
for i, lfo := range lfos {
// Capture the cv input to increase the LFO speed.
nudge := (uncertainty.Read() / 4)
// Calculate next voltage value for this LFO and set the cv output.
lfo.Next(nudge / (i + 1))
}
Expand Down

0 comments on commit 28e31ba

Please sign in to comment.