General

Making a self contained project

Started by auralsculpture on .

Sign in or create an account to join the conversation.

10 posts

Topic starter
I am using Composer Tools Pro (fantastic tool) and wanting to make some custom controllers for it. The tick is that such controllers need to be entirely self contained within their own container. I find that most of the things I want to do, e.g. custom midi etc have elements and scripts at "project level". The attached is not mine but illustrates the problem.
How can I get all the elements into a single container for import into one of Composer Tool's user spaces?

MIDI_chan_CustomMIDI.jzml
phase_change wrote:Click the container and then select create expression/script/custom midi
OK, so in the example, is there a simple way to "convert" the project to bring in into a container? It does not seem possible to cut and paste ...
I'm not sure I understand your question. Are you trying to take an existing project and move it into a container? If so, it's possible, but kind of a pain if you have a lot of objects in your template. The easiest way to do it imo is to use your mouse to select all the elements in the center panel of the editor, copy, make a container, and then paste inside a container. You'll have to reposition everything, but you can save time by using the numbers for x y w h in the objects panel in the lower left hand corner. You'll probably still have to make some minor adjustments to make up for the space the container is taking. After that, copy the scripts/custom midi/expressions and past into the container. The only part that is kind of annoying is repositioning everything, but still it shouldn't take more than a half hour to an hour to do.

MIDI_chan_CustomMIDI (1).jzml
Looking at it quickly there's a syntax error for the ctlout monitor. It should be Knob2.cltout(). I haven't used ctlout() before, but I'm p sure it's an array, so you would enter {Knob2.cltout()[0],Knob2.cltout()[1],Knob2.cltout()[2],Knob2.cltout()[3]}.

There's something weird going on here and I'm trying to sort it out, but will have to take a look later on today. The template, before I changed anything, was spamming values to the patch I use to monitor incoming midi in Max/MSP. Now I can't get Max/MSP to get any input from it at all. One other thing I'm sure you'll have to change is set Knob2.x target to none.
Well, it's working, but still spamming values. At one point, it wasn't spamming values continuously, but there were still lots of duplicate values coming through. I guess it doesn't really matter if there's a continuous stream of midi data. I honestly don't think this is the best way to do this. I think you'd be better off using a custom midi message. You need to take the x output from Knob2 and multiply by 127.

As for the MonitorCtlout goes, I can't get it to work the way you want it to. From playing around with it and a pads object, it looks like it just shows whether the message is on or off using 0 or 1 to represent the state. This doesn't really matter because ctlout() = Knob2.x*127, so I just put that in for the value with a precision of 0.

Also, sorry for messing up the layout. I was using an iPhone 6 to debug, so it got stretched weird when I converted it back to iPad layout.

littleknobwithcustommidi.jzml
littleknobedit.jzml