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
What if scenario - for presaved data file [txt]
4 posts
• Page 1 of 1
What if scenario - for presaved data file [txt]
Hello GANG!
Have a general programming question to ask. Would sure appreciate experienced insights
I have my very first VST app up and running .. YEAH !
Within this VST, I'm using a separate 'configuration' file that stores User entered data. This 'text' file is auto-loaded at the start. The User can modify values and then re-save the file. This is all working good. [BTW, I also use a Preset Manager prim [hidden] to collect all knobs names and things as a separate entity].
My question goes to this ... future compatibility. ?!?
What would happen if I needed to expand the amount of User data to be saved to this text file ??
For example:
With the current app, Users are working away using the data they've entered. At some future point, an idea comes up to add an addition 'user defined' section. This would mean expanding the data list that was previously saved.
OK ... I now know how to modify the program, adding any additional Arrays to add to the 'big list' ... the question is one of compatibility now.
What [if any] issue would be if I add more arrays to store? ... Will the 'original' data saved be messed up or produce an EOF error type of thing ???
Kinda thinking out loud on this potential issue, and would like to consider 'best options' before releasing out into the wild.
Thanks for any 'schooling' on this
Have a general programming question to ask. Would sure appreciate experienced insights
I have my very first VST app up and running .. YEAH !
Within this VST, I'm using a separate 'configuration' file that stores User entered data. This 'text' file is auto-loaded at the start. The User can modify values and then re-save the file. This is all working good. [BTW, I also use a Preset Manager prim [hidden] to collect all knobs names and things as a separate entity].
My question goes to this ... future compatibility. ?!?
What would happen if I needed to expand the amount of User data to be saved to this text file ??
For example:
With the current app, Users are working away using the data they've entered. At some future point, an idea comes up to add an addition 'user defined' section. This would mean expanding the data list that was previously saved.
OK ... I now know how to modify the program, adding any additional Arrays to add to the 'big list' ... the question is one of compatibility now.
What [if any] issue would be if I add more arrays to store? ... Will the 'original' data saved be messed up or produce an EOF error type of thing ???
Kinda thinking out loud on this potential issue, and would like to consider 'best options' before releasing out into the wild.
Thanks for any 'schooling' on this
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: What if scenario - for presaved data file [txt]
It depends on how you define your custom file from inside. If you preserve the structure (like the amount comma separated of columns), it will be fine. If you decide to change readings order, then I would add some markpoint, to filter lines according to first column mark for example.
I also use some custom files, that are read and saved independent from preset manager. Preset manager stores only the path to that file. If your file is corrupted, then modules that receive the information - will just get confused things (either texts different than expected, or things rounded to "acceptable values"; string = 0 for example).
I also use some custom files, that are read and saved independent from preset manager. Preset manager stores only the path to that file. If your file is corrupted, then modules that receive the information - will just get confused things (either texts different than expected, or things rounded to "acceptable values"; string = 0 for example).
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: What if scenario - for presaved data file [txt]
Hi tester !
Thanks for stopping in
From your description ... I basically have 3 indexed arrays(16). I've combined these into a single group [basically appending one after another, into a single stored file.
I then reversed the process on loading.
It seemed the reasonable thing to do at the time
I wouldn't be changing any of the data order ...
So I gather that IF [down the road] I need to add another array [or three] ... that I could 'tag' these onto the end of the other arrays, and save off this list.
The concern was with the LOADING.
If the original app was loading 3 arrays, and now the loading was calling on 5 arrays [for example] .... would those added arrays just remain blank? No error message ?
Of course, the new SAVE routine would have all 5 arrays, but the FIRST loading would only see 3 of the original array data. [does that make any sense]
Again ... just looking for a potential problem ... am I concerned over nothing ???
Thanks for stopping in
From your description ... I basically have 3 indexed arrays(16). I've combined these into a single group [basically appending one after another, into a single stored file.
I then reversed the process on loading.
It seemed the reasonable thing to do at the time
I wouldn't be changing any of the data order ...
So I gather that IF [down the road] I need to add another array [or three] ... that I could 'tag' these onto the end of the other arrays, and save off this list.
The concern was with the LOADING.
If the original app was loading 3 arrays, and now the loading was calling on 5 arrays [for example] .... would those added arrays just remain blank? No error message ?
Of course, the new SAVE routine would have all 5 arrays, but the FIRST loading would only see 3 of the original array data. [does that make any sense]
Again ... just looking for a potential problem ... am I concerned over nothing ???
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: What if scenario - for presaved data file [txt]
I wouldn't expect an error, rather lack of expected behavior/readings.
I haven't played with separate arrays yet that way (I'm storing single entries, and then reload them from a single array), but on your place - I would just add few more arrays and checked how it behaves. Or - make a dummy example (remove anything unimportant), to show on living schematic what you look for.
If adding more things like that is complicated, then I would look for a method of making it easy. Otherwise, when you decide to bring something new a year later - you may not remember what was all about.
I haven't played with separate arrays yet that way (I'm storing single entries, and then reload them from a single array), but on your place - I would just add few more arrays and checked how it behaves. Or - make a dummy example (remove anything unimportant), to show on living schematic what you look for.
If adding more things like that is complicated, then I would look for a method of making it easy. Otherwise, when you decide to bring something new a year later - you may not remember what was all about.
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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 81 guests