Architect : Writing the output of a numeric table into a data object
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
Hi !
Here's an example preset to illustrate the (very simple ?) task I'd like to achieve.
I've succeeded in dumping a data array into a numeric table object. Which allows to store patterns, and to load them at will (as presented in the preset).
I'd like to draw a sequence with the numeric table, and to store it as data array. Basically, I'd love to do the opposite of my current example preset. For further editing, to store and recall patterns etc.
Pretty sure it's easy, though it's still pretty new to me.
Cheers !
n.
Here's an example preset to illustrate the (very simple ?) task I'd like to achieve.
I've succeeded in dumping a data array into a numeric table object. Which allows to store patterns, and to load them at will (as presented in the preset).
I'd like to draw a sequence with the numeric table, and to store it as data array. Basically, I'd love to do the opposite of my current example preset. For further editing, to store and recall patterns etc.
Pretty sure it's easy, though it's still pretty new to me.
Cheers !
n.
You do not have the required permissions to view the files attached to this post.
-
- KVRAF
- 2701 posts since 25 Aug, 2003 from Bournemouth, UK
I'd probably use the [memory] modules, along with [store] and [load]. Any [store] or [load] modules that connect to the same [memory] all share access to that same memory block. You can save whatever you want in the memory. When I get around to writing proper preset saving macros, they'll probably work this way, with some reflection capabilities to make it easier to use in your own creations.
This example only stores a single array in the memory, but you could use an array of array if you wanted to save multiple presets.
I've attached the example below. If you want me to add in multiple preset support, then just ask.
This example only stores a single array in the memory, but you could use an array of array if you wanted to save multiple presets.
I've attached the example below. If you want me to add in multiple preset support, then just ask.
You do not have the required permissions to view the files attached to this post.
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
Thank you so much Colin, I want to learn Architect and your help is invaluable. I think I'll use that fragment pretty often
I realise I can print the values of a numeric table then copy/paste the result into a data object aftewerwards. Is there a way to directly print to a data object ?
If you don't mind I'd love to have such fragments. Many things to learn once I've dissected itcolin@loomer wrote: ↑Mon Oct 04, 2021 10:52 am This example only stores a single array in the memory, but you could use an array of array if you wanted to save multiple presets. [...] If you want me to add in multiple preset support, then just ask.
I realise I can print the values of a numeric table then copy/paste the result into a data object aftewerwards. Is there a way to directly print to a data object ?
-
- KVRAF
- 2701 posts since 25 Aug, 2003 from Bournemouth, UK
No problem, I'll let you know when I have something along these lines.nilhartman wrote: ↑Mon Oct 04, 2021 12:10 pm If you don't mind I'd love to have such fragments. Many things to learn once I've dissected it
Unfortunately, not into a [data] object. Because [data] objects are really for constant data, the only way to update them currently is through the user interface. Let me think about it a while, and I'll see if I can come up with a workaround. I'm beginning to get a picture of how you'd want all these parts to work together to create snapshots of a patch's state.I realise I can print the values of a numeric table then copy/paste the result into a data object aftewerwards. Is there a way to directly print to a data object ?
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
-
- KVRAF
- 2701 posts since 25 Aug, 2003 from Bournemouth, UK
Not a dumb question at all, but a very sensible one. You also need to ensure that the parent macro is shown in the panel. And if the macro is in a macro, its parent also need to be visible, and so on. Essentially, ALL the parents of the components need to be visible.
I do admit that can be a bit confusing, which is why in that screenshot (which is from the 0.11 build), you can see the component navigator on the right-hand. This makes it much easier to create and manage UIs.
I do admit that can be a bit confusing, which is why in that screenshot (which is from the 0.11 build), you can see the component navigator on the right-hand. This makes it much easier to create and manage UIs.
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
So, I've repatched the above fragment, and learnt quite a few things, thanks ! The only caveat is I've yet to find a way to make the storage work while transport is on (if connecting a numeric table's higlighted step and read to any sort of clock).
I'm also trying to find the most efficient way to initialize all steps of a numeric table (and I guess, a boolean table). Simplest way I've found is to send a [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] data array to its write entry.
I'm also trying to find the most efficient way to initialize all steps of a numeric table (and I guess, a boolean table). Simplest way I've found is to send a [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] data array to its write entry.
-
- KVRAF
- 2701 posts since 25 Aug, 2003 from Bournemouth, UK
I think that currently is the most efficient way of doing this, but it does seem less than optimal. I'll look into adding a specific `clear` inlet, or something along those lines.nilhartman wrote: ↑Sun Oct 17, 2021 5:16 pm I'm also trying to find the most efficient way to initialize all steps of a numeric table (and I guess, a boolean table). Simplest way I've found is to send a [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] data array to its write entry.
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.
-
- KVRian
- Topic Starter
- 680 posts since 15 Feb, 2012 from France
Colin, I"m having a hard time inserting this macro into a full-fleged sequencer. If I connect the output of a metronome > modulo to "play" the numeric table, then the whole memory part of the fragment doesn't work.
I almost made it work using a toggle calling a crossfader but no luck.
Any pointers ? Thanks !
I almost made it work using a toggle calling a crossfader but no luck.
Any pointers ? Thanks !
colin@loomer wrote: ↑Mon Oct 04, 2021 10:52 am I'd probably use the [memory] modules, along with [store] and [load]. Any [store] or [load] modules that connect to the same [memory] all share access to that same memory block. You can save whatever you want in the memory. When I get around to writing proper preset saving macros, they'll probably work this way, with some reflection capabilities to make it easier to use in your own creations.
This example only stores a single array in the memory, but you could use an array of array if you wanted to save multiple presets.
I've attached the example below. If you want me to add in multiple preset support, then just ask.
-
- KVRAF
- 2701 posts since 25 Aug, 2003 from Bournemouth, UK
Not sure without seeing how you've connected it up. Could you show me a screenshot of how it's wired? Thanks.nilhartman wrote: ↑Sun Nov 14, 2021 4:55 pmIf I connect the output of a metronome > modulo to "play" the numeric table, then the whole memory part of the fragment doesn't work.
...
Any pointers ? Thanks !
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.