I can try a few test on orginal script and check result is like below except but there are some errors in orginal script and in the script the sox usage in probably false or version differ because --i parameter is not valid in Version 12.18.1 and because of i removed sox command)
Then i modified a little
can you check that are results are you wanted like ?
In addition I noticed that the script requires GNU sed and sox. So you need to install those in any case on your machine for cue2labels.sh script to work.
actually in my script sox is not necessary..because the sox command where in original script not working properly and i cant guess what is sox's result..
to org script it uses FILE_NAME that is mp3 file name in determined clue file and it has grep Duration and if we start off from this maybe sox's result is gving duration times.but i find already in the duration times clue file..then i remove sox command (already it gives error)
portion of from org script
CUE_TMP=$( sed -n '/\<INDEX\>/p' "$CUE_FILE_NAME" |\
grep -Eo '..:..:..' | sed '1 d' && sox --i "$FILE_NAME" |\
grep -E '\<Duration\>' | grep -Eo '[0-9]{2}:[0-9]{2}\.[0-9]{2}' |\
sed -r 's/\./:/g;s/\<00:00:00\>//g')
Hi guys, firstly thanks for your time in looking into this for me. Please accept my apologies for lack of understanding using Terminal but Ygemici, how do I get your code to run properly here? From opening Terminal, what steps did you take to run your script?
From what I understand sox is needed to determine audio track duration, in particular the last track in the cue file. Your code shows the results listed for 12 tracks with track 13 time index missing.
I downloaded the sox file from the following site:
SoX - Sound eXchange | HomePage
h t t p://sourceforge.net/projects/sox/files/sox-macosx/14.3.1/sox-14.3.1-macosx.zip/download