Andrew Belt
2676883311
Reset autosave dir if template patch cannot be loaded.
3 years ago
Andrew Belt
f665e52811
Use stoll() on Windows to convert module patch storage name to int64_t.
3 years ago
Andrew Belt
d84847995e
Save autosave patch on close in PatchManager instead of standalone adapter.
3 years ago
Andrew Belt
9d3d1143ea
When destroying patch (e.g. on close), dispatch onSave to all Modules so they save their patch storage, etc.
3 years ago
Andrew Belt
1878e97e4c
Serialize gridOffset of RackScrollWidget in patch.
3 years ago
Andrew Belt
10067ceadc
Add RackScrollWidget::getZoom/setZoom/getGridOffset/setGridOffset(). Serialize zoom in patch instead of settings.
3 years ago
Andrew Belt
9ac54241fb
Add patch:: namespace.
3 years ago
Andrew Belt
c50cafb271
Change user dir to Rack2. Remove "-v2" from user subdirs.
3 years ago
Andrew Belt
094382778f
Set JSON real precision to double (17 digits).
3 years ago
Andrew Belt
bcc22eba61
Add actions to ModuleWidget::createSelectionContextMenu(). Refactor RackWidget and ModuleWidget as necessary.
3 years ago
Andrew Belt
6e9e5212e1
Automatically append .vcv and .vcvm extension to patches if the saved extension does not end with the correct extension.
3 years ago
Andrew Belt
c3ff43b6de
Rename *Dir() functions to *Directory(), backtracking on a previous commit.
3 years ago
Andrew Belt
2d3c9a42b8
Tweak tip texts.
3 years ago
Andrew Belt
00eb16189b
Use "directory/dir" terminology instead of "folder" except for UI text.
3 years ago
Andrew Belt
f3827c82c7
Add major version checking to library plugin update check.
3 years ago
Andrew Belt
661fd3863d
Add Module Save event.
3 years ago
Andrew Belt
583530032f
Move asset::pluginsPath, templatePath, and settingsPath to appropriate namespaces.
4 years ago
Andrew Belt
2966cd57f7
Move asset::autosavePath to Patch. Add Module::createPatchStorageDir() and remove asset::module().
4 years ago
Andrew Belt
1971f2d79a
Use "Untitled.vcv" as default patch filename.
4 years ago
Andrew Belt
ec14e18bec
Remove PatchManager::isLegacy().
4 years ago
Andrew Belt
f5bad0e20f
Add hard-coded plugin/model slug fallbacks/aliases. Catch Exceptions from Module::fromJson().
4 years ago
Andrew Belt
dbe843447b
Remove useless line in PatchManager::saveDialog().
4 years ago
Andrew Belt
17416a7f5e
Don't set "path" patch property if the path is unset.
4 years ago
Andrew Belt
f44ee3a15a
Remove "patchPath" from settings. Store path and unsaved status in patch itself. Fix bug where crash leaves old patch path in settings while new patch is loaded in autosave. Add more dialog messages to PatchManager.
4 years ago
Andrew Belt
2a1bbf4ae3
Rename system::getRuntime() to getTime().
4 years ago
Andrew Belt
790e1053cc
Rename system::getTime() to getRuntime(). Add system::getUnixTime().
4 years ago
Andrew Belt
7efd063392
Change timestamps from int64_t to double, and define epoch as when `system::init()` is called.
4 years ago
Andrew Belt
f3c8262183
Make Module always deserialize "id", "leftModuleId", and "rightModuleId". Due to this, make pasting and cloning modules delete these properties from the JSON before `fromJson()` is called.
4 years ago
Andrew Belt
06c6590b51
Implement Module::ExpanderChangeEvent event trigger.
4 years ago
Andrew Belt
14a1834348
Check for existence of module patch asset directory before iterating it in `Patch::cleanAutosave()`.
4 years ago
Andrew Belt
3bdf4bf06c
Take screenshot when patch is saved (Currently disabled).
4 years ago
Andrew Belt
9430ed8a65
Clean up autosave directory of removed modules when saving a patch and closing. Check for magic number of Zstandard format to find out whether a patch is legacy pre-v2.
4 years ago
Andrew Belt
232d2c10e5
Add `compressionLevel` argument to `system::archiveFolder()`.
4 years ago
Andrew Belt
8d908a0a55
Add system::join(). Add asset::module().
4 years ago
Andrew Belt
c862847394
Set compression level of system::archiveFolder() .tar.zst file.
4 years ago
Andrew Belt
3fbd0f77a9
Move string::absolute, directory, filename, filenameBase, and filenameExtension to system::getAbsolute, getDirectory, getFilename, getStem, and getExtension. Reimplement most system:: functions using std::experimental::filesystem. Add system::doesExist, getFileSize, and getTempDir.
4 years ago
Andrew Belt
df544700b9
Remove libzip, zlib. Remove string::compress() and uncompress(). Remove system::unzipToFolder().
4 years ago
Andrew Belt
8a50d39b7f
Make system::archiveFolder and unarchiveToFolder work on Windows with
Unicode. Rename UTF8toUTF16 to U8toU16 and switch back to std::wstring
instead of std::u16string.
4 years ago
Andrew Belt
0ded01c228
Add system::unarchiveToFolder() and archiveFolder(). Begin using `std::experimental::filesystem`.
4 years ago
Andrew Belt
53cf78eb72
Add rough code to load/save patch to new autosave directory.
4 years ago
Andrew Belt
fdf85301c7
Fix compile issue on Windows by simplifying how recent patches are
removed from settings.
5 years ago
Andrew Belt
120aafe6d3
Change order of includes to C++ standard headers, library headers, and local project headers.
5 years ago
Andrew Belt
1dcaf6c1bc
Fix some segfaults when destroying environment.
5 years ago
Andrew Belt
68a875bbca
Improve clarity and modularity of PatchManager methods.
5 years ago
Andrew Belt
866f684ce4
Move app::APP_*, ABI_*, and API_* variables to rack:: namespace.
5 years ago
Andrew Belt
ca9231e1b3
Rename App to Context and app.hpp to context.hpp. The APP macro is still valid.
5 years ago
Andrew Belt
f4b54f74b7
Added "recentPatchPaths" to settings.json and a "Open recent" menu item.
5 years ago
Andrew Belt
538f5589c2
Make headless mode work somewhat.
5 years ago
Andrew Belt
e4b6056ded
Massive WIP v2 overhaul:
- Add Engine::fromJson which can be called without the GUI at all.
- Make RackWidget::fromJson attach itself to existing Engine state. However, once attached, they own their Engine objects (Module, Cable).
- Remove Engine thread. Now Engine must be stepped by other threads, such as the audio thread. This is fantastic because there is no longer a mutex lock every audio buffer.
- Add concept of the "primary module", which is allowed to call Engine::step().
- Add many Module events.
5 years ago
Andrew Belt
e248cc8813
Disable crash warning dialog in dev mode.
5 years ago