Csound~ in Max 7
Hi all
Has anyone got the external csound~ in Max 7.2.5 working. I've asked support and they seem to think the issue may be within the external so I've asked on the Csound forum but no one's using it. Some people online seem to have got it working but I just can't get it to recognise it. Any help much appreciated.
cheers
Eoin
Hi. For me it works with this (Max 7 on Mac)
csound~_v1.1.3.pkg
Rick
This appears to be empty now. Does anyone know where a MAX 7 compatible csound external can be found now?
One from here works for me:
http://csound.github.io/download.html
Thanks. Do you know why I would get back this message when trying to load it?
csound~: unable to load object bundle executable
scratch that - I just opened MAX in 64-bit mode, and it worked.
Thanks!
Yes, exactly. 64-bit only :-)
hey. years later i'm trying to run csound on max 8, osx mojave, it doesn't seem to work (i just downloaded it from their website). It tells me :
2019-09-24 05:55:31.294 Max[1159:146811] Error loading /Users/vichug/Documents/Max 8/Packages/csound~_v1.1.0_double/externals/csound~.mxo/Contents/MacOS/csound~: dlopen(/Users/vichug/Documents/Max 8/Packages/csound~_v1.1.0_double/externals/csound~.mxo/Co
ntents/MacOS/csound~, 262): no suitable image found. Did find:
/Users/vichug/Documents/Max 8/Packages/csound~_v1.1.0_double/externals/csound~.mxo/Contents/MacOS/csound~: mach-o, but wrong architecture
/Users/vichug/Documents/Max 8/Packages/csound~_v1.1.0_double/externals/csound~.mxo/Contents/MacOS/csound~: mach-o, but wrong architecture
Anyone has a working version ???
well it turns out the source is here : https://github.com/csound/csound_tilde
There doesn't seem to ba an active maintainer since quite some time. If anyone feels like digging through this :s...
here csound~ works fine in max8 (on high sierra). are you sure, you dled the right version? should be 1.1.3 (from 2016)
https://github.com/csound/csound/releases/download/6.07.0/Csound_tilde.6.07-OSX.zip
Hey Volker, thanks !!! I'm not sure how it can work now but it works now. I could have sworn i had the version from https://csound.com/download.html ; which does in fact link to https://github.com/csound/csound/releases/download/6.07.0/Csound_tilde.6.07-OSX.zip . But accessing directly the github release link works. I must have done something wrong !...
I'm still getting errors, it seems like it's got some hard coded paths. I'd love to get this working again, I'm a big csound fan.
=====================================
csound~: unable to load object bundle executable
2019-10-13 16:50:06.781 Max[1537:27543] Error loading /Applications/Max.app/Contents/Resources/C74/externals/csound/csound~.mxo/csound~: dlopen(/Applications/Max.app/Contents/Resources/C74/externals/csound/csound~.mxo/csound~, 265): Library not loaded: /
Users/M/Documents/CsoundXcode/Release/CsoundLib64.framework/Versions/6.0/CsoundLib64
Referenced from: /Applications/Max.app/Contents/Resources/C74/externals/csound/csound~.mxo/csound~
Reason: image not found
Are you sure you got the version from github as linked above ? this seems like 32 vs 64 bit shenanigans
Sadly, yes, I've tried a few times.
MAX 8 only runs in 64 bit mode from what I understand.
To double check I downloaded it again just now and got the same error:
2019-10-14 16:36:26.884 Max[1598:25560] Error loading /Users/dperi/Downloads/csound~.mxo/csound~: dlopen(/Users/dperi/Downloads/csound~.mxo/csound~, 265): Library not loaded: /Users/M/Documents/CsoundXcode/Release/CsoundLib64.framework/Versions/6.0/Csoun
dLib64
Referenced from: /Users/dperi/Downloads/csound~.mxo/csound~
Reason: image not found
The path "/Users/M/Documents/CsoundXcode/Release/" is from the developers machine, right?
Thanks for any help.
When I clone the GitHub repository the csound~.maxhelp file brings up this help window (see screenshot below), but as you can see the actual sound~ opcodes are saying they can't load.
Did you compile it yourslef ? It's strange that you get this bad path error message, i didn't get those. If you didn't already, you should erase your previously installed csound~.mxo and download the already compiled release ( from this link posted above : https://github.com/csound/csound/releases/download/6.07.0/Csound_tilde.6.07-OSX.zip ), and then use this downloaded external. You don't need to clone the git repo.
I don't know where could your problem come from, other than that !
Hi,
I'm using the complied object from the downloaded archive from the link you noted. I cloned the git repository in case I need to compile myself which may be the last option. It's so strange I'm getting these error messages with paths info that isn't happening for you. I'm really puzzled. Still working on it, I really love csound, been using it for many years.
hm. maybe try to install the mxo in somewhere like /dperi/Documents/Max 8/Packages/csound~/externals ? (that's where mine is installed)
I'm getting the same thing, Debra. I was gonna try to symlink the hard coded path.
I just did that, that's the location I started with, Max failed to load it. :-(
Then I moved it into Max's app resources dir and that failed again.
To make sure I had everything back to the standard install I downloaded the most recent version of Max, installed it and placed the csound~ file in my own home Max extensions dir.
But, now when I launch Max I get this message which is weird, what could have changed? I checked and all the dirs it mentioned seems fine. Is there a place that these search paths are set? I didn't see anything in the preferences.
I really don't want to have to try to compile the source code, that would take a while to get all the tools I need. Any help is appreciated.
you have multiple files in your search path with the name msp
using this file: Tethys:/Applications/Max.app/Contents/Resources/C74/extensions/msp
here are the other files with this name:
Tethys:/Applications/Max.app/Contents/Resources/C74/externals/msp
Tethys:/Applications/Max.app/Contents/Resources/C74/help/msp
Tethys:/Applications/Max.app/Contents/Resources/C74/jsextensions/msp
Tethys:/Applications/Max.app/Contents/Resources/C74/media/msp
Yeah, something is broken even with the compiler. Here's my terminal output.
Joshuas-MacBook-Pro-2:installer joshuaarmenta$ ./build-installer.sh
Must give branch name to build from
Joshuas-MacBook-Pro-2:installer joshuaarmenta$ ./build-installer.sh master
Using branch: master
Cloning into 'csound6'...
fatal: '/Users/joshuaarmenta/Desktop/csound_tilde-master/installer/2019-10-15-152955/../../../..' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Building Csound (double)...
./build-installer.sh: line 40: cd: csound6: No such file or directory
cp: ../../../../../Custom.cmake: No such file or directory
CMake Error: The source directory "/Users/joshuaarmenta/Desktop/csound_tilde-master/installer/2019-10-15-152955" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Error: The source directory "/Users/joshuaarmenta/Desktop/csound_tilde-master/installer/2019-10-15-152955" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No rule to make target `csound~.mxo'. Stop.
cp: csound6/build/frontends/max_csound_tilde/csound~.mxo: No such file or directory
cp: ../../help/csound~/*: No such file or directory
cp: ../../examples: No such file or directory
building packages ...
pkgbuild: Inferring bundle components from contents of installer/Package_Contents/
pkgbuild: Wrote package to csound~_v1.1.3.pkg
... finished.
Hi Josh,
Sorry, I didn't see your reply before posting my last reply. I haven't tried a sym link yet. Good idea!
What I forgot to mention in the above post was are there other places to set paths than this prefs panel?
No worries. I've got a commission for a massive, 36 movement piece for electronics with orchestra. Csound was specifically requested but the commissioner wants a Gui and I don't have time to learn the Csound Gui functions. So this is mega critical for me too LOL
Oh, I'm trying to invoke the object from the patch directory itself and I'm getting the same error. Something is broken.
Welp, I'm done. Just realized a symlink is gonna break when I send the PO the code. Bleh. PD object is working fine for me, guess I'm using that.
Hey, if you want to give a try at compiling the msp external yourself, is uppose you'll have better luck going from the last repository version/branch that yielded a "sometimes working" external : the 6.07.0 ( https://github.com/csound/csound/tree/6.07.0 ). I'm not entirely sure how you do that, i don't know that much about git, but i guess if you're really committed to it it should be worth a try....
also @Debra : these message sare weird indeed, it could be that during the process something changed in the permissions in those folders, turning them into executable or something. Or maybe they were replaced completely, or maybe symlinked from somewhere...
In any case you mention your own home Max extensions dir, but i'm nto sure it appears in your file preferences list ?
You shouldn't have to fiddle with symlinks or file preferences.
Afaik, csound~ relies on CsoundLib64.framework to be installed correctly (in /Library/Frameworks), otherwise the object will not work.
@Volker oh yes, i have this one installed indeed ; you get it when installing the csound desktop application installer right ? It would make sense that @Debra's original error message refered to the absence of this framework
Hi, same here:
Mac osx 10.14.6
Max8.1
I have the CsoundLib64 correctly installed, but I get:
csound~: unable to load object bundle executable
2019-10-19 12:27:59.745 Max[1292:29179] Error loading /Users/Shared/Max 8/Packages/csound~/externals/csound~.mxo/csound~: dlopen(/Users/Shared/Max 8/Packages/csound~/externals/csound~.mxo/csound~, 265): Library not loaded: /Users/M/Documents/CsoundXcode/
Release/CsoundLib64.framework/Versions/6.0/CsoundLib64
Referenced from: /Users/Shared/Max 8/Packages/csound~/externals/csound~.mxo/csound~
Reason: image not found
ok, don't know what's going on then. The only difference to my setup seems to be the os (here 10.12.6).
Anyway, I poked around in the csound~ sources this morning to see if I can fix a bug, where max keeps hanging after quitting. compiled a new version and put it here:
https://vboehm.net/downloads
if you want, try it out and report back, if the 'library not loaded' error persists.
Thanx Volker.
Just did a try ( I tried also to reinstall the Csound64 package)
again errors (even if now the path of library seems changed):
csound~: unable to load object bundle executable
2019-10-19 18:09:46.719 Max[2395:116513] Error loading /Users/Shared/Max 8/Packages/csound~v1.1.3/externals/csound~.mxo/Contents/MacOS/csound~: dlopen(/Users/Shared/Max 8/Packages/csound~v1.1.3/externals/csound~.mxo/Contents/MacOS/csound~, 262): Library
not loaded: @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64
Referenced from: /Users/Shared/Max 8/Packages/csound~v1.1.3/externals/csound~.mxo/Contents/MacOS/csound~
Reason: image not found
I tried it too and got the same kind of errors. Thank you though for helping! I hope it gets figured out, csound is so amazing.
csound~: unable to load object bundle executable
2019-10-19 13:42:06.093 Max[2491:62774] Error loading /Users/dperi/Documents/Max 8/Packages/csound/externals/csound~.mxo/Contents/MacOS/csound~: dlopen(/Users/dperi/Documents/Max 8/Packages/csound/externals/csound~.mxo/Contents/MacOS/csound~, 262): Libra
ry not loaded: @rpath/CsoundLib64.framework/Versions/6.0/CsoundLib64
Referenced from: /Users/dperi/Documents/Max 8/Packages/csound/externals/csound~.mxo/Contents/MacOS/csound~
Reason: image not found
ok, don't know how much this will be helpful for your concerns, but i just fpound out that the csound file you are using must be in the same folder as your patcher, or else csound~ will completely bonk the file path-in my case it added a period anbd removed 'x' randomly.
As an aside to the responses, you could also (if it solves your problems) make a gui in Max and run csound standalone, using osc or midi messages between them. I did that years ago with PD and it actually worked pretty well.
the error messages that you get, now look exactly the same, as the ones I get, if I move the csound framework out of the way: The csound~ object can't find CsoundLib64.framework at the expected location. But as you said, you have it installed correctly in /Library/framesworks/ I'm cluesless what the error is. Looks like an os problem. you are both on 10.14, right?
@vichug: can't reproduce your problem with the filepath. loading a csd file from a location outside of the current directory works fine here. (make sure to add quotes, if your path contains spaces.)
did you experience this with the version from github or with the version I posted yesterday?
Yes, I'm running OS X 10.14.6
That's a good idea Iain to use OSC! I tried it and it works great! I'd still love to figure out the csound~ object problem, I have some old Max patchers somewhere that I'd like to check out again.
Yeah, for many gui needs, the osc route is plenty fast enough. It also means you can run csound on a linux machine with the process priority jacked up for good latency, if that's an issue. We did that and got really solid performance at dead low latency. Boy do I wish I could do that on OSX with Max to the same degree... :-/
@Volker : i didn't give the complete .csd path to csound~, only the file name, and it was in Max search path but a different folder ; a message error appeared in Max window, the file path was autocompleted but with the mentioned mistakes. Didn't try with a complete path. Your version doesn't work here actually, it complains about a missing sndfile library in /usr/opt or something ¯\_(ツ)_/¯
I played with this a little longer and the good news is, I got it working on a machine running macos 10.14.6.
The main problem here is getting libsndfile to load, when it is not pre-installed already. I.e. there is a version of libsndfile inside the csound framework, but I can't find a way to make the object load the dylib from this path. If you have installed libsndfile separately e.g. through homebrew, csound~ should find it.
Anyway, I think the best way to move forward is to drop the libsndfile dependency completely, as it is only used with the 'loadsamp' message for instructing csound~ to load a soundfile into an ftable.
Here is a version without libsndfile and the 'loadsamp' message disabled (you can still load soundfiles/samples directly from your .csd):
https://vboehm.net/xchange/csound~v1.1.3vb.zip
for anybody still interested in this, please try out this version and report back.
please move any other version of csound~ out of max's search path and make sure you have installed csound6, i.e. CsoundLib64.framework exists in /Library/Frameworks.
Yeaahhhh, finally it's running!
Thank you Volker for your work. Here it runs con Mac osx 10.14.6, Max 8.1, Csound 6.13. Not tried to load samples for now, just synthesis. I will report back further test.
ok, good to hear!
@Vichug: have just put up a new version, which should fix the loading of .csd files from max's search path.
(loadsamp is still not available)
It works!!! Thank you SO much!
Volker Bohm
is there any possibility of getting it to work on WIndows10?
yes, should definitely be possible, but I can't do it, as I have no access to a windows machine.
the problem someone might face, who'd like to try this, is that the makefile for this project is broken.
For the macos built, I have setup the xcode project with all necessary ingredients 'by hand'. This is not super hard to do, but cumbersome. If I find the time, i'll try to translate the xcode settings into a functional makefile.
That would be so helpful!!
I have mingw but i am usually a linux person but i think i could at least try it to see how far i get
i have successfully done a few pd externals on windows
thank you for helping and the mac version is awsome
Hi @volker, would you mind sharing your XCode, CMake, or plain old MacOS makefile with me? I'm updating the CMake setup in the csound~ repo and your modifications would be nice to have there. I'm also setting up a CI build so we don't have to deal with this madness again. I'll try to get the MacOS binaries building too, but I might need your help. I'll keep you posted.
I am so glad you guys are getting together for this THANK YOU
I've put up binaries for Windows and the OSX binary that @Vokler shared. I also bunded the help files and examples into the csound~ package for Windows. The binaries are available here
I will take a look at the OSX build when I get a chance. It's not the end of the world that some of the functionality is missing, but it would be nice if the objects worked in the same way across platforms.
Hello @Rory - sure I'm happy to share what I've got. I have forked the csound_tilde repo, but haven't found the time to go through my changes again and push any updates, yet. Will do this in the next days, hopefully.
But concerning the durability of the object, I think it could be worth the effort trying to adopt to the current "best praxis" for max externals, i.e. to create a "max package" based on the max-devkit
Like this the windows and mac versions should be streamlined as much as possible concerning the ingredients for a working object. Downside is, that this requires further changes to the code, getting rid of deprecated parts like the old buffer api etc. But it's only a question of time, until this is necessary anyway.
Actually I already started looking into this (and it seemed doable) but got sidetracked. Will upload results soon.
Great. I didn't even know there was a max devkit, or that the SDK the object currently uses is already being referred to as legacy! I think what you write makes perfect sense. I'm not sure how much I can help with in terms of code (I just don't have the time) but I'm more than happy to test builds for you on Windows. I'm also going to try to add an Azure build for OSX too. A propos, if you wish to test any of your code on Windows, all you need to do is make a pull request to my repo. My Azure pipeline will build the project and you'll be able to see if it the build has been successful here. Once all the work is done and we have successful builds on all platforms I will push it to the main Csound repo.
Hello all! Hope this is the right place to post this. I'm eager to do a project with csound in Max. I'm following the patch examples here http://floss.booktype.pro/csound/b-csound-in-maxmsp/ but continually get the same error csoundCompile () failed.
Would be great to get pointed in the right direction of what's going wrong here...
Thanks!
I'm not sure what the problem here is. I've never used this object. You might get better information about the problem on the Csound list?
https://forum.csound.com/
Also, that's a slightly outdated version of the Csound floss manual. The new version, with example playable directly in the bowser can be found here.
Thank you Rory! I changed the code in the examples to that in the new manual, and it's worked.
I'll check out the Csound forum.