Nov 22 2013 | 3:13 pm
    Hi, has anyone got any experience of using JUCE with MAX to make writing cross-platform externals for Windows and Mac easier? Does it reduce effort? Is it worth it etc?
    Any insight appreciated, thx

    • Nov 22 2013 | 7:19 pm
      In short, you can't use our version of Juce to build your externals. You need to use jgraphics as demonstrated in the SDK's examples. If you want to build externals with juice component you'll have to link it and include your Juce version.
    • Nov 22 2013 | 10:56 pm
      I was more interested in trying to use JUCE to build my own VST external.
    • Nov 25 2013 | 4:06 pm
      @Emmanuel, yes - wasn't thinking about using your version. What I was wondering was whether I can write all my stuff on Windows using Visual Studio, link in your libraries and a version of Juce and then just transport that onto a Mac and build the complete job lot on Xcode.
      Obv this is possible, but wanted to know whether anyone had tried this and had experience of it? On the surface this seems a good solution for developing cross-platform externals, but there doesn't seem to be any noise about it so maybe I've got something wrong...
    • Nov 25 2013 | 4:49 pm
      It's definitely possible to use juce to create your own gui components and insert them into Max. I do that a lot (developing many Ircam external objects, cross-platform).
      This is relatively easy. Basically, you render your juce component into a juce::Graphics (cf Component::paintEntireComponent) Then you retrieve the raw bitmap data from the graphics context (cf Image::BitmapData::getPixelPointer) You create a Max image surface from the bitmap data (cf jgraphics_image_surface_create_for_data) Then you paint the image surface into the patcher (cf jgraphics_image_surface_draw)
      This approach is not very efficient (you do all the job twice), but there are some alternatives.
      This works for VST too.
    • Nov 26 2013 | 1:16 am
      I have most of those IRCAM externals, they're quite excellent.
      Is there any chance you could provide a trivial working example for a vst?
    • Nov 26 2013 | 9:27 am
      I'm not looking to write gui components - I just want to be able to write some externals in C++ and build them for Windows and Mac in the easiest way from the same source code...
    • Nov 26 2013 | 1:01 pm
      @NICOLAS ---- Thanks so much for the reference. Much appreciated.