Page 1 of 2

Crazy question

Posted: Sat Jul 30, 2016 6:38 pm
by BobF
Hello gang,

If I wanted to control the gain of a amp (normal 0 to 1) via midi note data, how would I go about it. For example say you played middle C, make that put out a value of .5 to the amp and so on. This is just an example, NOT saying I would always want middle C to put out .5, but would rally like it to be adjustable across the keyboard. Hope this makes sense.

That's it! Thanks, BobF.....

Re: Crazy question

Posted: Sat Jul 30, 2016 7:07 pm
by RJHollins
Maybe look at the VCA primitive.

Re: Crazy question

Posted: Sat Jul 30, 2016 8:00 pm
by BobF
Hi RJ,

Thanks for the feedback, but I have tried that and it does NOT work.

Do you have a working example?

Later then, BobF.....

Re: Crazy question

Posted: Sat Jul 30, 2016 8:47 pm
by RJHollins
This is one idea I used for a project.
VCA control.jpg
VCA control.jpg (61.9 KiB) Viewed 26407 times


Here's the example schematic:
VCA control.fsm
(121.55 KiB) Downloaded 1088 times

Re: Crazy question

Posted: Sat Jul 30, 2016 8:56 pm
by BobF
Hi again RJHOLLINS,

Thank is exactly what I used. Can you show me where and how the midi data controls this!

Thanks once again, BobF.....

Re: Crazy question

Posted: Sun Jul 31, 2016 2:34 am
by RJHollins
Hi BobF,

I'm not exactly sure what you need to do ... my guess ...

You want to use MIDI data to set an audio volume. If so ...

Audio data into the knob [if you want to use it], is scaled from 0-1

MIDI data is 0-127

There are some 'scaling' modules that will correlate one range of values to a different range. That is, values from 0-127 will be re-scaled into 0-1 values.

These scalers might be on the FS forum. I know we found them on the old SM forum.

If this is what you want to do ... If you need the 'scalers', let me know and I can post here for you.

This assumes I understand your question :roll:

Re: Crazy question

Posted: Sun Jul 31, 2016 12:36 pm
by adamszabo
I think Bob wants what is called Keyboard Tracking or Key Tracking or Key Follower. Have a search with those keywords and you will find lots of info :D

Re: Crazy question

Posted: Sun Jul 31, 2016 5:14 pm
by BobF
Hi once again RJHOLLINS,

Yes you are correct, scaling is what I believe I need. If you have something, sure I would like to see it.

Really appreciate your help here.

----------------------------------------------------------------

Hi adamszabo,

THANKS ALSO, I will do a search.

Later then, BobF.....

Re: Crazy question

Posted: Sun Jul 31, 2016 5:43 pm
by RJHollins
Hi BoBF

Here are a few 'scaling' modules from my toolbox. These are User contributions that I collected.

8-)
Scaling [various].fsm
(24.27 KiB) Downloaded 1067 times

Re: Crazy question

Posted: Mon Aug 01, 2016 12:44 pm
by BobF
Thanks RJHOLLINS,

I will look at these soon.

Tare care, BobF.....