Link a Knob with two or more parameter

Use this forum to post about your macro page designs in HALion 6
Post Reply
ClausWagner
New Member
Posts: 7
Joined: Fri Mar 17, 2017 3:50 pm
Contact:

Link a Knob with two or more parameter

Post by ClausWagner » Fri Mar 17, 2017 4:03 pm

I know, that this might be an easy question (or not?), but is it possible to link a knob to several parameters e.g. the pitch on multiple zones *without* using quick control knobs and how it is done?

My other question is, if it is possible to define the range of this knob?

Thanks

Claus

ClausWagner
New Member
Posts: 7
Joined: Fri Mar 17, 2017 3:50 pm
Contact:

Re: Link a Knob with two or more parameter

Post by ClausWagner » Sun Apr 23, 2017 1:08 pm

As nobody has found a simple way yet, i think i can answer my own question:

I think it is not possible in a direct way. Using a simple Lua-Script is the best solution, linking the Knob with the (in the script) exported variable/parameter.

pleas exchange the text in <Whatever> or <the name of the Zone> with real text:

myzone=this.parent:getZone("<the name of the Zone>")
myzone2=this.parent:getZone("<the name of the next Zone>")

function on_<Whatever>()
-- just an example change the octave of osc1 and osc2 to the value you want
-- it is even possible to change it in different zones, but you have to create another myzone2 value (see above)
<myvalue>=<exported_Parameter>
myzone:setParameter("Osc 1.Octave", <myvalue>)
myzone:setParameter("Osc 2.Octave", <myvalue>)
myzone2:setParameter("Osc 1.Octave", <myvalue>)
end

- in this example replace min=3 and max=3
defineParameter("<the exported Parameter-Name>","<exported_Parameter>",0,<min>,<max>,on_<Whatever>)

misohoza
Member
Posts: 860
Joined: Sun Oct 05, 2014 12:18 am
Contact:

Re: Link a Knob with two or more parameter

Post by misohoza » Sun Apr 23, 2017 2:10 pm

Hi Claus.

It is possible to link the same parameter of several zones to a single knob by changing the scope from:
@0:Zone 1/@id:...
to:
@type:Zone/@id...

However if you want to customize the behaviour of the parameter, then yes, scripting is the way to go.
Win 10 Home, 64 bit, 8 gb ram,
Cubase Pro 9, Wavelab Pro 9, Halion 6, Dorico,
NI Komplete 10 Ultimate, Ozone 7,
UR 44

User avatar
abject39
Member
Posts: 317
Joined: Sat Jan 17, 2015 8:20 pm
Location: Ventura, Ca
Contact:

Re: Link a Knob with two or more parameter

Post by abject39 » Mon Apr 24, 2017 4:59 am

misohoza wrote:Hi Claus.

It is possible to link the same parameter of several zones to a single knob by changing the scope from:
@0:Zone 1/@id:...
to:
@type:Zone/@id...

However if you want to customize the behaviour of the parameter, then yes, scripting is the way to go.
Good to know!
My vision is uncompromising: to transcend my clients dreams by mesmerizing their audience with the world's finest audio arrangements and products.

User avatar
abject39
Member
Posts: 317
Joined: Sat Jan 17, 2015 8:20 pm
Location: Ventura, Ca
Contact:

Re: Link a Knob with two or more parameter

Post by abject39 » Mon Aug 28, 2017 5:33 am

ClausWagner wrote:
Sun Apr 23, 2017 1:08 pm
As nobody has found a simple way yet, i think i can answer my own question:

I think it is not possible in a direct way. Using a simple Lua-Script is the best solution, linking the Knob with the (in the script) exported variable/parameter.

pleas exchange the text in <Whatever> or <the name of the Zone> with real text:

myzone=this.parent:getZone("<the name of the Zone>")
myzone2=this.parent:getZone("<the name of the next Zone>")

function on_<Whatever>()
-- just an example change the octave of osc1 and osc2 to the value you want
-- it is even possible to change it in different zones, but you have to create another myzone2 value (see above)
<myvalue>=<exported_Parameter>
myzone:setParameter("Osc 1.Octave", <myvalue>)
myzone:setParameter("Osc 2.Octave", <myvalue>)
myzone2:setParameter("Osc 1.Octave", <myvalue>)
end

- in this example replace min=3 and max=3
defineParameter("<the exported Parameter-Name>","<exported_Parameter>",0,<min>,<max>,on_<Whatever>)
You're the real MVP!
My vision is uncompromising: to transcend my clients dreams by mesmerizing their audience with the world's finest audio arrangements and products.

Post Reply

Return to “Macro Page Design”

Who is online

Users browsing this forum: No registered users and 1 guest