Code Monkey home page Code Monkey logo

chuck-max's People

Contributors

shakfu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

highharmonics2

chuck-max's Issues

Enable stereo output for chuck~

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.

** BUILD FAILED ** message leading to "chuck~: could not load due to incorrect architecture" error 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

Max patchers need file path changed for chuck~ objects

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.

Overview patch suggestion

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.

Improved Examples

This issue / topic is for a discussion on how to improve chuck-max's current examples.

A few ideas:

  • Should the current set of examples
    • incorporate any of the newer or more recent examples from the chuck project?
    • be replaced by a smaller set demonstrating chuck-max interaction?
  • Should unit-test-like examples be organized separately in a tests folder?
  • ...

add an attribute to the chuck~ object to make output of param values to console configurable

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 build failed - error 65 - callback errors

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.