Issues getting Music to work because of PortMidi dependency
Hey, cool project! I want to play around with it but having some issues getting everything to work...
I'm a CL noob for sure (Clojure dev) so I'm sure it's on my end but if you can provide a bit of hand holding and get me going I'd really appreciate it.
MacOS. SBCL
When I try to pull in Music via quicklisp I get an error that Portmidi is not found. So I tried adding the only CL version of PortMidi that I could find (PortMidi 2.0.2 taken from Common Music repo) but now Quicklisp complains
Unknown CFFI type PORTMIDI::PM-MESSAGE
I also have standard PortMidi (2.7xxx) installed via Homebrew and seem to have no issues with it on other apps (Incudine, for example).
Any ideas? thx for any help you can provide!
Thank you!! :D
I'm afraid I won't be able to be of much help, it's been so long since I've touched CL and this project, but I'll try my best!
You may have tried this already, but for me, the solution to (ql:quickload :music) responding with System "portmidi" not found is to clone this repo into some place where Quicklisp can find it. (For me, that's ~/common-lisp, but this page seems to say more about that.) After this, it loads fine for me.
As for the PortMidi version installed on my system (I'm running Arch Linux), it looks like it's 217-7. I'm having trouble figuring out what that actually corresponds to in terms of the versions you mentioned, but it seems to be a recent build, haha. Which leads me to believe that you should be able to use a recent version no problem.
By the way, in case you don't know, if you are stuck, and if you have Discord, there's a neat Lisp server with some very smart and helpful people who can surely help you with general issues a lot better than I can, if you're interested in that. :o
EDIT: For whatever it's worth, I might as well add that I successfully tried the above just now with both SBCL version 1.4.5 as well as 1.5.5. Also, I'm very uncertain how CFFI works, so this is a big shot in the dark, but I wonder if it's trying to search for the PortMidi library and/or header files in some location it doesn't exist on MacOS. For me, they are located in /usr/include and /usr/lib. I have no idea if that's helpful at all, haha. Unfortunately I don't have a MacOS install to experiment with this on.
EDIT #2: If worse comes to worst and you simply can't get it working, if you don't require live midi play back, I wouldn't mind making a branch without the PortMidi dependency for you.
Awesome, thank you for that info!! Let me play around with that and see if I can get unstuck. Otherwise may take you up on the offer to remove that dep.
Thanks again!!