Newbie or Max doing something strange?
If you’ve got some time check this out, and tell me what I’m doing wrong it would be much appreciated. Its super simple but I cant figure out why this simple patch is behaving this way.
Not only does the if object seem to be spitting out some values inverted but the numbers coming out of the outlets of the if object are rounded off as well. Not to concerned with the cc getting all the way from 0-127 but why the hell are cc numbers 18+ inverted?
By 18+ do you mean from 18 seconds in in the video?
I think its a left-to-right calculation order problem. Try putting a [swap] between your [ctlin] outputs that go into your [if] object and see what happens.
Also a good opportunity to learn how to use the debugger– it would illustrate the problem better than I can explain it :)
The issue is that the outlets of the ctlin are fired in right to left order, so when the cc number (middle) fires the cc value (left) is not yet set to it’s proper value. With rotaries you would not get right to 127, with a toggle the values are inverted.
This version has a little timing trick, it waits for the cc value before sending the cc number.
----------begin_max5_patcher---------- 480.3ocyW9saBBCEF+ZLYuCmz3kLBsXQbY6hsWiEyBBUsKPwH0L2L6cekVw4 ePkLcH23I9cpG+7W64Pc0ccrPixVxxQvCvqfk0JkhkVqPwpTvBkFtLJILWuP TJKOObBCYuNojsTpSf82nksPlvjxOmwL0Fgfgk4FmIj47uzYvtNtk5yBkQS4 hIuMmEIMeLRepJOXdkVrV.663tasDgo5ZgddNOLAdIKIdiODKR4BkSzNmrkp wfZYboLOVWlrQueOAizheeWmhnJXWa9np9H17iiBtPhrAznPwjiQErCc.EGz +Dnwi5owgWvurg3dZ1TMVvUiEREXA611wBAGXvheChkfKfJrOTU3vdI9XnKG CO9DD.xoLAzcLAXI4LP4ERw6NQul8eteaM8bMAerNDbs63phgz19IqdDRAM7 oMY+lWqeLjWeGphGCZRpz652uEIS3hyBqsBWvHp.yj69+SHyqJj05auHlYN9 tM4AI+8oh4qCoNKbvshzdtHwdrJOaw7nRVr9tC1vVFOlkK4hPIOSr0pn6tno 73XlN+l4yo73YYJ3t1HvviuCVaugo0wa6+KnIMGtVlC2RIG8l3sZYsfaxdZs 1RUWq7lcdibVy40haFTOJr8NFo3+CdglqPPE9A.OQnCu -----------end_max5_patcher-----------
Terry – I actually meant from cc number 18. Your absolutely right, I think i’ll dive into learning about the debugger soon. Seems helpful. ;)
Xandu – Awesome! Thanks. This is super helpful. Bein new to max, not completely understanding the right to left timing issues. I guess i gotta learn that next before I make any more patches. Ur the bomb, thanks again!
Forums > Max For Live