Controlling Fast/Slow Song ratio

Everything, that fits not well into other forums - Questions, Talk, Beta-Versions ...
Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Controlling Fast/Slow Song ratio

Postby Guest » 23. Feb 10, 22:34

Is there a way with SilverJuke to control how many fast songs are played before a slow one is allowed in kiosk mode. I could tag songs as fast or slow, but need a way of telling silverjuke to only play requested slow songs every 20mins or every 4th song. Any ideas of how to handle this? Thanks.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby Guest » 24. Feb 10, 08:29

I'm not sure if this is really possible by a script, however, I would give this a try first.

Regards,
B.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby Guest » 24. Feb 10, 23:49

Unfortunately... I haven't the first clue of how to script this. Any other ideas of getting something close to this with current functionality? Thanks for any help.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby Guest » 2. Mar 10, 20:55

Can anyone script this type of need? Or get me pointed in the right direction to learn how to script this so I can give it a try? Thanks.

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby SilverEagle » 2. Mar 10, 21:34

Guest wrote:
> Can anyone script this type of need? Or get me
> pointed in the right direction to learn how to
> script this so I can give it a try? Thanks.

Where do the slow songs come from, do users enter them? What should happen with the songs, should they shift backbards in time, or should the user get a warning the song cannot be queued? What should happen if there are only slow songs left in the queue?

(By the way: better create a forum account, that way you also get email notifications if any question or hint is posted).

SilverEagle

tbeckman
Posts: 6
Joined: 23. Feb 10, 22:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby tbeckman » 4. Mar 10, 17:08

That is weird... I responded to this yesterday... but when I went to check my post was not there. I took your advice and opened an account... thanks for the tip on getting the emails.

I really appreciate your taking a look at this. The way I am thinking about it is... as songs are played in the queue... there should be a counter that will watch for ~4 songs (I can tag anywhere... probably comments field) and after 4 songs allow a slow one to be played. If a slow song comes up before 4 fast songs have been played then push the slow song back one in the queue.

I haven't really thought much about what if there are only slow songs left in the queue. I will be using autoplay when there are no songs chosen... perhaps autoplay can be triggered to pull a song to meet the fast song quota. I am not too worried about this scenerio but it is a good one to thing about. Thanks for any help you can give.

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby SilverEagle » 4. Mar 10, 18:13

tbeckman wrote:
> That is weird... I responded to this yesterday...
> but when I went to check my post was not there.

Forum has button for preview, then you must click again to actually post. I still get bitten by that once every few weeks and discard a nice post, maybe you did the same...

> I took your advice and opened an account...
> thanks for the tip on getting the emails.
Welcome on board ;-)

I'll have a deep think about what scripting could do for you, in the meantime:

> I can tag anywhere... probably comments field

You could try using the beats-per-minute field in the MP3 tags. Silverjuke should import that into its database, try creating a music filter showing only your slow songs to test it out. You can edit the BMP from inside SJ and write it back I think, but I must confess I never tried anything like that. But comments will probably work as well in a pinch, but depending on the source of your music collection BPM might be already filled in for a lot of them so that route would save you some tedious work.

SilverEagle

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby SilverEagle » 5. Mar 10, 10:41

Hi tbeckman,

Got your ready!

SilverEagle

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby Guest » 10. Mar 10, 01:30

Awesome... I am going to try this out tonight... sorry for not getting to the sooner. Really appreciate your time to work on this.

tbeckman
Posts: 6
Joined: 23. Feb 10, 22:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Controlling Fast/Slow Song ratio

Postby tbeckman » 12. Mar 10, 06:24

Can you tell me when the script actually moves songs... is it when it is chosen, when a song ends or other? Also, I noticed your wording says a "minimum" of 4 consecutive songs... does that mean it will play more than 4 songs sometimes? Tell me if I have this right... but it looks like it waits for one slow song to play and then makes sure a second one doesn't play till 4 have passed through? Thanks... this is great.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Main Forum”