|
Post by despairbear on Dec 17, 2019 6:57:33 GMT
So I'm just working on my first DIY unit with Arduino, just a simple LFO from scratch with a couple little fun things to do with cv. One question I have is regarding getting it so the rate each loop is getting executed is somewhat stable. I'm guessing this would involve using the millis() methods provided, but I'm curious if there's a standard boilerplate for this. I come from Unity game development so I know with that world you want to multiply any physics calculations by the time since the last loop was called so you get consistent performance across various platforms, I assume that in the sound design world this could be applied to the sample rate? Correct me if I'm wrong, I'm just dipping my toes in the sound design world
|
|
ben
Full Member
Posts: 124
|
Post by ben on Dec 17, 2019 9:47:22 GMT
I'm not gonna be the right person to answer your question, as my knowledge is pretty limited. Simply put - LFO stands for Low Frequency Oscillator, and the "loop cycle" is the amplitude of the oscillator at it's peak, as you've said - usually measured in milliseconds up to a minute or so. If you'd like to sync, then the CV input should each time reset oscillator's amplitude. I know nothing about how to make it work with arduino, but my suggestion would be to do some soldering, try maybe at first with ic's like 555, 40106, 4046 or something else. At least for me it sounds more simple than arduino project Altho my recommendation would be just to buy a dedicated VCLFO chip from ElectricDruid's website. I personally use a few of those chips - it's super simple to solder, requires just a few components and works just great. And it's cheaper than arduino With those chips you can also get a different waveforms, which in my guess might be a bit more tricky to achieve using arduino. I'm not trying to sell you those things, but as long as I know in this forum there's a few people that tried and are happy with those chips. here's a link to lfo and similar chips: electricdruid.net/product-category/lfos-noise/
|
|
|
Post by young Protoboard on Dec 21, 2019 0:01:45 GMT
One question I have is regarding getting it so the rate each loop is getting executed is somewhat stable. What does the loop do? Analog pin (CV) voltage sample -> change output frequency -> wait -> CV sample .... ? Can you post your code so that we can see exactly what you're trying to do?
|
|
|
Post by MikMo on Dec 21, 2019 0:28:33 GMT
|
|