Page 1 of 1

Making a self contained project

Posted: 16 Nov 2016 21:35
by auralsculpture
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?

Re: Making a self contained project

Posted: 16 Nov 2016 23:27
by phase_change
Click the container and then select create expression/script/custom midi

Re: Making a self contained project

Posted: 17 Nov 2016 21:30
by auralsculpture
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 ...

Re: Making a self contained project

Posted: 18 Nov 2016 03:15
by phase_change
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.

Re: Making a self contained project

Posted: 18 Nov 2016 05:30
by auralsculpture
Thats great I understand it now, I had misinterpreted Container to mean Interface, yes its a fiddly but I think I can make it work for my project.

thanks for your help

Colin

Re: Making a self contained project

Posted: 18 Nov 2016 05:56
by phase_change
Glad to help, my man

Scott

Re: Making a self contained project

Posted: 20 Nov 2016 21:25
by auralsculpture
I have inverted the "knob controls fader" idea so the fader sets the CC number. However the knob also sends the set CC value from the know (0).

I discovered this when sending the output to a MIDI monitor in Plague - haven't figured out how to monitor the clout values directly yet ...

Re: Making a self contained project

Posted: 21 Nov 2016 21:10
by phase_change
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.

Re: Making a self contained project

Posted: 22 Nov 2016 05:08
by phase_change
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.

Re: Making a self contained project

Posted: 22 Nov 2016 06:04
by auralsculpture
custom midi did the trick for what I need, thanks. I even understand it too, which is a bonus ;-)

Colin