mp3 { set %file $dir=" " %mp3location if (%file == $null) { halt } run " $+ %mp3player $+ " " $+ %file $+ " if ($right(%file,3) == mp3) { goto mp3 } if ($right(%file,3) == wav) { goto wav } if ($right(%file,3) == mid) { goto mid } else { echo -a $ding 14the file type you are trying to play is not supported! } :mp3 set %song $nopath(%file) if ($chr(45) !isin %song) { goto blah } set %artist $left(%song,$calc($pos(%song,-,1) - 1)) set %title $right(%song,$calc($len(%song) - $len(%artist))) set %title $remove(%title,-) set %title $remove(%title,.mp3) set %length $length set %min $gettok(%length,1,32) set %sec $gettok(%length,2,32) set %length %min $+ %sec ame 14artist15:00 %artist 14title15:00 %title 14details15:00 %length $+ 9°00 $+ $kbps $+ 9° $+ 00 $+ $round($calc($file(%file) / 1040000),2)) $+ mb :blah set %title $remove(%song,.mp3) ame 14title15:00 %title 14details15:00 %length $+ 9°00 $+ $kbps $+ 9° $+ 00 $+ $round($calc($file(%file) / 1040000),2)) $+ mb :wav ame 14title15:00 $remove($nopath(%file),.wav) 14details15:00 $round($calc($file(%file) / 1040000),2)) $+ mb :mid ame 14title15:00 $remove($nopath(%file),.mid) 14details15:00 $round($calc($file(%file) / 1040000),2)) $+ mb } bitrate { if (%file == $null) return 0 set %bitrate $read -l1 %file if ($pos(%bitrate,RIFF,1)) { unset %bitrate return 128000 } set %bitrate $asc($mid(%bitrate,3,1)) .timer 1 1 unset %bitrate return $iif(%bitrate == $null,128000,$br($int($calc(%bitrate / 16)))) } kbps { return $remove($bitrate(%file),000) $+ kbps } ;;;length code is phys1k's modified, i dunno if it is his or not but its the same as everyone else uses so why not =P length { return $replace($duration($calc($lof(%file) / 16000)),mins,m,min,m,secs,s,sec,s) } br { goto $iif($1 isnum 1-14,$1,0) | :0 | return 112000 | :1 | return 32000 | :2 | return 40000 | :3 | return 48000 | :4 | return 56000 | :5 | return 64000 | :6 | return 80000 | :7 | return 92000 | :8 | return 112000 | :9 | return 128000 | :10 | return 160000 | :11 | return 192000 | :12 | return 224000 | :13 | return 256000 | :14 | return 320000 } count { return 15 $+ $findfile(%mp3location,*.mp3,0) 9m15p14³15z in %mp3location }