Converting URL to Path for Kineme Audio Player patch

usefuldesign.au's picture

The directory scanning patches (Apple and Kineme) output structures containing the file paths as in the url format eg.: "file://localhost/Volumes/Buckingham/Music/iTunes/iTunes%20Music/Ajahn%20Brahm//2010_04_23//The%20Negativity%20Of%20Positive%20Thinking.mp3"

Is there an easy way to convert it to a path suitable for the Kineme Audio Player patch, I'm getting crashes when I feed that to the Au patch. Obviusly I can using a bunch of string replace patches but is there a cleaner way?

eg: /Users/secret/Desktop/Bliss-Timetimetime.mp3

/Volumes/Buckingham/Music/iTunes/iTunes Music/Ajahn Brahm/2010_04_23/The Negativity Of Positive Thinking.mp3

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

usefuldesign.au's picture
Re: Converting URL to Path for Kineme Audio Player patch

Okay so I just saw the "path" value is what I need (feeling small).

cybero's picture
Re: Converting URL to Path for Kineme Audio Player patch

File paths can either be long /Users/Username/Directory/file.ext, or if the whole project is in the same folder, then ./Directory/file.ext should do.

I have sometimes found that I have to give the longer file path to sometimes get the Audio File Player or Audio File input patches picking things up in the first instance, although that is probably just a cache related issue.

usefuldesign.au's picture
Re: Converting URL to Path for Kineme Audio Player patch

Thanks, I'm using directory scanner (blocking) patch to work dynamically where-ever I point it to at the top level so I guess the long paths it outputs will do it.

On a side note, I've noticed the first track starts playing immediately, the others (about 9 tracks) take a few seconds to start. This pause actually jams the comp with a beach ball for at least five seconds which would freeze any UI interaction I might have going on with typical playhead transport controls wired to some kind of hardware control interface.

Is there a way around this like maybe using the Kineme Audio File patch to preload them one at a time so the comp keeps running? The tracks can start at intervals of a few seconds — they don't have to go at the same time as in how dialogue syncing to video images would have to be synchronous.

dust's picture
Re: Converting URL to Path for Kineme Audio Player patch

I like to load the audio files at the start of the comp with loop on and then use volume to bring in the sound. so if you use a stop watch and conditional you can trigger audio after the audio has loaded. the actual delay time woul depend on your system and where the file is located. another hint would be to autmate your parameters or use an external controlling device as some times kineme audio will hick up if your changing parameters in the editor.