[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 561: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 617: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 181: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 182: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3925)
Silverjuke Forum 2011-05-20T13:57:39+01:00 https://f0rum0ld.silverjuke.net/feed.php?f=30&t=2254 2011-05-20T13:57:39+01:00 2011-05-20T13:57:39+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=14998#p14998 <![CDATA[Re: Script to limit the play time of tracks]]> I've tried putting it in the silverjuke folder but with no luck.
Please help

Statistics: Posted by Guest — 20. May 11, 13:57


]]>
2010-09-24T08:01:12+01:00 2010-09-24T08:01:12+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=13840#p13840 <![CDATA[Re: Script to limit the play time of tracks]]>
Feature? Bug? Who knows?

Statistics: Posted by waldorf — 24. Sep 10, 08:01


]]>
2010-09-23T20:11:43+01:00 2010-09-23T20:11:43+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=13836#p13836 <![CDATA[Re: Script to limit the play time of tracks]]>
:shocked:

Statistics: Posted by waldorf — 23. Sep 10, 20:11


]]>
2010-09-23T16:08:50+01:00 2010-09-23T16:08:50+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=13835#p13835 <![CDATA[Re: Script to limit the play time of tracks]]> Statistics: Posted by Guest — 23. Sep 10, 16:08


]]>
2009-04-07T19:09:42+01:00 2009-04-07T19:09:42+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11111#p11111 <![CDATA[Re: Script to limit the play time of tracks]]> http://www.silverjuke.net/sdk/, in the section about scripting.

You can use bertkessels' script as starting point, I'd suggest first just try to modify it so it aborts the song at a percentage instead of at a fixed time.

If you have that working you could parse the queue and let the user give an endtime for the party, and calculate how much of each remaining song you can still play. Ideally you'd add this to bertkessels' script so long songs like Tubular Bells (*) get aborted at either the fixed maximum length, or the percentage, whichever is lower. Note that this effects the calculation of the percentage as well...

Enjoy, and don't hesitate to ask any more questions,
SilverEagle
(*) Although maybe for Tubular Bells you should hardcode a special case where it gets skipped after 10 seconds or so... ;-)

Statistics: Posted by SilverEagle — 7. Apr 09, 19:09


]]>
2009-04-07T17:25:03+01:00 2009-04-07T17:25:03+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11110#p11110 <![CDATA[Re: Script to limit the play time of tracks]]>
I would like to learn how to write these types of things myself. I know C# and Java, is it difficult to use the Silverjuke API() to do this sort of thing?

-djt

Statistics: Posted by Guest — 7. Apr 09, 17:25


]]>
2009-04-04T22:50:49+01:00 2009-04-04T22:50:49+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11082#p11082 <![CDATA[Re: Script to limit the play time of tracks]]> > ...
> Does this make sense?

Yes it does. What I presume is that this would be most (only?) useful if you prepare a playlist beforehand for the evening, not if you put the machine 'on the floor' for anyone to add songs.

If so I could image you telling the script: 'play the playlist as present in 3 hours and 15 minutes'. Is that what you had in mind? (Seems to me more userfriendly then doing the math yourself and having to put the resulting 80% back into the script again.)

Am I on the right track here?

SilverEagle

Statistics: Posted by SilverEagle — 4. Apr 09, 22:50


]]>
2009-04-04T18:08:25+01:00 2009-04-04T18:08:25+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11076#p11076 <![CDATA[Re: Script to limit the play time of tracks]]>
The use of this sort of thing would be if you are hosting a party for a particular year of music, lets say it's an 80's party. There are many songs from the 1980's and you want to get to all of them. Most folks who go to parties like these hear a song that brings back memories. They don't care if the whole song is played, just the part that brings back that particular memory. What they want is to have as many songs played as possible in the 2hr or 3hr timeframe that the party lasts.

The best way I could think of doing this would be to play 75% or even 80% of the song so we get to all the songs. Most of the time, the beginning and middle of the song is the part that brings back the old-days, then, they're ready for the next song.

Does this make sense?

Thanks again - Dave Timony


SilverEagle wrote:
> Hi Guest,
>
> Guest wrote:
> > Can you make it so we can specify a percent of the
> > song as opposed to the seconds?
>
> It could be done, but I think there must be a
> misunderstanding somewhere: do you really mean
> you want the option to cut off each song at (for
> instance) 80% of its playing time? What would be
> the use of that?
> (And if I ever wrote such a utility I would really
> like you to sign a clause I was not to be held
> responsible for any lynching of the party-host!
> ;-))
>
> > Sometimes at
> > parties, you want to get to the entire playlist,
> > and seconds is good, but all songs have varying
> > lengths.
>
> Maybe your answer is in the above, but to me it is
> lost in the grammer somewhere - I'm not a native
> English speaker so bear with me :-)...
>
> SilverEagle

Statistics: Posted by Guest — 4. Apr 09, 18:08


]]>
2009-03-30T07:44:57+01:00 2009-03-30T07:44:57+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11020#p11020 <![CDATA[Re: Script to limit the play time of tracks]]>
Guest wrote:
> Can you make it so we can specify a percent of the
> song as opposed to the seconds?

It could be done, but I think there must be a misunderstanding somewhere: do you really mean you want the option to cut off each song at (for instance) 80% of its playing time? What would be the use of that?
(And if I ever wrote such a utility I would really like you to sign a clause I was not to be held responsible for any lynching of the party-host! ;-))

> Sometimes at
> parties, you want to get to the entire playlist,
> and seconds is good, but all songs have varying
> lengths.

Maybe your answer is in the above, but to me it is lost in the grammer somewhere - I'm not a native English speaker so bear with me :-)...

SilverEagle

Statistics: Posted by SilverEagle — 30. Mar 09, 07:44


]]>
2009-03-29T20:08:51+01:00 2009-03-29T20:08:51+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=11019#p11019 <![CDATA[Re: Script to limit the play time of tracks]]>
Perhaps you can make it a variable so we can switch back and forth?

Statistics: Posted by Guest — 29. Mar 09, 20:08


]]>
2008-02-24T13:22:20+01:00 2008-02-24T13:22:20+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=7344#p7344 <![CDATA[Re: Script to limit the play time of tracks]]>
Groeten Leon

Statistics: Posted by Guest — 24. Feb 08, 13:22


]]>
2008-01-29T21:19:39+01:00 2008-01-29T21:19:39+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=7091#p7091 <![CDATA[Re: Script to limit the play time of tracks]]>
Regards,
Robert V.

Statistics: Posted by Guest — 29. Jan 08, 21:19


]]>
2007-12-30T21:24:58+01:00 2007-12-30T21:24:58+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=6830#p6830 <![CDATA[Re: Script to limit the play time of tracks]]> It solves a problem with the initial settings in the ini file.
Should work fine now.
If you have any suggestions for improvements, please let me know.
Cheers,
Bert
play_limit_tool.sj

Statistics: Posted by bertkessels — 30. Dec 07, 21:24


]]>
2009-01-05T14:50:00+01:00 2007-12-25T17:15:10+01:00 https://f0rum0ld.silverjuke.net/viewtopic.php?t=2254&p=6818#p6818 <![CDATA[Script to limit the play time of tracks]]>
I like to share a small script for limiting the playing time of tracks.
It installs itself as a tool with a dialog that asks the maximum play time in seconds. It checks the limit once each second. If the limit is reached, it just skips to the next track.

With this tool I no longer have to hide long tracks like "Kraftwerk - Autobahn" or "Tubular Bells" on my next party. Six minutes is a setting that works for these cases.
To switch it off again, just set the limit to 0.
It remembers your settings in the ini file.

Cheers,
Bert
play_limit_tool.sj

play_limit_tool.sj

playLimitTool.JPG

Statistics: Posted by bertkessels — 25. Dec 07, 17:15


]]>