-
Notifications
You must be signed in to change notification settings - Fork 2
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
help file csd sample rate does not match default in Max #3
Comments
Hi, I should improve that error message so it's more clear. It's telling you that the csound sr setting in your CSD needs to match the sample rate of Max in your audio preferences. If this is indeed already the case, I probably have a bug. Can you try explictly setting sr in the CSD header to whatever sample rate you have Max set to and let me know if that works? |
Thanks for your help. It was indeed a mismatch between sampling rates (max had 48000 and the I don't typically change my sampling rate so I assume that 48000 is Max's default. If it is, then it may be worthwhile having the same setting in the help csd. In any case, very cool. Thanks! |
Good suggestion. I should also look into whether there is a way to have that sample rate left out and set by default to Max's. I'm glad you got it working! |
I also was thinking that Sample rate mismatches or KSMPS (vector size) mistmatches could be automatically handled by the object itself. For example, if ksmps is not an even divisor of Max vector size, it could be automatically set to the same. Or an attribute of the object could be "automatch". It would be super helpful when giving patches to someone else who does not know Csound and only wants to have fun without having to configure everything. |
hmm, that's a good point. I will think about that when I get back to this in the fall. I'm taking a wee break between defending my thesis and starting the PhD but future development is planned |
Thanks ! if I find sometime I'll try to contribute if you agree with the feature. |
I think it should be opt in as it could confuse knowledgeable Csound users if ksmps changes and they don't know why. But it would be nice if one could use an attribute to automatically set sr to sample rate and ksmps to max vector size. perhaps we could have an attribute @ksmps with an option for auto? (I actually have no idea whether the Max SDK makes it easy to find the vector size mind you) |
I agree, a @ksmps attribute that could be set to auto (same as max) or any value (override csound's ksmps then), or not set (take csound ksmps then). |
I think that would be good, and not affect normal use. If you want I can add you as a contributor so you can make a branch. I would welcome new contributors to this! There is also, in case anyone is interested, more that could be ported from the Lazarinni Pd object from which I copied a lot of this (I simplified it, and did not yet add the midi stuff) |
I may start with a fork of your repository and add a branch on my fork, and then PR once it's done. |
I have the attributes "autoksmps" and "autosr" working here locally. When set to 1, they set Csound ksmps or sr to Max (Sample rate and vector size). |
Excellent, I look forward to checking it out, thanks! |
Hi Iain,
Even though I have csound6 installed on my mac (Catalina), I'm unable to load the csound6 external with errors:
First my csound version:
Now when I try to open the
.maxhelp
file:When I try to start the external, I get the following error:
The text was updated successfully, but these errors were encountered: