Hello,
I am not at all a coder, but I have made this small script to convert midifiles to mp3 :
#!/bin/shfunctionsynthesize(){SOURCE="$1"PARAMETRES="-ab 160k -ac 2 -ar 44100"WAVE="$1.wav"DESTINATION="${SOURCE%%.*}"timidity"$SOURCE"-Ow-o"$WAVE"ffmpeg-i"$WAVE"$PARAMETRES"$DESTINATION".mp3rm"$WAVE"}case$@in*.mid|*.kar|*.midi|*.rmi)while["$1"];doecho"synthesize"synthesize"$1"shiftdoneexit0;;*)echo"Usage: midi2mp3 [nom du fichier ou *.* pour convertir tout le répertoire]. Extensions acceptées : .mid .midi .rmi .kar"exit0;;esac
Unfortunately, it doesn't works when using it in Tux Commander (with a right-click actions defined in filetypes).
However, I can convert midifiles one by one in Tux Commander by using this script :
Sending multiple selected files as a commandline argument is not supported yet, feel free to send a patch. All actions work only on currently focused file, no matter whether is selected or not.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am not at all a coder, but I have made this small script to convert midifiles to mp3 :
Unfortunately, it doesn't works when using it in Tux Commander (with a right-click actions defined in filetypes).
However, I can convert midifiles one by one in Tux Commander by using this script :
I didn't manage to get several files as input for the right-click actions.
Is that normal ?
Best regards, Patrice Reich
Sending multiple selected files as a commandline argument is not supported yet, feel free to send a patch. All actions work only on currently focused file, no matter whether is selected or not.