Audiofilein chop keeps looking at the wrong path?

i’m trying to select which audio file plays using a midi knob to scrub through the wavs in a folder. it keeps giving me an error that says:

Error: File not found: “/Users/myusername/Desktop/Xlaser test/op(‘datto1’) [0]” (/project1/audiofilein1)

but i dont have that path typed in anywhere in my project. i’m a complete beginner, but i feel like this is some kind of bug. it keeps looking in the path where the project file is saved instead of the path i’m telling it to look using the midi knob. project file is attached:

EtherdreamWAVplayer.4.toe (29.7 KB)

Hi @ferventwindow,

the File parameter of the Audio File In CHOP is currently set to constant mode in which it expect either a full or relative path as a string.
In the posted example here, the string supplied includes a reference to a DAT operator - for this to work, the parameter should be set into expression mode.

In your particular case, the correct expression is already in the Expression mode of the parameter, so switching into it should resolve the issue. Just as an observation, despite not being incorrect the str() function around the reference to the table cell is unnecessary as in most cases, TouchDesigner will cast to the correct data type.

cheers
Markus

1 Like

this fixed my problem! thank you so much. i assumed that it goes into “expression mode” automatically when you type an expression in. but i guess it doesn’t. once i clicked the expression button, it all worked.

Hi @ferventwindow,

this is true for numerical parameters but string parameters are difficult to decide if you want it evaluate as an expression or use it as a string.

cheers
Markus

1 Like