Recording Time in Label Widget?

Is there a way to display how long the recorder has been recording in a label widget? I know it’s visible in the bottom left corner, but my setup has a plugin window floating over top of the main GP window, so I can’t see it. I figured I could put it in a label widget somewhere visible in my Global rack using a global script, but I’m not seeing the time that the recorder has been active has been queryable. Any ideas?

Yes, here’s a script that accomplishes this by starting a timer label once you activate the widget to record.


var
timelabel, record : widget
R :Ramp

On WidgetValueChanged(newValue : double) from record // when the record widget changes
    If newValue > 0 // if you're starting the recording      
        then TriggerOneShotRamp(R, 9999999, 1) //start the timer
    Else
        StopOneShotRamp(R)// stop the timer
    End
End

On GeneratorRunning(timeX : integer, timeY : double) from R
    timelabel.SetWidgetLabel (FormatTime(timeY*10000000,"%M:%S")) // this sets the timer label
End

Here’s a small gig file demonstrating this.
You should be able to adapt it for your purposes.

RecordTimer.gig (41.0 KB)

4 Likes

Perfect, many thanks! Got it successfully working in my rig, most appreciated!

1 Like