Yes, that should be the case from what I have observed with my
expeiments with rotation playlists.  Depinding on how you have the mode=
setting on the playlist. 

I mave my master playlist set to random, and if I read this corretly it
should pull a random track out of the playlist everytime it selects one
from that list.

The default, I believe is randomize, where it will load the list and
stuff it.  Then it will start at postion 1 and work its way down.  When
it reaches the end it will start back at 1.  Unless you feed it another
playlist.


On Wed, Apr 11, 2018 at 08:52:15PM +1000, Damian wrote:
> Hi Peter,
> 
> Thanks for your repy.
> 
> With regard to option (b), correct me if I am wrong:
> 
> This mean that if I have 4 directories, when the weighting variable causes 
> Liquidsoap to return to the music1 directory, it will continue playing the 
> randomised order from where it left off (essentially remembering the position 
> in the playlist so as to avoid repeating tracks that may have already been 
> played from that directory) that is until I add or remove content from that 
> directory at which point the playlist will reload and start afresh.
> 
> Damian
> 
> - - -
> I prefer to use encrypted email.
> My public key fingerprint is 77CC 9087 0A92 F55D 75A3  660B 68F2 1FA9 B26E 
> CAC7
> 
> > On 11 Apr 2018, at 6:37 pm, Peter <[email protected]> wrote:
> > 
> > 
> > Hi - you can do this quite easily with Liquidsoap.
> > 
> > (a) if you want to generate playlists from specific directories, you can do 
> > so with a command similar to:
> > 
> > ls -d "$PWD"/* > /path_to/directory_containing_playlists/playlist.m3u  (or 
> > whatever file extension you choose)
> > 
> > and make this run periodically.  However...
> > 
> > 
> > (b) You can dispense with playlists because Liquidsoap can simply take the 
> > contents of a directory as a playlist.  EG this is a line from one of my 
> > config files:
> > 
> > jingles = playlist(reload_mode = "watch", "/radio/jingles/")
> > 
> > You probably don't need to specify what sort of random behavior, because it 
> > defaults to  mode="randomize", which shuffles the play order each time it 
> > is loaded, and plays it in this order for a whole round.
> > 
> > The "watch" command tells it to keep an eye on the directory and reload the 
> > playlist when the contents changes, i.e. when you add news files.
> > 
> > Finally, you can set the weighting between each playlist:
> > 
> > radio = random(weights = [1, 1, 1],[music1, music2, music3])
> > 
> > - pete
> > 
> > 
> > 
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> 



> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot

> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to