Combining Glide time and Triplet

Post topics about HALion scripting.
Post Reply
User avatar
abject39
Member
Posts: 257
Joined: Sat Jan 17, 2015 8:20 pm
Location: Ventura, Ca
Contact:

Combining Glide time and Triplet

Post by abject39 » Sat Sep 02, 2017 9:15 pm

If you got to a zone and look at the "Voice Control Section" (it is the very first section) and then click the Glide tab, enable glide, and finally enable sync you will see that the time and the triplets are separate parameters. It is the only menu I've found where time is separate from triplets. I attempted to write a lua script to combine these into one parameter like the other sync'd time menus but it failed to work. Can someone please help me here? I'm looking to make it work the same way the others work so that it goes down the list alternating between the time value and the time value with triplet enabled.
Screenshot (232).png
(277.92 KiB) Not downloaded yet
My vision is uncompromising: to transcend my clients dreams by mesmerizing their audience with the world's finest audio arrangements and products.

User avatar
Tekknovator
New Member
Posts: 20
Joined: Mon Aug 07, 2017 6:18 pm
Contact:

Re: Combining Glide time and Triplet

Post by Tekknovator » Mon Sep 11, 2017 8:24 pm

Hm, looks like scripting is the only way here...

Maybe this works, there are sure some more elegant ways, like maybe dynamically filling the table, but this was the quickest solution I came up with tonight:

https://github.com/tekkzoo/halion-scrip ... slator.lua

I hope this helps :)

AposMus
Junior Member
Posts: 179
Joined: Fri Nov 14, 2014 11:41 am
Contact:

Re: Combining Glide time and Triplet

Post by AposMus » Wed Sep 13, 2017 10:35 am

This one had me curious, so here is another way to do it.

Only thing is that it turns on the triplet setting when the sync factor is set to "Off". It being off, means it has no effect though.
This can be fixed with a few extra lines, but I didn't feel it was necessary.

Code: Select all

glideSyncValues = {}
zone = this.parent:getZone()

for i = 1, 10 do
	local syncVal = (2 ^ (i - 2))
	if i == 1 then
		glideSyncValues[i] = "Off"
	else
		table.insert(glideSyncValues, "1/" .. tostring(syncVal))
		table.insert(glideSyncValues, "1/" .. tostring(syncVal) .. " T")
	end
end

function onGlideSync()
	if glideSync % 2 == 0 then
		setSync, setTriplet = glideSync / 2, false
	else
		setSync, setTriplet = (glideSync - 1) / 2, true
	end
	zone:setParameter("VoiceControl.GlideSyncV", setSync)
	zone:setParameter("VoiceControl.GlideSyncT", setTriplet)
end

defineParameter("glideSync", nil, 1, glideSyncValues, onGlideSync)
Cubase Pro 8.5.2
Halion 6
HSO
Padshop Pro
Dark Planet
Windows 7 64bit, AMD Phenom IIx6 1055t, 8GB Ram, Gigabyte GA-880G-UD3H F2, Nvidia GeForce GTS450
https://dewetvanderspuy.co.za/

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

Re: Combining Glide time and Triplet

Post by abject39 » Sun Sep 17, 2017 3:34 pm

Thanks fellas!
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 “Halion Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest