When I bang switch~ and write to an array using tabsend~, the array never redraws itself unless I click on the array (thereby changing one sample of data) or if I read and rewrite one sample as shown below. Is there a better way?
redrawArray.pd
-
ask array to redraw itself?
-
@jameslo The only message I can find that updates without changing the data......
David.
-
@whale-av Huh. I wouldn't have thunk. Is an array something that's embedded in a canvas? I would've expected canvas to have a redraw method. Or maybe I'm confusing canvas with graph-on-parent. I find all that stuff confusing.
-
@jameslo you can try
[array-redraw]
from my library if you need it https://github.com/sebshader/shadylib
(hopefully a new release coming soon.. in the meantime you have to compile yourself) -
@seb-harmonik.ar yeah, I saw that garray_redraw() function when I was studying the ipoke~ source, and then tried to see if I could see in Pd source what array message handlers it was called by, but it seemed like the array manipulation code wasn't all in one place (correct me if I'm wrong, I didn't look so hard). Looking through your source code really makes me want to learn how to write externals. I gotta finish my music projects first though.
-
@seb-harmonik.ar I couldn't find [array-redraw] in shadylib, maybe I looked in the wrong place but the redraw.pd from David @whale-av works for me so far
-
@jameslo can you use tabwrite~ and tabsend~
-
apologies @jameslo I wasn't paying attention and replied to a 3 year old post
-
@Balwyn Thanks for your code snippet for tabwrite~ and tabsend~. It is just what I need to get on top of the [array-redraw] dilemma