I’d like to set a custom directory for the recordings when using tracktion engine. Recordings are commonly put in the tracktion project folder, but I’d prefer some more flexibility. One of the reasons is that I’m using Tracktion inside a plug-in and so I am not creating a tracktion Project. (the state and everything is stored inside the DAW project, not inside an edit or tracktion project file). I cannot find a way to set a custom directory for the recordings.
Thank you Dave.
I’m really impressed with the tracktion engine but there is so more to explore.
I found out that I can also manually set editFileRetriever to a custom directory and the recordings will be placed in there.
However, related to this I wondered if it is possible to use this editFileRetriever or your proposed technique and have tracktion store the file names in the state as relative paths instead of absolute paths. This makes it possible to copy the project from one computer to another if the the user just manually provides tracktion with the path to all the media. Perhaps I should consider using tracktion Project instead and have it take care of all of that…?
I’m okay if the user manually has to suggest the plug-in a directory to store the media.
I tried setting editFileRetriever but it seems like the files are still stored as absolute paths. I will double check to make sure.
I really like the idea of ProjectItemID’s though… ;). It’d be nice if I can use something similar without requiring a Project for instance if I could manually compose some id map that the edit uses to resolve id’s.
The files after setting editFileRetriever are indeed stored as relative paths. My mistake.
I mean for my application it’d be useful to reference files by ID’s. In general I like the idea of using ID’s for referencing files instead of providing the file path manually. This way I can in theory change the file that tracktion uses by just changing the ID to file mapping. For my application, this is useful, but I’m wondering if it’s possible without using a Project.
To tell the engine to save paths relatively, I set editFileRetriever. The problem is that a .tracktionedit file is created on the users computer. Because I’m trying to implement this as a plug-in, this is not ideal.
Is there a way to tell the engine to not save the .tracktionedit file or is there an alternative way to save files as relative paths?
Is is a problem if the .tracktionedit file is stored on the users computer? Or is it just there doing nothing…?