Gig Time per song

I’m using quite a big script for parsing song data for GP presets, but also it contains the expected song time (initially from spotify/youtube).

I added to my (big) script code to gather all data in a text file and also show some details on the screen. See below for an example and highlighted the expected/actual time per song (due to some technical issues there are some more song changes than needed, but the idea should be clear).

In my GP window I see the total gig time, actual/current time since the start of the gig and how much we are ahead/behind, ideal for festival with a hard deadline.

If there is interest, I can show the relevant code (but that would take some time to extract from the big script).

2 Likes

Take care of Billie Joe

1 Like

Haha yes I have seen this video before …

In the Netherlands we would say he has a tiny winy w….

1 Like

Hi,

when saving strings to a text file using

SaveStringToTextFile

what do I need to do to add a line break between strings?

Looking at your example, @Michelkeijzers, you might have figured that out. :face_with_monocle:

I don’t have the script at hand, but I think it’s something like

Var multilineText: String =
<<<
First line of text
Second line of text
>>>

See HereDoc strings at Language Constructs in Detail — GPScript 4.1 documentation

probably you can use something like

var NEW_LINE: String =
<<<
>>>

Then use NEW_LINE to concatenate with your strings to be concatenated.

1 Like

Oh wow, that was pretty easy. I even knew the line feed using <<< >>> (I use it for certain labels), I just couldn’t figure out that I’d need to “wrap” that in a variable in this case.
It works, just tried it. Thanks a lot for pointing that out! :+1:

1 Like

Glad to help you.