ArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-07-13T17:46:36+02:00 https://brainmodular.org/forums/app.php/feed/topic/4474 2014-07-13T17:46:36+02:00 2014-07-13T17:46:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30002#p30002 <![CDATA[Best way to MIDI-control a plugin parameter?]]> but not sure to understand how you use it ? ;)

the patch i propose works with infinite knobs like on the BCR2000, how do you link your's...?

Statistics: Posted by nay-seven — 13 Jul 2014, 17:46


]]>
2014-07-13T17:09:35+02:00 2014-07-13T17:09:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30001#p30001 <![CDATA[Best way to MIDI-control a plugin parameter?]]>

CODE:

// totalisateur 2            // à l'apparition d'un nouvel entier, il s'additionne algébriquement avec la valeur précédente de la sortie.// sans effet si on dépasse les limites min et max/////////////////////////// parameters declarationVar input, reset, min,max   &#58; TParameter;Var output      &#58; TParameter;var buff1       &#58; SINGLE;var buff2       &#58; SINGLE;var bmin       &#58; SINGLE;var bmax       &#58; SINGLE;// destroyprocedure Destroy;begin   //? end;// initialisation &#58; create parametersprocedure init;begin   SetModuleColor&#40;$800080+302999&#41;; input &#58;= createParam&#40;'in',ptDataField&#41;;  SetIsOutPut&#40;input,false&#41;; reset&#58;=  CreateParam&#40;'reset',PtButton&#41;;   SetIsOutput&#40;reset,false&#41;; min &#58;= createParam&#40;'min',ptDataField&#41;; SetIsOutPut&#40;min,false&#41;; max &#58;= createParam&#40;'max',ptDataField&#41;; SetIsOutPut&#40;max,false&#41;; output  &#58;= createParam&#40;'out',ptDataField&#41;; SetIsInPut&#40;output,false&#41;;end;// Global variables//////////////////////////////// CallBack proc//////////////////////////////Procedure CallBack&#40;n&#58;integer&#41;;beginif &#40;n = min&#41; thenbmin &#58;= getValue&#40;min&#41;;if &#40;n = max&#41; thenbmax &#58;= getValue&#40;max&#41;;if &#40;n = reset&#41; then begin IF &#40;reset >= 1&#41; THEN  buff1 &#58;= 0;  buff2 &#58;= 0;end;if &#40;n = input&#41; then begin buff1 &#58;= getValue&#40;input&#41;; buff2 &#58;= buff2 + buff1;   if &#40;buff2 > bmax&#41; then   buff2 &#58;= bmax;   if &#40;buff2 < bmin&#41; then   buff2 &#58;= bmin; end; SetValue&#40;output,buff2/bmax&#41;;end;

Statistics: Posted by oli_lab — 13 Jul 2014, 17:09


]]>
2014-07-13T16:44:30+02:00 2014-07-13T16:44:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30000#p30000 <![CDATA[Best way to MIDI-control a plugin parameter?]]> you choose the CC number in the sub patch, and link the sub patch to the VST

Download

Statistics: Posted by nay-seven — 13 Jul 2014, 16:44


]]>
2014-07-13T14:21:03+02:00 2014-07-13T14:21:03+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=29998#p29998 <![CDATA[Best way to MIDI-control a plugin parameter?]]> pass if change modules like this:
Image

about encoders, no easy solution, but maybe there's a way to create a patch for this

Statistics: Posted by nay-seven — 13 Jul 2014, 14:21


]]>
2014-07-13T12:08:58+02:00 2014-07-13T12:08:58+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=29997#p29997 <![CDATA[Best way to MIDI-control a plugin parameter?]]>
I've learned that I can create a Knob, assign that to my MIDI controller, and patch the Knob's output to my plugin's input for that parameter.

However, suppose I then change that plugin parameter from within the plugin's GUI - the Knob has no way of knowing that the parameter has changed, so remains at an incorrect position.

As an attempted solution, I tried using a second patch "cable", this time from the plugin's output for the parameter to the Knob's input, but this just led to me being unable to turn either the Knob, nor alter that parameter from within the plugin's GUI.

I've actually found a solution involving two scripts as well as the Knob. But I feel like I've introduced a lot of complexity - is there an easier way to MIDI-control a plugin parameter?

Also, for Knobs controlled by "relative" MIDI CC's, as one would do with a rotary encoder, is there any way to alter the "precision", to make it so that each "increment" is smaller, i.e. so you'd have to turn the knob many times in order to get between the max and min values?

Many thanks!

Statistics: Posted by beammy — 13 Jul 2014, 12:08


]]>
BrainModular BrainModular Users Forum 2014-07-13T17:46:36+02:00 https://brainmodular.org/forums/app.php/feed/topic/4474 2014-07-13T17:46:36+02:00 2014-07-13T17:46:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30002#p30002 <![CDATA[Best way to MIDI-control a plugin parameter?]]> but not sure to understand how you use it ? ;)

the patch i propose works with infinite knobs like on the BCR2000, how do you link your's...?

Statistics: Posted by nay-seven — 13 Jul 2014, 17:46


]]>
2014-07-13T17:09:35+02:00 2014-07-13T17:09:35+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30001#p30001 <![CDATA[Best way to MIDI-control a plugin parameter?]]>

CODE:

// totalisateur 2            // à l'apparition d'un nouvel entier, il s'additionne algébriquement avec la valeur précédente de la sortie.// sans effet si on dépasse les limites min et max/////////////////////////// parameters declarationVar input, reset, min,max   &#58; TParameter;Var output      &#58; TParameter;var buff1       &#58; SINGLE;var buff2       &#58; SINGLE;var bmin       &#58; SINGLE;var bmax       &#58; SINGLE;// destroyprocedure Destroy;begin   //? end;// initialisation &#58; create parametersprocedure init;begin   SetModuleColor&#40;$800080+302999&#41;; input &#58;= createParam&#40;'in',ptDataField&#41;;  SetIsOutPut&#40;input,false&#41;; reset&#58;=  CreateParam&#40;'reset',PtButton&#41;;   SetIsOutput&#40;reset,false&#41;; min &#58;= createParam&#40;'min',ptDataField&#41;; SetIsOutPut&#40;min,false&#41;; max &#58;= createParam&#40;'max',ptDataField&#41;; SetIsOutPut&#40;max,false&#41;; output  &#58;= createParam&#40;'out',ptDataField&#41;; SetIsInPut&#40;output,false&#41;;end;// Global variables//////////////////////////////// CallBack proc//////////////////////////////Procedure CallBack&#40;n&#58;integer&#41;;beginif &#40;n = min&#41; thenbmin &#58;= getValue&#40;min&#41;;if &#40;n = max&#41; thenbmax &#58;= getValue&#40;max&#41;;if &#40;n = reset&#41; then begin IF &#40;reset >= 1&#41; THEN  buff1 &#58;= 0;  buff2 &#58;= 0;end;if &#40;n = input&#41; then begin buff1 &#58;= getValue&#40;input&#41;; buff2 &#58;= buff2 + buff1;   if &#40;buff2 > bmax&#41; then   buff2 &#58;= bmax;   if &#40;buff2 < bmin&#41; then   buff2 &#58;= bmin; end; SetValue&#40;output,buff2/bmax&#41;;end;

Statistics: Posted by oli_lab — 13 Jul 2014, 17:09


]]>
2014-07-13T16:44:30+02:00 2014-07-13T16:44:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=30000#p30000 <![CDATA[Best way to MIDI-control a plugin parameter?]]> you choose the CC number in the sub patch, and link the sub patch to the VST

Download

Statistics: Posted by nay-seven — 13 Jul 2014, 16:44


]]>
2014-07-13T14:21:03+02:00 2014-07-13T14:21:03+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=29998#p29998 <![CDATA[Best way to MIDI-control a plugin parameter?]]> pass if change modules like this:
Image

about encoders, no easy solution, but maybe there's a way to create a patch for this

Statistics: Posted by nay-seven — 13 Jul 2014, 14:21


]]>
2014-07-13T12:08:58+02:00 2014-07-13T12:08:58+02:00 https://brainmodular.org/forums/viewtopic.php?t=4474&p=29997#p29997 <![CDATA[Best way to MIDI-control a plugin parameter?]]>
I've learned that I can create a Knob, assign that to my MIDI controller, and patch the Knob's output to my plugin's input for that parameter.

However, suppose I then change that plugin parameter from within the plugin's GUI - the Knob has no way of knowing that the parameter has changed, so remains at an incorrect position.

As an attempted solution, I tried using a second patch "cable", this time from the plugin's output for the parameter to the Knob's input, but this just led to me being unable to turn either the Knob, nor alter that parameter from within the plugin's GUI.

I've actually found a solution involving two scripts as well as the Knob. But I feel like I've introduced a lot of complexity - is there an easier way to MIDI-control a plugin parameter?

Also, for Knobs controlled by "relative" MIDI CC's, as one would do with a rotary encoder, is there any way to alter the "precision", to make it so that each "increment" is smaller, i.e. so you'd have to turn the knob many times in order to get between the max and min values?

Many thanks!

Statistics: Posted by beammy — 13 Jul 2014, 12:08


]]>