Forum Discussion

AlexanderRobinson's avatar
AlexanderRobinson
Iron Contributor
May 12, 2026

Can't find sound directory when opening patch on Windows 10

Hi, I'm a student working on a spatial audio project in Pure Data. My patch uses a relative path (../../../../../sound-directory-test/sounds/soundobjects.json) to find a folder with sound files. It works fine on the lab computer but when I open it on my laptop I get a "read failed" error even though the folder and file exist. I know the issue is that the relative path depth needs to match the folder structure, but I double checked and the number of levels should be correct for my laptop's path (Windows 10). But it still doesn't work. Can anyone help?

1 Reply

  • Minason's avatar
    Minason
    Copper Contributor

    In Pure Data, the relative path is based on the current working directory of your patch. When you open your patch, the CWD might be different depending on how you launch it.