Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Implementing LFO

40 views
Skip to first unread message

zack ztsawte

unread,
Jun 7, 2019, 7:20:05 PM6/7/19
to beadsproject
Hello,

I'm making a synth for a school project and I want to implement a LFO, but I have no clue where to start. I know you need a WavePlayer with a low frequency, but other than that I have no idea. If someone could help me that would be great!

Ollie Bown

unread,
Jun 9, 2019, 6:18:47 AM6/9/19
to beadsp...@googlegroups.com
Yes, you need a WavePlayer with a low frequency. The question is what you want to control with it. You need to map the WavePlayer’s output to the correct range for whatever it is you want to control (which will be different values depending on what it is). For example, if you’re doing Frequency Mod, your LFO would output frequency ranges.

In Processing there is an FM example which shows you this.

In general, you can use the ZMap UGen to map the WavePlayer output.

This is lazy of me but I don’t have time to look up the correct arguments, but the basic idea is this...

WavePlayer lfo = new WavePlayer(ac, 1, Buffer.SINE);
ZMap map = new ZMap();
map.addThenMultiply(1, 0.5f);
map.addInput(lfo);
//example of LFO controlling gain amplitude.
Gain g = new Gain(ac, 1, map);
g.addInput(yourSound);

Ollie

On 8 Jun 2019, at 12:36 am, zack ztsawte <zacksa...@gmail.com> wrote:

Hello,

I'm making a synth for a school project and I want to implement a LFO, but I have no clue where to start. I know you need a WavePlayer with a low frequency, but other than that I have no idea. If someone could help me that would be great!


--
You received this message because you are subscribed to the Google Groups "beadsproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beadsproject...@googlegroups.com.
To post to this group, send email to beadsp...@googlegroups.com.
Visit this group at https://groups.google.com/group/beadsproject.
To view this discussion on the web visit https://groups.google.com/d/msgid/beadsproject/06e13742-b3fc-4132-9437-ec5074cc8e7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

zack ztsawte

unread,
Jun 12, 2019, 10:00:43 AM6/12/19
to beadsproject
Thank you so much, that's exactly what I needed!


On Sunday, June 9, 2019 at 6:18:47 AM UTC-4, Ollie wrote:
Yes, you need a WavePlayer with a low frequency. The question is what you want to control with it. You need to map the WavePlayer’s output to the correct range for whatever it is you want to control (which will be different values depending on what it is). For example, if you’re doing Frequency Mod, your LFO would output frequency ranges.

In Processing there is an FM example which shows you this.

In general, you can use the ZMap UGen to map the WavePlayer output.

This is lazy of me but I don’t have time to look up the correct arguments, but the basic idea is this...

WavePlayer lfo = new WavePlayer(ac, 1, Buffer.SINE);
ZMap map = new ZMap();
map.addThenMultiply(1, 0.5f);
map.addInput(lfo);
//example of LFO controlling gain amplitude.
Gain g = new Gain(ac, 1, map);
g.addInput(yourSound);

Ollie

On 8 Jun 2019, at 12:36 am, zack ztsawte <zacksa...@gmail.com> wrote:

Hello,

I'm making a synth for a school project and I want to implement a LFO, but I have no clue where to start. I know you need a WavePlayer with a low frequency, but other than that I have no idea. If someone could help me that would be great!


--
You received this message because you are subscribed to the Google Groups "beadsproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beadsp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages