Insert a clip in a script

This forum can be used to post any topics related to general broadcast questions, tech stuff, informations etc.
This forum is unmoderated!
Post Reply
claudius06
Posts: 136
Joined: 25 Nov 2023 09:23
Insert a clip in a script

Post by claudius06 »

I want to program clips inside a script. For example, to play a ‘New Music’ title, like this:
  • Intro
  • Track
  • Outro
Of course, the idea is PF playing a different track each time, while always playing the same intro and outro.
I tried this:
- I created a ‘new-music’ playlist
- added the intro
- I added an Embedded Container like this:

Image

- added the intro[/list]
And I call up this playlist in a script.
Problem: when broadcasting, PF plays always the same title.
Where did I go wrong?

Thank you for your help,
Claude.
User avatar
radio42
Site Admin
Posts: 8565
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Insert a clip in a script

Post by radio42 »

The way you currently create an embedded container (out of a media lib) - means a fixed container is resolved, which contains the resolved tracks. These are obviously static.

What you are looking for is a script which acts like an embedded container. To create such a dynamic container first create a script to implement the elements of the container.
E.g. some fixed elements like the Intro and Outro and in between a random element... e.g.:
1. LoadTrack, ...
2. Random, MediaLib, ...
3. LoadTrack, ...

Then within your real script you use the 'Container' mode as a script-line to reference the above script:
Screenshot 2024-09-16 190543.png

Another possibility, if you are looking for a way to dynamic place specific Intro's or Outro's before resp. after a specific track, there a feature available called 'Station Voice Files'. This feature is described here:
http://www.proppfrexx.radio42.com/forum ... p?f=9&t=38

Not sure which way resp. requirements you have. Station Voice Files don't even need any scripting. I.e. as soon as the respective track is placed into a playlist, the related Before resp. After files are being added automatically. If you don't want this feature anymore - just remove the special Before or After files for that track.
claudius06
Posts: 136
Joined: 25 Nov 2023 09:23
Re: Insert a clip in a script

Post by claudius06 »

Thank you again, sounds good. I was so far from the right way to do this.
claudius06
Posts: 136
Joined: 25 Nov 2023 09:23
Re: Insert a clip in a script

Post by claudius06 »

Can the system continue to display song titles and artist names to listeners when it launches an embedded container?
User avatar
radio42
Site Admin
Posts: 8565
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Insert a clip in a script

Post by radio42 »

No.
A container has its own title. It is a continuous stream by itself, even it is generated out of individual items. A container can even contain containers by itself etc. As such, it can not preserve the individual track titles internally.
This is only possible with overlays. Or with the mentioned 'Station Voice File' function.
claudius06
Posts: 136
Joined: 25 Nov 2023 09:23
Re: Insert a clip in a script

Post by claudius06 »

Thank you for these clarifications. I'm going to have a look to the ‘Station Voice File’ option.
claudius06
Posts: 136
Joined: 25 Nov 2023 09:23
Re: Insert a clip in a script

Post by claudius06 »

Hello Bernd,

Finally, I opted for another solution: I created an Overlay using the script you suggested I create. The advantage of combining these two methods is that I get the same result, but the artists and titles are still displayed for the listeners.

Thank you again for your help.
Claude.

Post Reply