Topic: Linux commandline --midi option: Could not read the MIDI file

On the Linux commandline, if I try to load a midifile named "FILENAME.mid" using the --midi option I am getting an error message:

"Could not read the MIDI file FILENAME.mid"

I can load the same file without problems from the GUI menu File->Load MIDI File

Re: Linux commandline --midi option: Could not read the MIDI file

Just my quick test with 5.8.1 demo-version:

~/Pianoteq 5/amd64$ ./Pianoteq\ 5 --midi /home/me/bla.mid

works.

Correct path? permissions of the file?

cheers

Re: Linux commandline --midi option: Could not read the MIDI file

Never mind, problem already solved. I was running pianoteq as part of a shell script to automatically convert a large number of LilyPond files to PDF piano-scores and MIDI files, then using Pianoteq to convert MIDI to WAV, and finally use lame to convert to MP3. There was a typo in my script.

If done right you can do really nice things with Pianoteq as a commandline app :-)

Last edited by m.tarenskeen (19-01-2017 22:47)