How do I incorporate an LFO in my instrument?
Hey all. I’m new here, obviously, and I’m also VERY new to M4L. I have a very basic understanding of how to create a simple synthesizer with FM, Filter Envelopes, and Amplitude Envelopes. Unfortunately, that’s all I know how to do. I’m sure that, with enough time, I could gather enough information on the internet and tutorials on C74’s website to do this, but that takes a long time for me.
My biggest concern is understanding. Anyone can know that you have to have a [mtof] object before a waveform, but I want to understand that this object changes a midi signal to a frequency.
I learned most of what I know through the "learnmax" YouTube channel, and I feel that I have a good grasp on understanding the concepts of building a simple synth such as the one described above, but I want to go deeper than that. I need LFOs!
P.S. Yes, I understand that there are premade LFOs and such, but I like to learn how to create my own.
Well, a mere cycle~ object set to 2Hz would be more than enough for that. Don’t forget that an LFO is merely a "Low Frequency Oscillator". And cycle~ is a table lookup oscillator, which is well suited for your common sinewave waveforms.
Of course any oscillator will do; just as long as you keep the frequency low.
The problem is, when I set up something that seems like it would work in my head, i.e. [live.dial (.1-5Hz)]—–>[cycle~]—–>[svf~]—lowpass out—>
it just doesn’t work. There is signal, but it’s so quiet that you can’t hear it.
Okay, so I got it to (somewhat) work. Now, I just need to figure out how to sync it with the time of Ableton. Any help?
take a look at one of the many LFOs out there. You can quickly see exactly how to do it. http://www.maxforlive.com/library/index.php?tag=lfo
Actually I’d advice against looking at other people’s LFO devices because in most cases they are not documented and many people use their own specific way to do things. Nothing wrong with that, but it doesn’t make the best study material.
First; you should consider going over the MSP tutorials. It will explain a lot about the basic issue of sound processing, stuff as to what an LFO does, how you can use the various oscillators, additive synthesis vs. frequency modulation and so on. Nothing wrong with experimenting, usually thats a good way to find out about things. But since you’re also after the why this is something to seriously consider.
As to synchronizing your oscillator… There are several approaches possible. First I think you should look into a very powerful object: translate. It easily allows you to translate a time signature (bars, beats, units) into something else. A frequency in Herz for example. Be sure to check its example patch though, there is a huge difference in translating an interval or a specific position.
As for an example I suggest looking into one of M4L’s native devices, these are all heavily documented and clearly explain what is going on. For example check out "Ctrl1LFO" (Max Audio Effect -> Tools -> API).
Hope this can help!
I still have some time left before I need to get going, here’s a nice example of a (very!) basic LFO which "goes with the flow" aka picks up the current Live set signature and sets the speed accordingly.
I think its a good example of how you could do this yourself; simply set different signatures. From 8/4 (very slow) to, for example, 1/8 or 1/16 (very fast).
----------begin_max5_patcher---------- 1603.3oc6Zs0iahCE94To9evh2VooiBPHgrWj118oUpOsuVUE4.NIt0Xi.S5 LsZ6u80W.BNgKdxPSxTsu.QGarO96b+37sW+pINqYOfxc.+J3CfIS9lfxDEM IkIUDl3j.eHh.yUSzIhkjfnbm6JGjidfqF32+i2..+EAG8YvNTFB7au4Wpmz FFkSgIH0DeaFFR.uiQhqGGGqFgs9SuYlaM0THOZGltcUFJhq4RW+o2O8NwK4 yktpeGd+TvGatS43up1IW4bKoSKRvTBhqNDtMnxJ3Ujmpn9uu9Ux2hW2YMnP QeQv6mhIQOFQPeultdu3OlhzmFmb7VJj3Xx9VBT9K5EnbUfiWXn70ryEo7ZG obGcjhCVCHcCTqgzsN2AbNOnxalMP0zkxW9d2GLlJUdiNT8UBXaFqHE30Md8 LvJeavJeEVEDNtpUiOVwyfzbBji.qWW.18UvelvhQ.Lkix1C6Qg6LAOWa.u4 JuWtyCFW2WiuQoPKSfbJmT7hLzpXDkI3CHmk0fpfKPYRZCnNd1pjt1nR5FpP Uu.uwEU8OaTMAkmC2hNEV2h3sCp0SkfonHVAkaXrH9Dl3bKCwZvv8o7llgxE gqgbLi1.zlqCi5o.qokONOgiWuBGkeBW2vFam2hqeXHKkMmpZOdRlmBF2uak 4gMA4RmLKtci0Sv6Q2KFQdBFYjZoMdJBTNdCVNx4DUQNGtGEuRe9VA47L7Zg az7RjpBpl3rJEkkiy4HZD5.PWgzid1UVke0yKOqv9QekC5PErOa9shW5dURE Gic+nhp0a56KWHwGchBAt2JXkBSDJybFsl42CypOvsMdeF1MPi4CiFkN1pe1 HHGLSvBhT5Vgnv0DzwG9gScxz1s1nsOyWQ5iEH1lJ50CzjcxSQnXBNQsG0RI yovQo5pOaaTLcONGWdj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GxzklS5T4YGxxV6Nu87l2sKuEZCqc7A3BxatCxatWEdS9OtcXfy+pva dVYKb7I3Rwb91vbdWGo5RqrFtNRUW6.tYWOlaPaUuqj8vLqPtqHycqhbysA3 BtZAG7rIlp6Em0VXiDM7pfZA1HPe9AFjDDu9OpEPRkA -----------end_max5_patcher-----------
Completely offtopic but still related… If you’re wondering what impact a "mere" LFO device can have on your sound score then maybe you should check out this Youtube video about a new LFO device in Reason. I know its offtopic, but IMO the PHead video tutorials are simply outstanding. It gives you a good idea of what is happening, you get a better feeling for LFO’s and well. IMVHO this video is also fun to watch ;-)
Forums > Max For Live