shakfu / chuck-max Goto Github PK
View Code? Open in Web Editor NEWA max/msp external which embeds the chuck engine.
License: Other
A max/msp external which embeds the chuck engine.
License: Other
Currently the chuck~ object only has one outlet.
Stereo output is needed so that chuck programs with stereo output such as panning or use of dac.right
and dac.left
can be directed to separate outlets in Max.
Hi Shakeeb,
following our quick interaction on the Cycling74 forum here a more in-depth issue for troubleshooting (i'm not very experienced, it might be me causing it).
I'm compiling the external myself using the Terminal on an M1 Pro Macbook. I used the following command:
git clone https://github.com/shakfu/chuck-max.git
cd chuck-max
make universal
make setup
Running this gives me the following error message:
** BUILD FAILED **
The following build commands failed:
CodeSign /Users/.../Documents/Max\ 8/Packages/max-sdk/build/chuck-max/chuck-max/externals/chuck~.mxo (in target 'chuck_tilde' from project 'chuck-max')
(1 failure)
make: *** [universal] Error 65
... symlink created
The external is built completely with its folder in my Max8 directory. Max finds it when typing in an empty object but prints the error message "chuck~: could not load due to incorrect architecture".
Thanks for taking a look, if you can!
Lukas
With the new file structure under examples/
, now the .maxpat
test files don't run.
For example, patchers/tests/test_callback.maxpat
has the chuck~ object with this file argument:
chuck~ test-callback.ck
Now it needs to be:
chuck~ test/test-callback.ck
This is true for the other .maxpat
files.
Also it looks like you have changed maxtest.ck
to max/test.ck
.
This is a suggestion to build out an Overview patch.
Many Max externals provide an Overview patch that loads in the Max Extras menu. Good overviews give more detail on how to use the external, example patches, use cases, tutorials, etc. I think something similar would be good here. This would be a good way to organize and present different demo patches, but also to provide tips on usage, and discuss different use cases for chuck-max.
Examples of Externals with Overviews:
Bach, Cage, Rhythm and Time Toolkit, Flucoma, etc.
I already have a short list of usage tips I've been collecting - some are simple and obvious, but good for anyone starting out. And I have thoughts on what types of things chuck-max is good for.
This issue / topic is for a discussion on how to improve chuck-max
's current examples.
A few ideas:
chuck
project?tests
folder?Currently all Max UI objects that input to chuck~ reflect value changes to the console:
chuck~ • param carGain: 0.400000
chuck~ • param modIndex: 5000
chuck~ • param modIndex: 5001
This is sometimes useful but can be distracting when using chuck debug comments/messages. It is particularly intrusive when sending continuous change values from a slider or scrolling a number value.
Suggested behavior:
attribute name: paramConsoleOutput
values: 0 / 1
default: 1 (on)
behavior: Max UI objects will only output param values to console when attribute is set to 1.
make: *** [native] Error 65
I've tried removing the build folder and running make again. But I get the same error code.
These look like the most relevant ones from the callback changes:
template named 'unordered_map' in namespace 'std'
typedef std::unordered_map<std::string, ck_callback> callback_map;
~~~~~^
~/chuck-max/source/projects/chuck_tilde/chuck_tilde.cpp:188:18: error:
member reference base type 'callback_map' (aka 'int') is not a structure or union
x->cb_map.emplace("demo", &cb_demo);
~~~~~~~~~^~~~~~~~
~/chuck-max/source/projects/chuck_tilde/chuck_tilde.cpp:573:19: error:
member reference base type 'callback_map' (aka 'int') is not a structure or union
if (!x->cb_map.count(s->s_name)) {
~~~~~~~~~^~~~~~
~/chuck-max/source/projects/chuck_tilde/chuck_tilde.cpp:577:17: error:
cannot initialize a variable of type 'ck_callback' (aka 'void (*)()') with an lvalue of type 'char'
ck_callback cb = x->cb_map[s->s_name];
^ ~~~~~~~~~~~~~~~~~~~~
~/chuck-max/source/projects/chuck_tilde/chuck_tilde.cpp:589:19: error:
member reference base type 'callback_map' (aka 'int') is not a structure or union
if (!x->cb_map.count(s->s_name)) {
~~~~~~~~~^~~~~~
~/chuck-max/source/projects/chuck_tilde/chuck_tilde.cpp:593:17: error:
cannot initialize a variable of type 'ck_callback' (aka 'void (*)()') with an lvalue of type 'char'
ck_callback cb = x->cb_map[s->s_name];
I also got these warnings about Gestalt is deprecated in RtAudio
chuck-max/source/projects/chuck/host_embed/RtAudio/RtAudio.cpp:453:16: warning:
'Gestalt' is deprecated: first deprecated in macOS 10.8 [-Wdeprecated-declarations]
if ((err = Gestalt(gestaltSystemVersion, &systemVersion)) != noErr) goto fail;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.