LFO SLIDER AUTOMATION

Austin B Stockwell's icon

Hello! Excuse me if I'm not seeing this...but I'm astounded that there is nowhere on here with a simple example of a sin wave (LFO) automating a slider (such as a knob within MAX). Greg Taylor's do not help me, as they are filled with everything I don't need and nothing as simple as this: lfo "automating" a slider.

Heres my signal path: MIDI CONTROLLER goes to to CTLIN -- to number box -- to SLIDER -- to cntlout VERY SIMPLE. Now how do I have an LFO automate that knob (rather than the livid block)?

Any ideas? Thank you so much guys!

-Austin

Screen-Shot-2016-04-13-at-4.58.28-PM.png
png
bkshepard's icon

Is this what you're trying to do?

Max Patch
Copy patch and select New From Clipboard in Max.

Austin B Stockwell's icon

BKSHEPARD, yes you have provided me with an amazingly clean starting point! THANK YOU SO MUCH. Its insane that C74 hasn't made such an application the basis of basic tutorials. (IDK, again, maybe they did and I'm just looking too hard or too little).

Regardless, thank you so much!

Christopher Dobrian's icon

Although it seems that most people choose to use MSP as a solution, it's quite easy to do the same thing using only Max messages. I prefer the latter, because it works regardless of whether MSP is turned on and only performs as much calculation as needed instead of doing tens of thousands of calculations per second of which only a very few will actually be used.

If you download the attached abstraction, you can try it out with this little test patch.

Max Patch
Copy patch and select New From Clipboard in Max.

LFOcontrol.maxpat
Max Patch
bkshepard's icon

Nice one, Christopher! You got me thinking about the other common LFO shapes as well. I took the Max-only concept and applied it to Austin's original question about using it with a dial.

Max Patch
Copy patch and select New From Clipboard in Max.