I am certainly no Linux man.. in fact i know 0% about the code.
But what i would like to do to improve one of my apps is, merge 2 mp3 files.
So for arguments sake, I can know where these files are at any given time and have there paths in a couple of variable's
tMp3one
tMp3Two
I found this script which i believe is Linux, and i believe it is more than i need, as it is looking for all instances of a file with a given file name.
But i think it's got the foundation of what i am looking for:
Code: Select all
for f_file in ./*F.wav; do
b_file="${f_file/F.wav/R.wav}" #replaces "F.wav" with "R.wav" in the filename
# <put sox command here with input $f_file $b_file>
soxmix $f_file $b_file -r 44100 /media/58E5-6EB7/mp3/$b_file.mp3
done
1: Can i have an amended version of this in a field and do :
Code: Select all
do field "script" as linux
I surely cant just add them like :
Code: Select all
for f_file in tMp3One; do
Code: Select all
Put tMp3One into f_file
Put tMp3Two into b_file
soxmix $f_file $b_file -r 44100 /media/58E5-6EB7/mp3/newfilename.mp3 // assuming this line is merging the two mp3 files.
Gary