|
learning structureHi all, I am learning structure and cannot get hold on it. So I thought to drop you all a simple composition (attached). I wanted to trigger these numbers one after another on a signal. I am sure using structure, which I am trying to learn, would do this. Please help, if possible. Thanks a lot in advance Best |
Quickly, I'm sure better advice is coming. First you need to create the structure. The members of the structure would be your numbers. There are different ways to create a structure, likely choices would be Kineme Struct Maker (or Named Struct Maker) or Javascript. After you create the structure each member will have an index (integer) and/or key (name/string) associated with it. Then, for example, you could use your signal with a counter connected to the index port of a Structure Index Member patch to cycle through the numbers.
The following very simple javascript would output a structure:
If you paste this into a javascript patch, then connect the patch to a Structure Index Member patch and connect that to Image with String, that should get you going. Then you can hover over the js output port to see the structure.
Here's a sample composition. Basically what @jersmi described. Requires DataTools for the
Struct Maker
patch.And, come to think of it, if I was making this for myself I'd likely use an Interpolation patch instead of a Counter. This demo includes a macro to further break down the structure of words into structures of individual letters. Hope this helps.
Hi jersmi and jstrecker,
Thank you so much for providing me this learning opportunity, let me play with these.
best
Also, there's a built in Demultiplexer patch (go to setting, switch to Boolean, and ask for a reset value) for turning macros off/on if you wish. (Not to take away from the js learning...).