Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues getting Music to work because of PortMidi dependency #1

Open
Fedreg opened this issue Aug 6, 2019 · 2 comments
Open

Issues getting Music to work because of PortMidi dependency #1

Fedreg opened this issue Aug 6, 2019 · 2 comments

Comments

@Fedreg
Copy link

Fedreg commented Aug 6, 2019

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!

@MegaLoler
Copy link
Owner

MegaLoler commented Aug 6, 2019

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.

@Fedreg
Copy link
Author

Fedreg commented Aug 7, 2019

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants