Save last sendet data (and send it on boot)
3 posters
Page 1 of 1
Save last sendet data (and send it on boot)
I have a issue.
If i change a value in the dial. It works all fine. But if i reboot my pc the value goes to 0.
It would be nice if the plugin saves the state and send it on boot (perhaps with a delay option).
If i change a value in the dial. It works all fine. But if i reboot my pc the value goes to 0.
It would be nice if the plugin saves the state and send it on boot (perhaps with a delay option).
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
That sounds very dangerous to me.
And the plugin doesn't know if it is loaded due to a reboot or a profile/ page swap (or created/moved in the editor), so the logic to keep track of such a thing would be a nightmare.
And the plugin doesn't know if it is loaded due to a reboot or a profile/ page swap (or created/moved in the editor), so the logic to keep track of such a thing would be a nightmare.
Re: Save last sendet data (and send it on boot)
Than just keep the last state for itself (without sending it). For me it's every time annoying.
I change a value. My plugin host saves the value (also after reboot). After restarting my computer the midi plugin just shows the initial data (0). If I than move the dial I need to adjust completely to the value that I want. If it saves the value, after rebooting, it should the same as the plugin host.
(Alternative solution would be to never shutdown the pc, but that's also bad xD)
I change a value. My plugin host saves the value (also after reboot). After restarting my computer the midi plugin just shows the initial data (0). If I than move the dial I need to adjust completely to the value that I want. If it saves the value, after rebooting, it should the same as the plugin host.
(Alternative solution would be to never shutdown the pc, but that's also bad xD)
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
Just saving and restoring it locally might be doable. I'll put it on the wish list.
lublak likes this post
Re: Save last sendet data (and send it on boot)
But only optional, please.Admin wrote:Just saving and restoring it locally might be doable. I'll put it on the wish list.
Joerg- Posts : 142
Join date : 2021-09-03
Re: Save last sendet data (and send it on boot)
Yes, of course.Joerg wrote:But only optional, please.
lublak likes this post
Re: Save last sendet data (and send it on boot)
Admin wrote:Just saving and restoring it locally might be doable. I'll put it on the wish list.
Thanks
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
You can try this version. Install the plugin, and when that is done, you must move the file "StreamDeckMidiUserSettings.xml" from the plugin folder to the "Documents/Trevliga Spel" folder (create the folder if you don't have it). The file must be moved, the copy in the plugin folder is a template only and is not accessed by the plugin.
This line in the "StreamDeckMidiUserSettings.xml" file controls the functionality of the new save feature:
<MidiState RestoreAtStart="true" SaveInterval="60" MaxAge="24" />
Let me know what you think.
This line in the "StreamDeckMidiUserSettings.xml" file controls the functionality of the new save feature:
<MidiState RestoreAtStart="true" SaveInterval="60" MaxAge="24" />
- RestoreAtStart must be set to "true" to enable the feature.
- SaveInterval is how often (in seconds) the midi state is saved to disk. The saved file may be large, and I see no reason to have real-time or close to real-time updates. The default value of once a minute seems reasonable but can be changed if needed. Disk saves are only performed if there has been any midi activity since the last save.
- MaxAge is the maximum age (in hours) of MIDI events that will be restored at the start of the plugin. The default value of 24 means that only midi events created in the last 24 hours will be restored during the plugin start. The idea is that if the computer has been shut down for longer, the saved midi state is probably irrelevant.
Let me know what you think.
lublak likes this post
Re: Save last sendet data (and send it on boot)
First of all, it has to be said: it works! And i love it!
Secondly, the version you gave me has a bug which no longer displays the state icon correctly. (but the correct signal is sent).
Now for my opinion:
SaveInterval is totally fine. I don't change it that often. And certainly not just before I shut down the computer. I think one minute is a good number.
I also took a look at the JSON file and it looks really nice.
Only the last status is really used here. That is really sufficient (so the file is not unnecessarily large). I will then probably set MaxAge to 672 hours (4 weeks). As it is also important to me that it restores the state after a longer period of time. But everyone can customise this individually.
Secondly, the version you gave me has a bug which no longer displays the state icon correctly. (but the correct signal is sent).
Now for my opinion:
SaveInterval is totally fine. I don't change it that often. And certainly not just before I shut down the computer. I think one minute is a good number.
I also took a look at the JSON file and it looks really nice.
Only the last status is really used here. That is really sufficient (so the file is not unnecessarily large). I will then probably set MaxAge to 672 hours (4 weeks). As it is also important to me that it restores the state after a longer period of time. But everyone can customise this individually.
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
That's worrying since it is based on the 3.9 release I have just sent to Elgato for publishing. Please give my more details on which dial, how itis configured and so on.lublak wrote:
Secondly, the version you gave me has a bug which no longer displays the state icon correctly. (but the correct signal is sent).
Re: Save last sendet data (and send it on boot)
Admin wrote:That's worrying since it is based on the 3.9 release I have just sent to Elgato for publishing. Please give my more details on which dial, how itis configured and so on.lublak wrote:
Secondly, the version you gave me has a bug which no longer displays the state icon correctly. (but the correct signal is sent).
Because everything was to long for one post:
Here are the configs and the Protokol (Protokol shows the correct data)
https://imgur.com/a/F5hEyoi
Here is the plugin log:
https://pastebin.com/8tQNKKJg
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
That was a pretty nasty bug; I can't imagine how I missed it! How fortunate that you spotted the problem and reported it.
It is corrected in this version.
Now, I must stop Elgato from publishing that version.
It is corrected in this version.
Now, I must stop Elgato from publishing that version.
Re: Save last sendet data (and send it on boot)
Admin wrote:That was a pretty nasty bug; I can't imagine how I missed it! How fortunate that you spotted the problem and reported it.
It is corrected in this version.
Now, I must stop Elgato from publishing that version.
I can confirm: It is fixed
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
Admin wrote:Please check the beta 3.9 thread.
I tested it now, for me works all fine. Simetimes after reboot (the state gets restored) the gui don't change.
But the internal state. As an example. The Dial is on 50%.
After reboot it shows sometimes (not everytime) 0% but if i move the dial it humps back top 50% +- 1%.
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
When you get this problem, are all dials/buttons affected or just a single one?
Re: Save last sendet data (and send it on boot)
On all dials/buttons i think.Admin wrote:When you get this problem, are all dials/buttons affected or just a single one?
lublak- Posts : 15
Join date : 2024-01-16
Re: Save last sendet data (and send it on boot)
I think it's a timing issue. I've published a new beta version, and I hope I have solved that.
Similar topics
» Send Velocity via Streamdeck+ Dial
» Send multiple values in a single step
» Send Pitch Bend / Aftertouch Messages
» Send MIDI Note question
» Mackie Fader just "send touch"
» Send multiple values in a single step
» Send Pitch Bend / Aftertouch Messages
» Send MIDI Note question
» Mackie Fader just "send touch"
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum