Execution control / load after copy
-
Hello everyone! :-)
I have a specific request. I want to copy an audio file and then load it into the sampler. So far, so good. However, I need to make sure that the loading process only starts after the file has been successfully copied.
Is there a built-in solution for this? Or do I have to take care of it myself, for example with the help of timers?
@David-Healey I'm sure you have an idea :-)
Many thanks,
Oli -
@Oli-Ullmann Been a while since I played with it but the copy function returns a bool, true if the copy was successful. So perhaps the function is asynchronous - test and report back.
Alternatively you could use a timer to poll the target file and check if it exists.
-
@David-Healey
Yes, those two options also occurred to me if there is no built-in solution.
I'll try it out and give feedback here.
Thanks. :-) -
@Oli-Ullmann A broadcaster might be another option - not sure.