GuitarMidi-lv2 version 2.0

Announcing GuitarMidi-lv2 version 2.0 for linux. This version is a massive upgrade incorporating a custom neural net Release on May the 8th on github:
https://github.com/geraldmwangi/GuitarMidi-LV2
Stay tuned

8 Likes

GuitarMidi-LV2 v2.0 for linux is out:

I highlighted the current drawbacks in the release notes. Happy testing

Here the announcement video:

2 Likes

Hi @jimsondrift ,

I am very curious to try your plugin. Do you also have a AARCH64 (PI5 ARM8) version?

Cheers,
Maarten

not yet

will start porting to the mod dwarf today. I think that it is under powered and i might need to add support for the Coral accelerator from google

1 Like

Hi @jimsondrift ,

Great!! Looking forward to your lv2. :smiley:
Meanwhile I am trying to compile it on my zynthian.
I noticed that the compilation is done for “-mcpu=cortex-a72 -mtune=cortex-a72”.
Would it be benifitial to optimize this time critical app per processor?

Thanks and cheers,
Maarten

(PS PI5 = a76)

1 Like

Hi. I couldnt reply since Im only allowed 5 messages a day. Have you managed to compile it on the zynthian? I want to compile it for my mod dwarf. I think you should turn on all arm cortex related optimizations especially those for XNNPack

1 Like

I built this on a RPi5 but it does not work. Hosting with jalv: jalv http://github.com/geraldmwangi/GuitarMidi-LV2 shows errors:

Loading plugin
Using butterworth filtersSetting up filterbank
Setting up filterbank with 148 filters and windowsize 256
DO NOT USE_ELLIPTIC_FILTERS
DO NOT USE_ELLIPTIC_FILTERS
... repeated many times...
Connecting MIDI OUTPUT PORT
Connecting MIDI OUTPUT PORT
Activating GuitarMidi-LV2 Plugin
ERROR: Could not open '/usr/lib/lv2/guitarmidi.lv2/guitarmidi.tflite'.
Error at /root/GuitarMidi-LV2/src/modelinferencer.cpp:42

can you build and install with

cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/lv2 ..
cmake --build .
cmake --install .

Yes, that is what I did. jalv loads the plugin but it then gives the warnings and errors I described and sits, consuming 100% of one core without actually finishing initialisation.

thats weird: I did the same on ubuntu 24.04:

GuitarMidi-LV2/build(master○) » cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/lib/lv2 ..

GuitarMidi-LV2/build(master○) » cmake --build .

GuitarMidi-LV2/build(master○) » sudo cmake --install .

start:

GuitarMidi-LV2/build(master○) » jalv GitHub - geraldmwangi/GuitarMidi-LV2: A concept for guitar to midi as an lv2 plugin · GitHub
Plugin: GitHub - geraldmwangi/GuitarMidi-LV2: A concept for guitar to midi as an lv2 plugin · GitHub
JACK Name: Guitar Midi
Sample rate: 48000 Hz
Block length: 256 frames
MIDI buffers: 32768 bytes
Comm buffers: 524288 bytes
Update rate: 30.0 Hz
Scale factor: 1.0
Loading plugin
Using butterworth filtersSetting up filterbank
Setting up filterbank with 148 filters and windowsize 256
DO NOT USE_ELLIPTIC_FILTERS
DO NOT USE_ELLIPTIC_FILTERS
DO NOT USE_ELLIPTIC_FILTERS
DO NOT USE_ELLIPTIC_FILTERS

..

Connecting MIDI OUTPUT PORT

Connecting MIDI OUTPUT PORT
onsetsmoothing = 0.500000
offsetsmoothing = 0.500000
onsetthr = 0.800000
offsetthr = 0.100000
Activating GuitarMidi-LV2 Plugin
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
=== Pre-invoke Interpreter State ===
Connecting MIDI OUTPUT PORT

does that file exist and is it readable for the user starting jalv?

ls -l /usr/lib/lv2/guitarmidi.lv2
total 9756
-rw-r–r-- 1 root root 8988816 Mai 9 20:29 guitarmidi.so
-rw-r–r-- 1 root root 984408 Mai 9 20:22 guitarmidi.tflite
-rw-r–r-- 1 root root 2525 Mai 9 20:22 guitarmidi.ttl
-rw-r–r-- 1 root root 325 Nov 13 20:46 manifest.ttl