I apologize, I know that it was severely lacking in detail. I was just frustrated after spending a significant amount of time trying to chip away at the road blocks.
My goal: I am trying to control DMX lights via midi from an electronic drum set. The light controller that I use will turn on scenes and then turn them off with each received midi note. Scenes are solo latching, so if a new scene comes in, it automatically turns off the previous scene. Therefore I am trying to build a device that will prevent repeats of the same midi note. Example: Midi note 2, 2, 2, 2 would turn the lights on, off, on, and then off. I want to capture the first midi note 2 to turn the lights on, and then block all further instances of the note 2 until a new unique note comes through, such as midi note 3, which would change the scene for the lights and then prevent any further 3 notes until something new comes in.
I started off asking ChatGPT to give me step by step instructions. It gave me a list of a libraries and a starting script. It took me a few tries to get a functioning OS up and running on the rpi, but I eventually got there.
I installed (or attempted to install) Python 3.9.2, Python3 RTMidi 1.4.7 and attempted my first pass at the script. It comes back with illegal instructions. I attempted to validate the installs using various methods relayed by chatGPT. I noticed along the way that it seems some of the packages I'm installing are older than the ones already on the rpi. I eventually gave up as I felt like I had made a mess of the device by trying to install various versions of packages and their dependencies and other things, so I went back to the drawing board and started fresh:
Where I'm currently at. I installed Raspberry Pi OS (Legacy, 32-bit) Lite. I have installed the list of packages using the following method:
sudo dpkg -i %packageName%
1. python3-rtmidi_1.4.7-1_armhf.deb
2. python3-mido_1.2.9-3_all.deb
If I run the command python3 -c "import rtmidi; print ('rtmidi installed')" in an attempt to verify that RTMidi is installed and functioning correctly, I get this in return:
Which seems to indicate to me that it's having problems with a dependency of a dependency. Part of the problem I had with my first attempt that I eventually gave up on, was that I ended up going down a rabbit hole of dependencies. It was never ending. This needed these 4 dependencies. Then each of those 4 needed 3-4 dependencies of their own, and then those needed more and so on and so on, it just never stopped. I really don't understand why if these libraries cannot function without these things why they are not included.
So that's where I'm at for the moment, it seems like I'm at the point of chasing dependencies down a never ending rabbit hole again.
My goal: I am trying to control DMX lights via midi from an electronic drum set. The light controller that I use will turn on scenes and then turn them off with each received midi note. Scenes are solo latching, so if a new scene comes in, it automatically turns off the previous scene. Therefore I am trying to build a device that will prevent repeats of the same midi note. Example: Midi note 2, 2, 2, 2 would turn the lights on, off, on, and then off. I want to capture the first midi note 2 to turn the lights on, and then block all further instances of the note 2 until a new unique note comes through, such as midi note 3, which would change the scene for the lights and then prevent any further 3 notes until something new comes in.
I started off asking ChatGPT to give me step by step instructions. It gave me a list of a libraries and a starting script. It took me a few tries to get a functioning OS up and running on the rpi, but I eventually got there.
I installed (or attempted to install) Python 3.9.2, Python3 RTMidi 1.4.7 and attempted my first pass at the script. It comes back with illegal instructions. I attempted to validate the installs using various methods relayed by chatGPT. I noticed along the way that it seems some of the packages I'm installing are older than the ones already on the rpi. I eventually gave up as I felt like I had made a mess of the device by trying to install various versions of packages and their dependencies and other things, so I went back to the drawing board and started fresh:
Where I'm currently at. I installed Raspberry Pi OS (Legacy, 32-bit) Lite. I have installed the list of packages using the following method:
sudo dpkg -i %packageName%
1. python3-rtmidi_1.4.7-1_armhf.deb
2. python3-mido_1.2.9-3_all.deb
If I run the command python3 -c "import rtmidi; print ('rtmidi installed')" in an attempt to verify that RTMidi is installed and functioning correctly, I get this in return:
Code:
traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3/dist-packages/rtmidi/__init__.py", line 4, in <module> from ._rtmidi import * # noqa ImportError: /lib/arm-linux-gnueabihf/libstdc++.so.6: version "GLIBCXX_3.4.32' not found (required by /lib/arm-linux-gnueabihf/libjack.so.0)So that's where I'm at for the moment, it seems like I'm at the point of chasing dependencies down a never ending rabbit hole again.
Statistics: Posted by kcin — Sat Mar 15, 2025 5:04 pm