Logo
It is currently November 20th, 2009, 11:50 pm

All times are UTC - 6 hours [ DST ]


Forum rules


In order to provide you with the best support possible please read the following topics before posting:
Forum Rules can be found here. Ignorance is not bliss.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Help with setting mastervolume with PAL at certain times.
PostPosted: November 3rd, 2009, 4:52 am 
Offline
New User
New User

Joined: November 3rd, 2009, 4:46 am
Posts: 3
Hello.

I would like some help with creating a PALscript that will lower or gain the mastervolume at certain times.
Im a beginner at PALscripting and i must say the documentation isnt that swell :-)

My plan is to make a short PALscript that gains the volume. I will trigger the script with the eventmanager.
At night another script will lower the volume. That will be triggered with the eventmanager aswell.

Any ideas?

Johan


Top
 Profile E-mail  
 
 Post subject: Re: Help with setting mastervolume with PAL at certain times.
PostPosted: November 3rd, 2009, 1:17 pm 
Offline
Cygnus X-1
Cygnus X-1
User avatar

Joined: March 11th, 2003, 1:34 pm
Posts: 8704
Location: Maui, HI
Use the TPlayer class Volume property with a value of 0 to 255.

Examples:
ActivePlayer.Volume := 255;
IdlePlayer.Volume := 255;
DeckA.Volume := 255;
DeckB.Volume := 255;

See also PALGuide.hlp in SAMs help folder.
TPlayer class -> properties

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
 
 Post subject: Re: Help with setting mastervolume with PAL at certain times.
PostPosted: November 3rd, 2009, 3:57 pm 
Offline
New User
New User

Joined: November 3rd, 2009, 4:46 am
Posts: 3
Hello.
I was actually succesfull to fix it earlier today.
Used the DeckA.Volume :=255; command.

It worked.

Thanx for reply.

Im building a shoppingmallmusicsystem.
It requires diffrent volumes at diffrent times.
it also requires a start and stop time.
The stopPALscript is finished and works nice with FadeToStop and Eject etc...
But i havnt been able to start the player the next morning with a smart PALcommand.
Any suggestions?

Johan


Top
 Profile E-mail  
 
 Post subject: Re: Help with setting mastervolume with PAL at certain times.
PostPosted: November 3rd, 2009, 6:00 pm 
Offline
SVS Member
SVS Member
User avatar

Joined: May 8th, 2004, 9:00 am
Posts: 7208
Location: Denver, CO
Why not just have that PAL wait until a certain time the next day? Or use the Event Scheduler to start it?

_________________
- Rob Oyler
- Spacial Volunteer Support (SVS)

Image


Top
 Profile E-mail  
 
 Post subject: Re: Help with setting mastervolume with PAL at certain times.
PostPosted: November 4th, 2009, 3:24 am 
Offline
New User
New User

Joined: November 3rd, 2009, 4:46 am
Posts: 3
Its not the issue to use the eventschedular to start the PALscript.
I have tried lots of PALcommands to get one of the players to start playing the songs in the queuelist.

Mayby it should be like
1. load top song from queuelist to empty player.
2. start paused player

/Johan


Top
 Profile E-mail  
 
 Post subject: Re: Help with setting mastervolume with PAL at certain times.
PostPosted: November 4th, 2009, 6:38 am 
Offline
New User
New User

Joined: April 4th, 2009, 4:45 am
Posts: 16
I use the following script. Our outlets wrk frm mornin 8.00 to 10.00 evening ... just run a do while loop

Code:
While(now >= T['08:00:00']) and (now <= T['22:30:00']) do
begin
SubDir['C:\Documents and Settings\All Users\Documents\My Music\Music\JAZZ'].Rescan;
SubDir['C:\Documents and Settings\All Users\Documents\My Music\Music\JAZZ'].QueueBottom(smWeighted, EnforceRules);
Cat['Jingles (All)'].QueueBottom(smRandom,NoRules);
Cat['Station IDs (All)'].QueueBottom(smRandom, NoRules);
PAL.WaitForQueue(0);
end


The script for adjusting volumes can be put in there.

Now prepare another PAL Script which checks if player is paused or idle and run that continuously

Code:
While(now >= T['08:00:00']) and (now <= T['22:30:00']) do
begin
if (DeckA.status=1 )and (DeckB.status=1) THEN
Begin
IdlePlayer.QueueSong(Queue.NextInQueue);
QueuedPlayer.Play;
End;
end;


Last edited by Elevatorboy on November 4th, 2009, 6:53 am, edited 1 time in total.
Change color tags to code tags


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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 © 2000, 2002, 2005, 2007 phpBB Group