logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Hallaman  
#1 Posted : Monday, June 7, 2021 10:58:48 PM(UTC)
Hallaman

Rank: Newbie

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 7
Location: Australia

Hi All,

I have the X-Touch One. I can map all of the functions I want to control using Midi and Activators except the Motorized Fader.
Is it possible to set the fader via a script? I can set it easily via activator for audio levels etc, but there is no activator for the Replay Speed.
So, I can set the speed with the fader, but the fader can't be set via Activator directly. I'm hoping I could use a script to gather the current speed setting and then pass that to the fader.

Thoughts?
Input?
Code?

All are welcome,

Cheers,
JB
Hallaman  
#2 Posted : Thursday, June 10, 2021 12:16:46 AM(UTC)
Hallaman

Rank: Newbie

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 7
Location: Australia

For those playing along at home, I found a way around my little problem. (For Now - Until replay speed becomes a selection in activators)

I just wrote a script that takes the speed of the replay and applies it to a dummy audio inputs volume. I then use this inputs volume as an activator to my motorized fader.

This is the code. The name of the dummy input is RSDUMMY

Quote:

dim speed As Double
dim faderVolume As Integer

do while true

dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)

speed = (x.SelectSingleNode("//replay/@speed").Value)

speed = speed * 100

Console.WriteLine(speed)

faderVolume = cint(speed)

API.Function("SetVolume",Input:="RSDUMMY",Value:= faderVolume.tostring())


sleep(200)
loop


Cheers,
JB
doggy  
#3 Posted : Thursday, June 10, 2021 1:21:51 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,122
Belgium
Location: Belgium

Thanks: 178 times
Was thanked: 562 time(s) in 461 post(s)
consider using for value +=stepnumber -=stepnumber to increase/decrease from current values

There is also a replaysetspeed function
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.