We are in the process of migrating the Spacial Wiki content to our new Help Center at spacial.com.
Please visit the Help Center for latest Tips and Tricks, Documentation and Troubleshooting.
spacial.com/help-center

Music 1

From SpacialAudio

Jump to: navigation, search

Music 1 and SAM

Music 1 is a scheduling program the SE version is specific for SAM.
For the documentation and more information on how to use Music one go to their site <a href="http://www.gomusic1.com/">Music 1</a>
There are some good videos on M1 http://www.gomusic1.com/Videos/videos.html

Music one will take the CSV file you out put from SAM and read it in. Once you have Music 1 setup and import the files and crate either a 24 hour playlist or Hourly one a PAL script is needed to load the 24 hour clock at 23:59:59 and if its the hourly it will load the next hours playlist in just before the top of the hour.

Sounds Good you say, well it is and Music 1 gives you a lot of control over you Clock Wheels.

This article is concerned with how to use the PAL scripts and what you may need and want to change depending or your needs.
We will discuss the relation ship

The standard way to work with SAM and Music one is to do you 24 hour clock wheel/playlist/log. Then the Pal script is put into the PAL IDE in SAM and started.
But Wait. The generic PAL needs to be changed in a couple places to match you install.
Depending on how you have M1 outputting the .m3u files will determine how many lines to change in the script. If you output is in the form yymmdd.m3u then there is only 1 line to change.
If it is yyymmdd.m3u then there are 3 lines to change. One of the lines will need to be changed regardless of the filename output format.

The first line to change is

const PlaylistPath = 'c:\SAM LOGS\'; // location your Music 1 playlists are saved

You want to change the path to your m3u files. So where ever you are saving them to you need to put that path in the script instead of c:\SAM LOGS\.
That line you want to make sure is correct regardless of file name.

Now if you have Music 1 (M1) output the files in the name format of yyyymmdd.m3u then you need to change two more lines.
The default for the script is yymmdd.m3u.

HoldYear :=  IntToStr(Year);
TheYear := Copy(HoldYear,3,2); // copy the last 2 digits of the year 2007 would copy the 07

To make it so the script can find files with yyyymmdd.m3u format change the line to
TheYear := HoldYear; //get yyyyy

That should take care of the common problems when importing the M1 output into SAM via the PAL script.

There are some other possible things, depending , again, on how you have the M1 output set.
If you don't want the queue to be cleared when the playlist loads change the line
Queue.Clear; to //Queue.Clear; That will comment out the line and the playlist will get loaded into the Bottom of the queue and wait for whatever is ahead of it to play.
You can also have it load to the top of the queue
change Queue.AddList(Playlist,ipBottom); to

Queue.AddList(Playlist,ipTop);


Hourly Script

The common change for the 24 hour and hourly script is the line for the location of the M1 output files. once that is done then make sure the output file format you have in musci one matches what the script is looking for or change the script to match your output file names.

Personal tools