the OS is
Code: Select all
Linux debian 4.19.0-17-amd64 #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/Linux
So i decided to call little shell scripts, that output midi commands via sendmidi(https://github.com/gbevin/SendMIDI).
here is an example of a such script:
Code: Select all
#!/bin/bash
workdir="/Users/dirk/Documents/Hardware_Bastel/Laser_Dmx_Party/radiator/"
sendmidi=$workdir"sendmidi" # sendmidi path
# output device: put YOUR device here
dev="USB2.0-MIDI Anschluss 1"
$sendmidi dev $dev cc 32 25
$sendmidi dev $dev PC 28 # use sendmidi variable to execute $sendmidi
but when I trigger it with QLC (as a system command in script editor, deleting the "args:" , and repeating it via a cue list), it runs close to 200 times and then silently stops, without giving any error.
Pausing it does not help, switching between Design Mode and Operate Mode also does not help, I have to completely exit and restart QLC+ to re-establish this functionality.
this is how i tested it:
I made another bash script, test.sh, that just creates an empty file with the tile as a filename:
Code: Select all
#!/bin/bash
#touch ./midiout-test/acab-$(date +'%H-%M-%S-%N')
#touch ./midiout-test/bcab-$(date +'%H-%M-%S-%N')
#touch ./midiout-test/ccab-$(date +'%H-%M-%S-%N')
touch ./midiout-test/dcab-$(date +'%H-%M-%S-%N')
Code: Select all
dirks% ls -l
total 195
-rwxrwxrwx 1 dirk staff 0 19 Jul 09:58 dcab-11-58-31-486358089
-rwxrwxrwx 1 dirk staff 0 19 Jul 09:58 dcab-11-58-32-485303985
etc...
-rwxrwxrwx 1 dirk staff 0 19 Jul 10:01 dcab-12-01-44-493793369
-rwxrwxrwx 1 dirk staff 0 19 Jul 10:01 dcab-12-01-45-492089051
dirks%
Code: Select all
ls -la ~/Schreibtisch/QLC+/midiout-test/ac* >acab.txt
ls -la ~/Schreibtisch/QLC+/midiout-test/bc* >bcab.txt
ls -la ~/Schreibtisch/QLC+/midiout-test/cc* >ccab.txt
ls -la ~/Schreibtisch/QLC+/midiout-test/dc* >dcab.txt
wc -l acab.txt
193 acab.txt
wc -l bcab.txt
193 bcab.txt
wc -l ccab.txt
195 ccab.txt
wc -l dcab.txt
195 dcab.txt
BTW: When I try to do this same setup on the Mac(OSX Mojave, QLC+4.12.3), it won't even let me create the script. The syntax parser(green check mark) complains with:
Syntaxfehler bei Zeile 1:
systemcommand:/Users/dirk/Documents/Hardware_Bastel/Laser_Dmx_Party/QLC+/test.sh arg:
I tried this with and without the "args:" addition.
So I cannot compare the linux QLC with the Mac QLC...