GMU:I and my Max/Elizabeth McTernan: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 1: Line 1:
15 JANUARY 2021
15 JANUARY 2021


In order to be able to shift the starting point of my counter over by one pixel every other round, I thought to define an if/then statement by even and odd numbers (that is, integers that are divisible by 2 versus those that are not). The patch successfully gives of respective bangs for evens and odds, but the addition of +1 at the bottom still doesn't work when applied to my bigger project patch, and I don't know why yet.  
The starting point of my counter is also recognizable as the starting point of my line segments moving from left to right. In order to shift this starting point over by one pixel every other round, so that the layering lines are offset, I had the idea to define an if/then statement by even and odd numbers (that is, integers that are divisible by 2 versus those that are not), assign them the numbers 1 and 2, and then select 1 for a certain operation and 2 for another. The patch successfully gives off respective bangs for evens and odds, and even appears to apply the addition object when triggered, but the addition of +1 and -1 at the bottom still doesn't work when applied to my bigger project patch, and I don't know why yet.  


Here is the smaller focuses patch for evens and odds:
Here is the smaller patch focused on selecting evens and odds:


[[:File:210115_odd&even.maxpat]]
And here is my current main patch (using the number slider rather than my sensor data, so you can use it without the sensor), where the line does not appear to be offset every other round as I intended. Maybe it's simply not connected up properly?
[[:File:210115_ultrasonic_drawing.maxpat]]