Closed EmNudge closed 4 years ago
added a project output system in commit b4fbf86ffdb03a3393803263021524f6163b8b52. The menu also allows us to add different types of outputs for different areas. We output in JSON for now, but TOML (as it's a personal favorite of mine) is still open for debate in the future. A TOML parser would have to be bundled though, which adds to the bundle size.
This project output isn't super useful until we add an import, which will be addressed soon.
Added importing project files in 2ed9fcd2e3860aa4ea8a402dae8bb7eacc1ed7cc. Parts are a bit buggy, but it should work for the most part, which is nice. There aren't straightforward systems for ensuring nodes/lines/segments are active when clicking. There has been some progress towards that, but when loading a new project, they aren't null, but non-existent.
Closing this for now.
Once closing https://github.com/EmNudge/Spectrogram-Replicator/issues/4 I realized that we're not too far off from an import/export system. The output download is a bit different since it doesn't contain data like the frequency range, total time, or line colors. It's output in a way to allow MATLAB and other languages/programs to interface with the data, but we cannot load a previous session from this one.
This may have to come with a general UI overhaul, but an import/export system would be interesting and not monstrously difficult. The same UI could be used to allow renaming the project itself which results in a changed name for the downloaded files.