fix assign path

Fix for openWrite in soundFile, which assigns the path to the local instead of the object variable.