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
Automatic reloading of previously used settings
18 posts
• Page 1 of 2 • 1, 2
Automatic reloading of previously used settings
Hello guys!
Our good friend Johan (djbrynte) asked me to help with something he wanted, but I confess it’s beyond me. Because he’s not confident with English, I offered to post here on his behalf.
If it’s actually possible, I feel convinced it would need a significant Ruby solution far beyond my basic grasp. So maybe someone here could help.
What he wants is a system whereby he would load a plugin for a new song, but the plugin would automatically restore all the settings when it was last used (in another song).
I believe this would require the creation of something like an ini file which was written to when any settings were changed. Then, when the plugin was next used, it would read the ini file and restore the last-used bank of presets.
Of course one could save a preset bank and reload that bank for a new song, but he would like it to be automatic.
We would really appreciate comments, ideas and, of course, solutions. If it’s NOT possible that’s also a valid response!
Cheers
Spogg
Our good friend Johan (djbrynte) asked me to help with something he wanted, but I confess it’s beyond me. Because he’s not confident with English, I offered to post here on his behalf.
If it’s actually possible, I feel convinced it would need a significant Ruby solution far beyond my basic grasp. So maybe someone here could help.
What he wants is a system whereby he would load a plugin for a new song, but the plugin would automatically restore all the settings when it was last used (in another song).
I believe this would require the creation of something like an ini file which was written to when any settings were changed. Then, when the plugin was next used, it would read the ini file and restore the last-used bank of presets.
Of course one could save a preset bank and reload that bank for a new song, but he would like it to be automatic.
We would really appreciate comments, ideas and, of course, solutions. If it’s NOT possible that’s also a valid response!
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
Thanks spogg. Im trying to use the synth to remember last used samples from some Maps. For example if i use a Map with samples i want so next time u use the plugin it remember last loaded samples;)
- djbrynte
- Posts: 613
- Joined: Mon Jun 22, 2009 10:51 am
Re: Automatic reloading of previously used settings
Spogg wrote: the plugin would automatically restore all the settings when it was last used
My custom Preset manager can do this, although I'm not sure if this is what you after.
Scroll down the thread and select version 3.
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=2294
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Automatic reloading of previously used settings
I checked this out Bill, thanks.
I made a VSTi and changed preset 1 name and settings and saved the song.
Then I started a new song (in Reaper) and loaded the VSTi into the new song.
The preset name had been remembered correctly from the previous song, but not the settings for that preset. The text file created alongside the plugin only listed the program names.
Maybe I misunderstood or did something wrong.
One issue I can see is where you have more than 1 plugin instance in a song. When the song is re-opened after saving, wouldn’t all the same VSTi plugins default to that saved file?
Cheers
Spogg
I made a VSTi and changed preset 1 name and settings and saved the song.
Then I started a new song (in Reaper) and loaded the VSTi into the new song.
The preset name had been remembered correctly from the previous song, but not the settings for that preset. The text file created alongside the plugin only listed the program names.
Maybe I misunderstood or did something wrong.
One issue I can see is where you have more than 1 plugin instance in a song. When the song is re-opened after saving, wouldn’t all the same VSTi plugins default to that saved file?
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
Hi Guys
If it helps here is a very simplified version of how I save and load my settings using Ruby.
Change the values in the top Ruby edit and save.
An 'ini' file is created in the directory where the schematic is saved
Load the file in the lower ruby edit to see the changes.
To automate in your schematic:
Save to file at the same time as you change settings
Load using an afterload prim.
Maybe someone with more experience than me could develop this into a Ruby based Preset Manager.... Spogg?
If it helps here is a very simplified version of how I save and load my settings using Ruby.
Change the values in the top Ruby edit and save.
An 'ini' file is created in the directory where the schematic is saved
Load the file in the lower ruby edit to see the changes.
To automate in your schematic:
Save to file at the same time as you change settings
Load using an afterload prim.
Maybe someone with more experience than me could develop this into a Ruby based Preset Manager.... Spogg?
-
DaveyBoy - Posts: 131
- Joined: Wed May 11, 2016 9:18 pm
- Location: Leeds UK
Re: Automatic reloading of previously used settings
I had to do something for a project design I was working on ... it was a MIDI Controller for a series of RAM heavy plugins [numerous] that seemed to cause reload of settings to mess up.
One of the GURU's here pointed me to a File Management system call MARSHAL.
It has been quite awhile back ... remembering details on this is not fresh, but I remember that the 'technique' worked great.
One of the GURU's here pointed me to a File Management system call MARSHAL.
It has been quite awhile back ... remembering details on this is not fresh, but I remember that the 'technique' worked great.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Automatic reloading of previously used settings
RJHollins wrote: File Management system call MARSHAL.
Here's a module that saves and loads ruby using Marshal. It might help...
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Automatic reloading of previously used settings
Nice .... thanks BillV
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Automatic reloading of previously used settings
Thanks for your input guys.
@DaveyBoy
This is clever and works well, but it would mean the whole current preset bank data would have to be dynamically updated and somehow reloaded into the FS preset manager to achieve what Johan was hoping for. I wouldn’t know where to start unfortunately, as my Ruby skills are still too basic. Plus, I don’t think a complete preset bank could be “forced” into the preset manager without dialogue.
@billv
Similar comments apply to your Ruby save and load. In this case the whole preset bank would have to be converted dynamically into a Ruby object, saved, and when re-loaded converted back to a preset bank that was automatically somehow forced back into the FS preset Manager.
I think the only viable solution would be a new Ruby-based preset manager which could handle all the parameters of a synth and, while that would be really nice, is way beyond me. It would also mean changing every control to interact with the new manager, since the “P” signal is proprietary in FlowStone so couldn’t be utilised.
At this point I’m thinking the “solution” for Johan is simply to ask his users to save the preset bank and reload it if they want to re-use the last settings. I believe this process can’t be automated with the FS Preset manager.
Cheers
Spogg
@DaveyBoy
This is clever and works well, but it would mean the whole current preset bank data would have to be dynamically updated and somehow reloaded into the FS preset manager to achieve what Johan was hoping for. I wouldn’t know where to start unfortunately, as my Ruby skills are still too basic. Plus, I don’t think a complete preset bank could be “forced” into the preset manager without dialogue.
@billv
Similar comments apply to your Ruby save and load. In this case the whole preset bank would have to be converted dynamically into a Ruby object, saved, and when re-loaded converted back to a preset bank that was automatically somehow forced back into the FS preset Manager.
I think the only viable solution would be a new Ruby-based preset manager which could handle all the parameters of a synth and, while that would be really nice, is way beyond me. It would also mean changing every control to interact with the new manager, since the “P” signal is proprietary in FlowStone so couldn’t be utilised.
At this point I’m thinking the “solution” for Johan is simply to ask his users to save the preset bank and reload it if they want to re-use the last settings. I believe this process can’t be automated with the FS Preset manager.
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
Here's a little auto-load & save demo that I've thrown together:
I've modified the knobs to get it to work but the same principle can be applied to other types of controls or values.
ini file is created with defaults on first use and then updated on a mouse left up event (if moving a knob).
It works with standalone exes but I haven't tested with vst.
If anyone is interested I will endeavour to get it to work in parallel with the preset manager system . . . let me know
Have fun
Edit: Please re-download . . small error in knobs corrected
I've modified the knobs to get it to work but the same principle can be applied to other types of controls or values.
ini file is created with defaults on first use and then updated on a mouse left up event (if moving a knob).
It works with standalone exes but I haven't tested with vst.
If anyone is interested I will endeavour to get it to work in parallel with the preset manager system . . . let me know
Have fun
Edit: Please re-download . . small error in knobs corrected
Last edited by DaveyBoy on Wed Dec 04, 2019 10:21 pm, edited 2 times in total.
-
DaveyBoy - Posts: 131
- Joined: Wed May 11, 2016 9:18 pm
- Location: Leeds UK
18 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 21 guests