If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
undo/redo system
12 posts
• Page 1 of 2 • 1, 2
undo/redo system
a simple undo /redo system, you can choose how many undos are possible..
it is only for one parameter! so if you want to do it for more parameters, you also need to indentify the parameter via its preset name or a parameter id ..
it is only for one parameter! so if you want to do it for more parameters, you also need to indentify the parameter via its preset name or a parameter id ..
- Attachments
-
- undo_redo_002.fsm
- (6.48 KiB) Downloaded 1284 times
Last edited by Nubeat7 on Sun Oct 06, 2013 4:12 pm, edited 1 time in total.
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: undo/redo system
I would not use preset system, but something based on that ones.
- Attachments
-
- undoredo.fsm
- (1.67 KiB) Downloaded 1266 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: undo/redo system
thanks for this example tester, just one question, should there be a limit of undos? specially if i use strings, because using the stack prim means using the ram stack or? and when playing around 1 hour it really could fill up the stack when no limit...
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: undo/redo system
I guess the reasonable limit would be:
- around 16000 operations, because a lot of modules play around such size of max array
- 50-2000 in multi-multi-setup in very continuous use (tens of arrays used at once), because in some cases (array builder/splitterer) it is suggested to use not larger arrays that way (refreshing at each change); with my experiments with preset manager and string conversions - I would agree on that.
Each change of a single value would refresh the whole array.
In other words - I think you don't have to worry about that part too much.
1) Make a test design in which you feed the design with long arrays and see how it behaves.
2) Check how many clicks you can generalte manually within 1-3 hours.
Such sort of tests should help.
/edit:
Such sort of tests for example. If you use strings, you can create array of words, driven by such generator. You can add tick100 with randomizer on such array and trig counter, to see when it starts to slow down. And so on.
- around 16000 operations, because a lot of modules play around such size of max array
- 50-2000 in multi-multi-setup in very continuous use (tens of arrays used at once), because in some cases (array builder/splitterer) it is suggested to use not larger arrays that way (refreshing at each change); with my experiments with preset manager and string conversions - I would agree on that.
Each change of a single value would refresh the whole array.
In other words - I think you don't have to worry about that part too much.
1) Make a test design in which you feed the design with long arrays and see how it behaves.
2) Check how many clicks you can generalte manually within 1-3 hours.
Such sort of tests should help.
/edit:
Such sort of tests for example. If you use strings, you can create array of words, driven by such generator. You can add tick100 with randomizer on such array and trig counter, to see when it starts to slow down. And so on.
- Attachments
-
- undoredo-1.fsm
- (1.71 KiB) Downloaded 1241 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: undo/redo system
i like this technik with the stacks but how could i limit the undos to 10 or 100 steps?
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: undo/redo system
Why limit?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: undo/redo system
because i dont want to fill up the stack with no border, thats why i asked if it fills up the ram stack (it does or?) and i think 100 are enough, i think filling up an array endless is no good style and could end up in unwanted effects...
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: undo/redo system
Stack/queue sends outs the array size too. You could use it as a switch basis to pass values through undoredo or without it. But this will produce funny situation, because if you exceed the limit, then your final undo/redo step will be confusing to the user.
You are not connecting it in continuous automation-like style to knobs (use timer delay to block when knob is on the move).
I would check first what are the working borders of these queue/stack modules. Something tells me that these fellows may be surprising.
BTW, they are being reset per each session/restart of the plugin.
You are not connecting it in continuous automation-like style to knobs (use timer delay to block when knob is on the move).
I would check first what are the working borders of these queue/stack modules. Something tells me that these fellows may be surprising.
BTW, they are being reset per each session/restart of the plugin.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: undo/redo system
tester wrote:Stack/queue sends outs the array size too. You could use it as a switch basis to pass values through undoredo or without it. But this will produce funny situation, because if you exceed the limit, then your final undo/redo step will be confusing to the user.
thats why i `m using the queue because after the given size is reached i can pop out the oldest entry always when a new one is pushed in, but the redos are still handled wrong, what is done in a nice way with the stack...
tester wrote:You are not connecting it in continuous automation-like style to knobs (use timer delay to block when knob is on the move).
i wouldn`t activate while automation anyway... and thats just the enviroment around it, before i need a working solution
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: undo/redo system
after putting testers example into ruby it was easy to limit the undo steps..
latest version in the first post
latest version in the first post
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
12 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 58 guests