$rand title formatting function removed in 0.9.5 beta 7, Split from "foobar2000 0.9.5 beta" |
![]() ![]() |
$rand title formatting function removed in 0.9.5 beta 7, Split from "foobar2000 0.9.5 beta" |
Dec 12 2007, 20:37
Post
#1
|
|
![]() Group: Members Posts: 913 Joined: 10-January 05 Member No.: 18979 |
$rand title formatting function removed in 0.9.5 beta 7
This post has been edited by Cosmo: Dec 18 2007, 18:03 |
|
|
|
Dec 12 2007, 21:19
Post
#2
|
|
![]() foobar2000 developer Group: Admin Posts: 2806 Joined: 30-September 01 Member No.: 84 |
$rand() is gone because it returned a different value with each query yet there was no way for UI to update whenever its value changed, resulting in repaint glitches and other unexpected behaviors.
Yes, I know that there are multiple third party components with the same issue, but we don't want to set a bad example with built-in functionality violating our own guidelines. Probably somebody will provide a replacement for $rand() through some component anyway. If you can name any real-world uses for $rand(), I'd like to hear about them so I can think about providing other means of doing the same without going through titleformatting mess. |
|
|
|
Dec 13 2007, 14:14
Post
#3
|
|
|
Group: Members Posts: 742 Joined: 28-May 06 From: Düsseldorf Member No.: 31251 |
If you can name any real-world uses for $rand(), I'd like to hear about them so I can think about providing other means of doing the same without going through titleformatting mess. I use $rand() in Advanced Preferences to define album sorting pattern for album shuffle: so that i also have shuffle inside of one album. |
|
|
|
Dec 13 2007, 16:46
Post
#4
|
|
|
Group: Members Posts: 301 Joined: 28-October 06 Member No.: 36898 |
I often use $rand() to, well, generate randomly-ordered playlists (specifically using Playlist Tree queries). I prefer doing so rather than using the Shuffle or Random play modes for a variety of reasons, both aesthetic and functional. (Basically, I like to see songs on the playlist in the order they're going to be played.)
If this indeed breaks in Beta 7, I suppose I'll be sticking with Beta 6 for the foreseeable future, at least until I can get identical or superior functionality. |
|
|
|
Dec 13 2007, 16:50
Post
#5
|
|
![]() Group: Members Posts: 115 Joined: 11-March 04 From: Russia Member No.: 12658 |
Why not use "Sort » Randomize"?
-------------------- stimulating the audio nerve directly
|
|
|
|
Dec 14 2007, 02:33
Post
#6
|
|
|
Group: Members Posts: 301 Joined: 28-October 06 Member No.: 36898 |
Why not use "Sort » Randomize"? A matter of convenience. As I have things set up now, I can generate a shuffled playlist of, say, all of my songs rated 4 or higher and start it playing with one double-click. Without $rand() or something similar available, this operation would take at least three distinct steps, one to generate the playlist, one to sort it, and one to start it playing. This would hardly be the end of the world, obviously, but it's functionality I would prefer not to lose. (This is also, among other reasons, why I haven't switched to the new Default UI.) None of this is a demand that $rand() be restored or I'll start murdering puppies or anything. (I quite like puppies, for one thing.) Just a request that some manner of random function be considered, if it can be done without reintroducing the issues that caused the old function to be removed. If not within Titleformatting as such, then within a newer version of Playlist Tree, if there ever is another one. Just one of those 'real world applications' that Peter asked for, really. And, until and unless that day comes, Beta 6 is working just fine for me. |
|
|
|
Dec 19 2007, 09:58
Post
#7
|
|
|
Group: Members Posts: 248 Joined: 9-July 03 Member No.: 7668 |
2Peter
It is possible create $rand() function as optional component provided only for compatibility with old configurations that rely on them. |
|
|
|
Dec 19 2007, 11:40
Post
#8
|
|
![]() Group: Members Posts: 1755 Joined: 18-May 03 From: Denmark Member No.: 6695 |
I use $rand to create a unique number for each track/file for use in my backup application to backup tags only.
Edit: Another thing I previously used it for (I did not update everything yet) is a random-weighted autoplaylist. IMHO $rand is a very useful titleformatting function and i'd be sad to see it removed. This post has been edited by odyssey: Dec 19 2007, 11:43 -------------------- Disclaimer: This information is probably wrong...
|
|
|
|
Dec 21 2007, 10:45
Post
#9
|
|
|
Group: Members Posts: 144 Joined: 27-March 05 From: Midgaard Member No.: 20990 |
$rand() is gone because it returned a different value with each query yet there was no way for UI to update whenever its value changed, resulting in repaint glitches and other unexpected behaviors. Well. Reading this thread and the fact that I'm using it as q-stankovic (to provide a album shuffle mode which shuffles inside albums) I'd say that removing it because of the UI doesn't can't handle it isn't a good reason. If it exists another reason I could understand it (if you stated it Can't you make it not usable in the UI code btw? Some functions doesn't work globally and why not make $rand() such function? |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd November 2009 - 03:50 |