Closed d3cod3 closed 5 years ago
SOLVED!
the problem was using
// calling closePatch passing the patch filepath
pd.closePatch(currentPatchFile.getAbsolutePath());
changing it with
// calling closePatch passing it the Patch variable
pd.closePatch(currentPatch)
solve the issue!
Hi, i'm having trouble with closing patches, i'm testing it on macOS and when trying to close a patch and opening another, the first one is not closing (still sound) and both of them are running.
Basically i'm calling pd.init() in setup, then i'm testing the patch loading with an ofFileDialogResult, select the file, storing in a Patch variable, calling pd.openPatch() and everything is fine, then when i call pd.closePatch() the sound from the closed patch is still ON and when i open a new one they overlap (i'm trying with a simple sine on one patch and a noise on another).
In short:
Am i doing something wrong?
Thanks in advance