Notice: Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #97 (closed Feature: None)

Opened 8 years ago

Last modified 42 years ago

global shuffle enhancements

Reported by: largegreenwood Owned by: nobody
Priority: 5, normal Milestone:
Component: Any (Default Component) Version:
Keywords: Cc:

Description

Hi there,

I played around with jajuk a bit and as I want to use
it in Queue mode on a party on halloween, I need it to
run in global shuffle mode, but without filling up the
playlist (queue) with a random selection (people should
be able to push their favorite to the end of the
playlist and it should be played soon; with the list
filled up by the whole collection this won't work).

From the Code in FIFO it looks like the FIFO fills the
list with additional random files when bGlobalShuffle
is true. 

I did some evil hacks to make it work as I wanted, but
I think the "shuffle" and "global shuffle playmode"
options could be more self-explaining, because it's not
really clear at first why there is "shuffle" and
"global shuffle". Additionally, it's not possible to
find out in the GUI whether global shuffle is active or
not.

Also it would be nice to have an official way to
achieve this "mode":

1. using playlist "queue"
2. if no more tracks are in the queue, and mode is
global shuffle, add one more track (the FIFO already
does this, but it's impossible to activate it *without*
adding all tracks from the collection)

I simply did this hack:
FIFO.java:

@@ -666,7 +673,8 @@
                                       
setBestof(false); //break best of mode if set
                                       
setNovelties(false); //break novelties mode if set
                                       
setGlobalRandom(true);
-                                      
push(alToPlay,false,true,false);
+                                      
//push(alToPlay,false,true,false);
+                                       clear();
                                }

which works for me and my party because the list is now
empty and global shuffle is active. Maybe I'll come up
myself with a UI-sensitive solution...

Attachments

Change History

Changed 8 years ago by bflorat

Logged In: YES 
user_id=363565

The global shuffle is actually not a mode but a function :
it simply take the whole collection, shuffle it and add it
to the queue playlist, that's all : the goal is to provide a
single clic music laucher.
The shuffle mode is a contextual mode : it simply shuffle
any selection made by the user.
I think I understand your need : when in mode continue +
shuffle and the queue empty, you want jajuk to add a
*single* shuffle track from whole collection. Right ? 
I will think about it when refactoring FIFO : i'm working on
it to save CPU, to make it simplier, more passive and to
take into account some features requests like this one.  I
hope to make it for the upcoming 0.3.1.

Changed 8 years ago by bflorat

Logged In: YES 
user_id=363565

Hi,

Here's what I'm thinking about for refactoring, please give
me some feedback.

1- In the playlist editor : 
  * new button "add shuffle" to allow user to add immediatly
one single shuffle track.
  * Implementation of remove and add button for queue
playlist, even for plannified tracks ( see later)

2- New notion : planned tracks : many users want to see next
tracks to be selected and played by jajuk in shuffle mode,
repeat... and some others want to be allowed to control what
will be played. We  introduce the notion of planned tracks :
the playlist editor will display selection like today but
also n planned 
 tracks in italic ( n can be set as an option, it should be
something like 10 ). 

3- Mode behavior:
  - Continue mode : if fifo empty, continue to play
  - Repeat mode : 
	* if playing, loop on playing track
	* if not playing, loop on next selection
        Rule : always whole fifo repeated, no whole in
repeated selection.

- Shuffle :
	* if playing, shuffle next selection and shuffle current queue
	* if not playing, lauch a shuffle track from collection
	* When fifo empty + continue mode, add a shuffle track in
the fifo
	
- Global shuffle/novelties/bestof : stop and empty fifo,
make a selection and play it


Changed 7 years ago by bflorat

  • status changed from assigned to closed

Changed 7 years ago by largegreenwood

Logged In: YES 
user_id=270527

I think I understand your need : when in mode continue +
shuffle and the queue empty, you want jajuk to add a
*single* shuffle track from whole collection. Right ? 

Correct. As it seems some of the functionality is already
there, as the FIFO has a "shuffle" switch that leads excatly
to that what I want and you describe here - but it's not
usable this way because there's no way to activate a global
shuffel switch.

I don't have time right now so I can't fix it myself right
now, but as it seems you are working on it anyway.

Furthermore I saw another MacOS-based jukebox program,
something with "party" in the title I think (was at another
place and there was vodka, so I'm not that sure). It worked
similar, but it had about 20 titles in the cue all the time,
not adding a new title when the list was empty, but when the
list grew smaller than $n elements. It was possible to add
titles by drag&drop them into the playlist wherever one
wanted, so that you could decide when to play a new song,
and keep some of the randomized, or don't, and so on. It's a
little bit more easy to handle for "normal" people, but I
think the playlist handling gets more complicated.

I would be lucky enough with the version we discussed here,
just wanted to describe what this program had so it can be
taken into consideration.

I don't have a Mac so I'll stay with JaJuk :))

Add/Change #97 (global shuffle enhancements)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.