i try to build part of an interface with drawnumber and drawpolygon. my question: is it possible to drag the number with the click from a drawpolygon with the same pointer? because now, unlike a numberbox, i can only change the value if i click directly on the number. and i assume its not possible to change the drawnumber size? @weightless when clicking a square the square turns red, before the current step hits a red square the direction changes, not perfect yet but a first try drawnumber_test.pd
-
drawnumber
-
@Jona That's very nice. I suppose the advantage of the drawnumber is that you can create as many as you want without using dynamic patching, and it's also easier to retrive the value from the struct. But this is a very elegant solution to go around the clumsiness.
-
@jona Hi, I have looked at your patch and revised $0-cell to what I understand you are trying to create, its not 100% because there is a dead spot in the horizontal middle (that I think can be easily be fixed with another vertical drawpolygon in the back colour in the centre of the box).
This seems to work by constraining each vertex to a fixed position in the second set of brackets where each side of the colon is the same (eg (0:19)(19:19), and creates an 8x8 pixel hotspot around the vertex, that leave a 3 pixel dead spot in the middle. The first brackets contain the mouse constraints of the box. -
@jona I forgot to mention I really like the idea
-
@balwyn thanks, clicking somewhere in the square for changing the number with the mouse does work with your version nicely. what i like about the first version is that you can type the number if its selected. i tried to modify your version with keyname (also used list store the first time for that), but theres always some problem with typing this way if you want to see the change emmidiately. this kind of works, you first need to type the number and if you click one or more squares the new number gets inserted: drawnumber_test-revised_b.pd
-
i found this @boonier said:
I did this once - created an 8 x 8 matrix of toggles with dynamically generated sends/receives
Is this what sir requires?
from this thread https://forum.pdpatchrepo.info/topic/1657/dynamic-object-allocation/2
and ask myself: is it possible to dynamically create (number)abstractions instead of toggles like in the example (with the advantage of changing the numbersize compared to drawnumber)? -
basically it works, but i would need a different way for creating send and receives (the number2 object inside the abstraction needs to get the dynamic send and receive): dynamic_canvasnumber.zip
-
@Jona like this: dynamic_canvasnumber.zip ?
Unfortunately i had to put in a delay after the loadbang or pd would crash...i updated it so one can read out the number boxes and disconnected the loadbang in [pd create] just in case...
-
@ingox thanks, thats nice i was just trying the same dynamic_canvasnumber_c.zip and here i tried to combine both versions dynamiccanvasnumber_d.zip
-
@ingox i built a little interface. the idea was to have kind of a pattern sequencer, but could be useful for other things too. dynamiccanvasnumber_f.zip