summaryrefslogtreecommitdiff
path: root/klangfarb
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2021-11-12 23:40:33 -0600
committerGrant Shangreaux <grant@unabridgedsoftware.com>2021-11-12 23:40:33 -0600
commitd3776887db90ac1ea15fd55d833ff6b3042e7caf (patch)
treea23ba500470883cf12635405f86fb2adc0ba1546 /klangfarb
parent200e3568f5b7b5aab5388512ddefceb813168f90 (diff)
Add: Osc Iterator refactor
Now the MonoSynth has one main `osc` property, and it holds an Osc struct which contains its own instance of a Phasor. The Phasor has been mostly hidden away from the top level, though we still have our Bender for bending phase. I think we can implement methods on Osc in order to manipulate the Phasor of a particular instance of osc if need be. The outer `frames` function has been partially refactored. However, I think we should/could wrap the Osc's `next` function in something like `next_sample` which returns a Sample (vs an Option). we could also do something like `osc.take(frames_count).map { |s| frames.push(s) }`
Diffstat (limited to 'klangfarb')
0 files changed, 0 insertions, 0 deletions