Skip to Content
It is currently January 24th, 2022, 11:40 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 4th, 2021, 9:44 pm 
Offline
New User
New User

Joined: August 4th, 2021, 9:40 pm
Posts: 3
Hello,

I wanna create PAL script for playing specific tracks in specific times daily I don't want to add those tracks in the queue I want to play it directly and fade the current one in specific time

How can I do this? :roll:


Top
 Profile  
Reply with quote  
PostPosted: August 5th, 2021, 8:21 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8299
Location: Cologne (Germany)
Add the track to the Idle player instead of the Queue if you want it to skip the queue.
Adding it to the Queue and then FadeToNext-ing the ActivePlayer is easier, because of the comfort-functions like AddFile and AddURL, though.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: August 6th, 2021, 8:51 am 
Offline
New User
New User

Joined: August 4th, 2021, 9:40 pm
Posts: 3
Mastacheata wrote:
Add the track to the Idle player instead of the Queue if you want it to skip the queue.
Adding it to the Queue and then FadeToNext-ing the ActivePlayer is easier, because of the comfort-functions like AddFile and AddURL, though.


Hello,

I think my request not clear enough :roll:

I want Pal script to do this mission

1- Add track in specific time
2- Stop the current track or fade it
3- play the track (in step one)
4- after the track end play normal track from library or continue the track (step 2)

Is it clear?


Top
 Profile  
Reply with quote  
PostPosted: August 7th, 2021, 10:36 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8299
Location: Cologne (Germany)
Code:
Queue.AddFile('C:\track.mp3\', ipTop);
ActivePlayer.FadeToNext;


There, that's exactly what you want to happen.
It will add the new track to the top of the queue and in the next second stop whatever is currently playing in favor of that new track and will play whatever was in queue or clockwheel or whatever rotation logic you use after that "new track" is finished playing.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: August 8th, 2021, 8:49 pm 
Offline
New User
New User

Joined: August 4th, 2021, 9:40 pm
Posts: 3
Mastacheata wrote:
Code:
Queue.AddFile('C:\track.mp3\', ipTop);
ActivePlayer.FadeToNext;


There, that's exactly what you want to happen.
It will add the new track to the top of the queue and in the next second stop whatever is currently playing in favor of that new track and will play whatever was in queue or clockwheel or whatever rotation logic you use after that "new track" is finished playing.



Thanks a lot ❤️


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group