Song Length conversion
Song Length conversion
I need to get from the DB value to a percentage of 24 hours. What units is the time in the DB in?
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
You're right, thanks.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
For ASP the time conversion would be like this:
CDate(RS("SongLength")/1000/60/60/24).
This still wouldn't give you only minute and second displayed, but gets the values. And here is the problem.
This version gives often a second more as value than MM itself does. So the question is how is this value rounded in MM?
CDate(RS("SongLength")/1000/60/60/24).
This still wouldn't give you only minute and second displayed, but gets the values. And here is the problem.
This version gives often a second more as value than MM itself does. So the question is how is this value rounded in MM?
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Right, i observed the same problem.
Convert the total length in seconds, rounded to the integer part.
Here is what i use in VBS:
So i think you could try:
Convert the total length in seconds, rounded to the integer part.
Here is what i use in VBS:
Code: Select all
' Get total length in seconds
tmp = Int(totL / 1000)
' In days
dd = Int(tmp / 86400)
' Remaining seconds
tmp = tmp Mod 86400
' In hours
hh = Int(tmp / 3600)
' Remaining seconds
tmp = tmp Mod 3600
' In minutes
mm = Int(tmp / 60)
' Final remaining seconds
ss = tmp Mod 60
CDate(Int(RS("SongLength")/1000)/60/60/24)
Correct that worked. Thanks
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
It is cropped or cut of
Example if sng length is 15.567 Sec. MM wir see it as 15 Sec and with rounding it will be 16. Only thing you need is to ignore Milliseconds in displaying of length. MM do it Winamp do it , WMP do it Sound forge do it (if shown in hh:mm:ss Format)
Example if sng length is 15.567 Sec. MM wir see it as 15 Sec and with rounding it will be 16. Only thing you need is to ignore Milliseconds in displaying of length. MM do it Winamp do it , WMP do it Sound forge do it (if shown in hh:mm:ss Format)
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts