mIRC Homepage
Posted By: raZOR mp3... music lenghth - 20/10/06 04:07 AM
anyone care to write little alias how to get
music file lenghth of time and if possible explain what
each line does ?
Posted By: genius_at_work Re: mp3... music lenghth - 20/10/06 04:28 AM
$sound(%filename).length

Explanation: Line 1, returns length of %filename

-genius_at_work
Posted By: raZOR Re: mp3... music lenghth - 20/10/06 04:31 AM
heh uhm i get some weird number...
may i ask how to convert it to minutes:secs ?
Posted By: MikeChat Re: mp3... music lenghth - 20/10/06 04:48 AM
you mean $duration?
Posted By: RusselB Re: mp3... music lenghth - 20/10/06 08:03 AM
that strange number isn't really strange, but rather the length measured in milliseconds, so to get a min:sec reference use

$asctime($calc($sound(%filename).length / 1000),nn:ss)
Posted By: raZOR Re: mp3... music lenghth - 20/10/06 12:19 PM
thanks guys, i apreciate it.
© mIRC Discussion Forums