allolib_playground called alrun.sh with the following:
if [ -f "$1" ]; then
if [ ${1: -4} == ".cpp" ]; then
FILE="$(realpath $1)"
cd /path/to/allolib_playground
./run.sh $FILE
else
echo "Error: $1 does not end in .cpp"
fi
else
echo "Error: $1 does not exist"
fi
Replace /path/to/allolib_playground with the path to the repository on your system.
~/.bashrc or a similar shell startup script:
alias alrun='/path/to/allolib_playground/alrun.sh'
source ~/.bashrc.cpp files from anywhere, e.g. alrun 01_SinEnv.cppaseqnet to start the server.aconnect -i. You should see something like this:
...
client AA: 'your MIDI device'
...
client BB: 'Net Client'
...
Make note of the IDs (noted above as AA and BB) for your MIDI device and the network device.
aconnect AA BB (using the numbers from above)aseqnet HOST where HOST is the hostname or IP address of the first computer.Here are a couple of programs from tutorials/synthesis with modifications for basic MIDI support:
It is possible to play MIDI files in a cross-platform way within Allolib, but I haven’t implemented it yet, so here’s a workaround.
...
Opened port to Midi Through:Midi Through Port-BB AA:BB
Parameter OSC Handshake server running on 0.0.0.0:16987
[100%] Built target 08_SubSyn_run
Make note of the client and port numbers (noted above as AA and BB) for the connected MIDI device.
aplaymidi -p AA:BB path/to/mysequence.mid. Replace AA and BB with the client and port numbers and path/to/mysequence.mid with the path to the MIDI file to play.