tutorial 3 question

Nov 6, 2010 at 2:11am

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!)

Robbie

#53114
Nov 6, 2010 at 2:20am

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.

#191000
Nov 6, 2010 at 6:18am

‘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. –
#191001
Nov 6, 2010 at 12:58pm

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
Robbie

#191002
Nov 6, 2010 at 1:09pm

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.

#191003
Nov 6, 2010 at 4:05pm

Yes, I think (hope) the example I sent will answer some of your questions. Make sure you include the lines that say

– Pasted Max Patch, click to expand. –

when you copy and then use the “New From Clipboard” command in the File menu of Max.

#191004
Nov 6, 2010 at 4:18pm

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.

Best
Robbie

#191005

You must be logged in to reply to this topic.