GitLaboratory / demovibes

Automatically exported from code.google.com/p/demovibes
0 stars 0 forks source link

Dynamic locked time based on track length #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some users think it's fun to request a 30-minute song and clog up the queue
for as much time as possible.  And while we could certainly limit the
maximum track length, or give users a maximum allotted minutes per month
etc. how about making the "locked" timeout based on the length of the song?

Easy solution -
Song lock time = 1.5 days per minute of song length.  Since the average
track is probably around 3 minutes, this would scale nicely to say 45 days
for a 30-minute opus.  Though it is kind of a downer on the 5-minutes good
stuff.

Song lock time = 1.5 days * floor(minutes-8,3)
which only starts adding minutes after length passes 8 minutes.  Or...

Song lock time = 2 days * floor(minutes-9,2)^2
which very heavily penalizes the long songs by making their days grow
exponentially.  Etc...

Original issue reported on code.google.com by Kennedy....@gmail.com on 16 Apr 2010 at 4:33