just seen the post about RebelTech/Cycling74 improving the owl/gen~ integration.

seems like a nice approach, and one that could be achieved also with Bela.

https://cycling74.com/articles/review-getting-to-know-the-owl-pedal-part-2

I'm assuming the core of this is creating a 'wrapper C++' template to surround the gen generated code, that is suitable for bela. Then some kind of max external(?) that handles the upload/compile of the code to bela.
I guess... really all this external needs to do is to interface to the existing bela makefile, which already contains code to upload/sync/compile?

one thing, that would be cool, (not sure owl does this), would be to have some kind of max interaction with the running patch e.g. for parameters,displaying patch... and perhaps setting up midi in some 'easy form'... these are things which make patching on Axoloti easier.. since you can easily debug things...

thoughts, is any work going on already with gen~/cycling ... or something that I could look into...

ah, cool, we have been here before 🙂

ok, if no one else is taking a look, I'll see if I can get some time over the weekend....

I'll also download the owl package, to see if I can figure out what they have been up to, I don't have an owl, but perhaps some things to learn...

giuliomoro changed the title to Max/msp gen~ integration .

is there a way I can remotely upload a file to bela?
I'm thinking, perhaps sending an HTTP post request with filename/data
basically communicating via the node.js running on bela?

similarly is there a http request (get?) to kick off a build on the current project?
@giuliomoro @LiamDonovan ?

basically, what I'm thinking, is from max I can send http (and xml http) requests,
so I could transfer the generated gen files this way, and trigger a build....

this would work cross platform without additional software installed, unlike using make etc, which would require windows users to install mingw or similar.

btw: @giuliomoro there is now a compile define to disable the fixdenorm, and to use floats rather than doubles for functions.... though will still need to use single precision flag for constants, but that's not a big issue.

    thetechnobear is there a way I can remotely upload a file to bela?
    I'm thinking, perhaps sending an HTTP post request with filename/data
    basically communicating via the node.js running on bela?

    similarly is there a http request (get?) to kick off a build on the current project?

    well... this is exactly what we'd need for this.

    There is an undocumented-unsafe-do-not-use "GET" request supported to build a project in the IDE, hidden in the dev-workshop branch. This was quick-and-dirty-implemented in order to allow rebuild of projects after monitoring for local file changes, so it was very useful when running a Bela workshop with people using Pd to edit their patches, then hitting save and get them uploaded and restarted on the board.

    See in particular the two commits in dev-ideget which implement the IDE-side changes and this for an example of using it from a script with a curl GET request.

    The reason why we have not rolled these into master or dev is that they are hack-ish solutions, which would likely lead to maintenance issues in the future. Basically we need to re-do this with more time and in a more structured way. Feel free to use them for your purpose and perhaps draft the specs of what the API looks like, so we have something to start from when doing it properly.

    These features were paired up with a drag-and-drop automator script for Mac OSX, which in turn calls the Bela/scripts/build_project.sh script with the appropriate parameters. This way, users would drag the folder containing the Bela project on top of the automator icon and then start editing it. It worked great.

    The "unsafe" part of all of this is that any project on the board with that same name would get overwritten.