Cantabile 4 (latest build 4206 stable) is not locating the proper song folder even though I keep setting it in the options. I’ve reinstalled and the problem persists. The settings json file in the TopTen folder shows the correct location, but when I try to load a song, Cantabile often opens the file location of the last plugin’s assets. I’ve never had this problem in the years I’ve been using Cantabile.
This is odd. I had a similar issue loading Racks on a brand new Cantabile install. It disappeared on its own later.
Let’s try asking @brad.
Nothing has changed in this area for a very long time. I just tested here on both Windows 10 and Windows 11 and it seemed to work fine.
So… off hand I’m not sure.
Exactly which version and build of windows are you running?
Brad
Brad - Windows 11 Pro, version 24H2, OS build 26100.2894, Windows Experience Pack 1000.26100.36.0
Strange that Cantabile knows where my plugins are (custom location) but even though the settings location is saved in the json correctly in the TopTen folder, it defaults to the last folder I looked at while using Cantabile, such as when loading a sample for a VST or preset.
OK… it has something to do with OneDrive. It’s actually a duplicate folder of my last opened local file of my PC that it’s trying to open on OneDrive. Strange though that the settings for the song save folder are not pointing to OneDrive, so I don’t know why it keeps defaulting there. And I’ve turned off OneDrive sync and it still has the problem, though the OneDrive folder icon is still showing in Explorer. I guess I need to totally delete it if I’m not really using OneDrive. Still, Cantabile should remember the correct folder location when saved. Strange…
So this looks like it might be at the whim of Windows. Point 1 under Windows 7 below suggests that depending which file dialog you first opened in Cantabile after the first install might affect how things work. Weird.
From Microsoft docs: (Cantabile passes the setting in Options as the lpstrInitialDir
parameter described below)
lpstrInitialDir
Type: LPCTSTR
The initial directory. The algorithm for selecting the initial directory varies on different platforms.
Windows 7:
- If lpstrInitialDir has the same value as was passed the first time the application used an Open or Save As dialog box, the path most recently selected by the user is used as the initial directory.
- Otherwise, if lpstrFile contains a path, that path is the initial directory.
- Otherwise, if lpstrInitialDir is not NULL, it specifies the initial directory.
- If lpstrInitialDir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.
- Otherwise, the initial directory is the personal files directory of the current user.
- Otherwise, the initial directory is the Desktop folder.
Windows 2000/XP/Vista:
- If lpstrFile contains a path, that path is the initial directory.
- Otherwise, lpstrInitialDir specifies the initial directory.
- Otherwise, if the application has used an Open or Save As dialog box in the past, the path most recently used is selected as the initial directory. However, if an application is not run for a long time, its saved selected path is discarded.
- If lpstrInitialDir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.
- Otherwise, the initial directory is the personal files directory of the current user.
- Otherwise, the initial directory is the Desktop folder.
There’s a suggested workaround here which I’ll consider implementing when I get a chance.
The only work around that seems to work is to make sure I navigate to the song folder and load a song from there just before I quit Cantabile.