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 2 of 2 • 1, 2
Re: Automatic reloading of previously used settings
Returning to the original request: it seems to me that part(s) of the specification may be missing or ill-conceived (for VST plugins, that is - the concept is sound for an executable).
Let's say I create a new project and insert the plugin, thus loading the "last used" settings. I now tweak these settings to better suit the project and save it. When I reload the project, should I expect the "per project" settings to be honoured; or should the "last used" settings be loaded (which may have been changed during work on another project in the meantime)?
Likewise, when loading a project, the plugin's settings are normally restored from the project file; if we are honouring "per project" settings, should these now be saved as the "last used", or should that happen only if I subsequently change a setting, or only when I explicitly request it, or at shutdown, or not at all because this isn't a "new" plugin instance?
The possibilities multiply if there might be multiple instances in the same project, maybe some "tweaked" and some not. How do we define "last used" if we tweak more than one of them? If we're saving at shut-down, can we trust the host to close the instances in a reliable order?
If the "last used" settings are intended for a plugin which is some kind of "global" processing for an entire studio, for which every project will use a single instance with the same settings (matching between listening environments, say), this would be no problem - just reload the current settings from disk every time the plugin starts up, and save the settings either on every change or at shutdown (a situation for which DaveyBoy is doing a grand job.)
However, if "per project" settings are to be honoured, the plugin will need some way to tell whether it is already part of a project or is a freshly added instance, which there's no built-in way to read AFAIK (not an FS limitation, just how VST works)*. The only way that I can see would be by preset number, so that, say, preset one is always the "last used" and has the current data re-loaded whenever the plugin is started up - but you would have to be sure to switch to a different preset before making any "per project" tweaks.
I can see the attraction of auto-loading to ease project setup, but the cost may not be worth it if we have to change how presets typically work such that there are other inconveniences, even just the need to remember that this plugin is an exception to the rules (an open invitation for unfortunate accidents!)
(* EDIT: I think a "new instance" test may be possible in a roundabout way, but it depends on how triggers from the preset manager are handled at startup and project loading - I'll have a little tinker; maybe possible, maybe not).
Let's say I create a new project and insert the plugin, thus loading the "last used" settings. I now tweak these settings to better suit the project and save it. When I reload the project, should I expect the "per project" settings to be honoured; or should the "last used" settings be loaded (which may have been changed during work on another project in the meantime)?
Likewise, when loading a project, the plugin's settings are normally restored from the project file; if we are honouring "per project" settings, should these now be saved as the "last used", or should that happen only if I subsequently change a setting, or only when I explicitly request it, or at shutdown, or not at all because this isn't a "new" plugin instance?
The possibilities multiply if there might be multiple instances in the same project, maybe some "tweaked" and some not. How do we define "last used" if we tweak more than one of them? If we're saving at shut-down, can we trust the host to close the instances in a reliable order?
If the "last used" settings are intended for a plugin which is some kind of "global" processing for an entire studio, for which every project will use a single instance with the same settings (matching between listening environments, say), this would be no problem - just reload the current settings from disk every time the plugin starts up, and save the settings either on every change or at shutdown (a situation for which DaveyBoy is doing a grand job.)
However, if "per project" settings are to be honoured, the plugin will need some way to tell whether it is already part of a project or is a freshly added instance, which there's no built-in way to read AFAIK (not an FS limitation, just how VST works)*. The only way that I can see would be by preset number, so that, say, preset one is always the "last used" and has the current data re-loaded whenever the plugin is started up - but you would have to be sure to switch to a different preset before making any "per project" tweaks.
I can see the attraction of auto-loading to ease project setup, but the cost may not be worth it if we have to change how presets typically work such that there are other inconveniences, even just the need to remember that this plugin is an exception to the rules (an open invitation for unfortunate accidents!)
(* EDIT: I think a "new instance" test may be possible in a roundabout way, but it depends on how triggers from the preset manager are handled at startup and project loading - I'll have a little tinker; maybe possible, maybe not).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Automatic reloading of previously used settings
Re: the last edit in my previous post. A simple "new instance" test doesn't seem likely. In Reaper at least, the preset manager always produces "before/after preset change" triggers when a new instance is instantiated just the same as it does for one loaded with the project. A fiendish method using a "secret" VST parameter as a "modified" flag might have an outside chance - but I doubt that it would be very pretty, so I'll leave it at that!
As a keen Rubyist, I would love to be able to write code like...
For the currently loaded preset, this can be done already in principle (I've experimented with something similar for managing MIDI bindings). However, as you said earlier, it requires modifying every single control containing a VST preset parameter. If FS could natively expose the data structure as a Ruby object, that would be fantastic; but I suspect that it would be rather a lot of work for MyCo!
Spogg wrote:I think the only viable solution would be a new Ruby-based preset manager...
As a keen Rubyist, I would love to be able to write code like...
- Code: Select all
current_value = presets.current["my control"]
presets[2]["my control"] = 0.5
presets.save_bank(filename)
For the currently loaded preset, this can be done already in principle (I've experimented with something similar for managing MIDI bindings). However, as you said earlier, it requires modifying every single control containing a VST preset parameter. If FS could natively expose the data structure as a Ruby object, that would be fantastic; but I suspect that it would be rather a lot of work for MyCo!
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Automatic reloading of previously used settings
Thanks for looking at this Trog.
I have a kind of solution now which Johan is evaluating. If it’s a success I’ll post here. If not I’ll keep quiet!
Cheers
Spogg
I have a kind of solution now which Johan is evaluating. If it’s a success I’ll post here. If not I’ll keep quiet!
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
Spogg wrote:Thanks for looking at this Trog.
No problem; it's something that I've long had an interest in - I've always wanted an easy way to load "global" configuration data that integrates well with the preset system. That, and I only just realised that I've been confusing myself by conflating two threads about similar subjects! (see the other thread for further comment about VST host's handling of Preset Manager triggers).
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Automatic reloading of previously used settings
This was what I came up with.
The user will click the SAVE STATE button.
After opening the plugin in a new song, if the user wants the previously used settings, they would click the LAST STATE button.
The system saves the whole current bank to the file Banksave.txt which is located with the plugin or schematic. This contains all the current settings for the synth and is over-written every time SAVE STATE is clicked.
Cheers
Spogg
The user will click the SAVE STATE button.
After opening the plugin in a new song, if the user wants the previously used settings, they would click the LAST STATE button.
The system saves the whole current bank to the file Banksave.txt which is located with the plugin or schematic. This contains all the current settings for the synth and is over-written every time SAVE STATE is clicked.
Cheers
Spogg
- Attachments
-
- Save state and reload dev 3.fsm
- 3.06
- (230.71 KiB) Downloaded 837 times
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
G'day Spogg...nice hack...seems to work just like you said..well done...
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
Thanks Bill.
I was inspired by your original version to look into file-related prims. I thought Ruby would be the only way before.
There’s always something new to learn with FlowStone.
Those fires in Australia seem pretty damn awful mate. I hope you’re ok…
Cheers
Spogg
I was inspired by your original version to look into file-related prims. I thought Ruby would be the only way before.
There’s always something new to learn with FlowStone.
Those fires in Australia seem pretty damn awful mate. I hope you’re ok…
Cheers
Spogg
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Automatic reloading of previously used settings
Spogg wrote:Those fires in Australia seem pretty damn awful mate. I hope you’re ok…
We have a lot of history with fires, but these ones are pretty bad.
Some mornings you wake up and there's just smoke everywhere, really thick blankets of smoke.
Just like the fog on a deep winter morning, really thick fog, where you can't see nothing,
like a scene out of a spooky movie.
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
18 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: Google [Bot] and 56 guests