99
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
15 JANUARY 2021 | 15 JANUARY 2021 | ||
In order | 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 | 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]] | |||
edits