tutorial 3 question
Jitter Tutorial 3 states that I can send a message box to jit.op but I am having trouble finding the correct format. I looked in the reference too but am not seeing it somehow.
after the [jit.op @op + @val 134] example,
it states that I could send the message [op] followed by relevant mathematical symbols etc to jit.op
I have tried sending these messages and variations
(op + @val 80)
(op + 80)
etc and don’t get a change in the graphic window
or any error in the max window.
I also tried these as the target object
[jit.op] rather than [jit.op @op] and also [jit.op @op +]
I know I am missing something here.
thanks for any insight
I am attempting to learn Max4Live from PD
(and am new at that too!)
well…. it seems if I send just a number message into the right or left inlet of [jit.op @op +] and bang it, it works. I thought the tutorial said to send the message formatted with op and the math equation into the left inlet…..at least it’s working but it doesn’t follow really. thanks for any insight on this.
‘op’ is an attribute of the jit.op object. (see the jitter tutorial chapter called "Attributes" if you’re not sure what that means.) the ‘op’ attribute determines what mathematical operation the object will use. you only need to send an ‘op’ message once to set the operator. for example the message ‘op +’ will cause the object to do addition, whereas the message ‘op *’ will cause it to do multiplication.
then whatever you send into the right inlet — whether a single number or a matrix — will be treated as the right operand of the operation applied to the matrix that comes in the left inlet. you can also specify a scalar for the right operand with a ‘val’ message to set the ‘val’ attribute. for example, ‘op *’ sets the operation to multiplication, and ‘val 0.5’ sets the object to multiply the input by 0.5.
there’s a LOT of operations it can do. check the help file for a list.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 971.3oc0Xt0aaBCEG+4jOEVnIMosrJrwPI6s84Xppxg3TbEXi.SS6p5284KP JoIgaMMk9BoXbs+yuyEeN777YNqDORKb.+F7WvrYOOe1LyP5AlUc+LmTxiQI jByzb1jH3koNKrOJiHihY76tMmFIsKCFGdk6B.75.8O9t5qH0UvMK1sbrT0R nlMT8P6fp0TTJSnRytfpFks1rmhU2+KLtdO2H3RNIkZdzexYjj5mXWA4SYTq TzhkHcV.bVQ324rSA5Unf8OyrfncZHkwqElaSgw305BpG6k4y0WVbt.lmmgT PL97BLzWTfEIRSobYsFkzGk1WpbPAkuFv3.BXarHgBRIxb1i.wFvCjjRZAPJ .kET.Q8WwTPN6tXIPjQyIp+uMpEfRhhAQzjcDHgwoQhRtrIEOhQx2ZcfAFma DxXx7vMrR6aPbOzf3EzsAIKmpdGkDISv2a2g1XJO8OtUW5x77tsDqJkRAuEW WeTyXczgtt6CE3Qfx0mzWbeWvSQFjeaj4ci.NcqRlG3KdOSdEWvTtZXPTLIW 8iW2bB4ZDHzMrCPcjvYuvQDNqj4s1XDcLcug4xquntYsDveeYgrJpWpC7eMp 1rkCMJF6gZjpco6HBh861Lbo4TAUdX5t1Nvw0lKqJ3EA6va7XX.MAwPFMhs4 ICJLPP6c2BFfKsNC9nwiA2OOLjRKJH2QOLpIC7iVdqQ9AMNHSEO3qtIbHorQ AiHSjyfxhfNu73mswCax3ZdXiLFFOveo3gpRIv2f8ndTKQvdifHnIIQNUhCh DrgkWXShpzuhDf0BU0jbgTyFvJZDQWV4VJHl7.k+cI3Ip9bI0wPxBUxFf5nJ MWIR0YspplTsTcrSl7ZIYjsBJXE5MPGGNjbQvvoWJYkhyJsbstLjSRfPyow3 pJjbGdxXXvmG.5rR4pRjwtisPYHpmEJ+gYL2vRRZXJAaYxXEDA5pMDofHQhH unsLsU1VqK9xkivB6NgsvHD90WuwXgCuTF3V5ooxz1qlZpbou1V9jg0Crmlf yXKMeT18ySCfUNG3w2+m+WaVIx51SBY6NCsDNb7fuv3AcV6eiZ6eiVTlH6lS d1rKgdingkOuDnZufrsL0YEa6gqPfIdwVSPvf7DfmtBy8rxm7ExLCSgau4Ci ajqd78eKKDk4Q06Q8mpF7phWSKjLtsazFSRMG3t4DyVulxaZzRYqyDLtrRCf aNJx6sjP8PRn8mzGslzeQqIFlzeMxNkzaz8GslPndhoKnjBldRBO4jzzCRv9 3JEbQkTexA3eQUj+jiQ8w0F9NTj5lWl+e3CRIvF -----------end_max5_patcher-----------
Thanks for your post Christopher. I reread the attributes tutorial etc.
I guess I am not formatting either the jit.op correctly or the message correctly.I am not finding instructions on how to correct this issue.
I try to follow the example and I get nothing working.
can you tell me the correct format for the jit.op object if I am sending it math messages?
do I need the @op after the object name or the math function listed within the object? or just jip.op and then send in the message?
and how are you formatting the message to send? do you include @op, op or the mathematical function? or just the number ?
apologies as this is tedious but it seems important if I want to trigger messages to jit.op and I am nowhere after the tutorials. when I send the + 180 to the jit.op @op + it does change the window color to grey(my other messages have no effect) but I get an error
jit.op: doesn’t understand "+"
thanks again for your help
I’m having trouble opening the patch you sent. Still working on it- that may clear everything up. I used "new from clipboard" thinking it would uncompress but am not having luck yet. I’ll keep trying. Thanks again.
Yes, I think (hope) the example I sent will answer some of your questions. Make sure you include the lines that say
----------begin_max5_patcher---------- and -----------end_max5_patcher-----------
when you copy and then use the "New From Clipboard" command in the File menu of Max.
how did you know? yes I somehow did NOT copy between the pertinent begin and start patch!!
thank you very much Christopher. This looks very helpful and already i see the format info I was seeking in your patch.
Forums > Jitter