gogins / csound-webserver-opcodes

The "webserver" opcodes enable Csound to act as a local Web server that can host HTML5 GUIs and score generators.
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Save all values of dat.gui controls in a text file, and restore the values of those controls from that text file #11

Closed gogins closed 2 years ago

gogins commented 2 years ago

This is both a bug and an enhancement because local storage works on any given single computer, but not for a piece that is worked on on different computers.

See https://stackoverflow.com/questions/21479107/saving-html5-textarea-contents-to-file.

gogins commented 2 years ago

This might be better: https://stackoverflow.com/questions/24263682/save-restore-local-storage-to-a-local-file.

gogins commented 2 years ago

Browsers only permit downloading to the Downloads directory. Therefore, this feature is not achievable at this time.

Therefore, either the composition must also be saved in the Downloads directory, or the dat.gui dialog must be used to manually copy the configuration, or NW.js must be used.

But I am checking to see if any experimental features provide a way to make this work. I didn't see anything.