will i cant seem to get it to work at all, maybe something in my patch is wrong? heres a link http://dl.dropbox.com/u/42310381/test.pd
@choons, i dont understand what this is in pd [read -resize $1 your_array_name( // <-- a message<br />|
I think the formatting of @choons's message didn't work out. Here's how I think it was supposed to look:
[r openfilemsg] | [read -resize $1 array_name( | [soundfiler]
The middle part is a message object.
Ha! Now my formatting didn't work out. I should have previewed. Here's another attempt:
[r openfilemsg]
|
[read -resize $1 array_name(
|
[soundfiler]
nope, it totally doesnt work. i have even tried putting the file path directly in the pd patch. it will not load a sample from the sdcard whatever i try.
has anyone actually got this working on android?
im currently using the opensl brach of pdlib if that makes a difference
the only thing left to try now is turning the sound file into an array in java and sending that to pd. now where did i save that bit of code lol...
It's hard to say what's going wrong without seeing your code. What's the path to your file? Also, are you logging messages from Pd? You should always do that, and with a bit of luck a look at logcat will tell you what's going wrong.
I just looked at your test patch, and the message object isn't wired up correctly. The vertical bars in my message from August 14 are meant to be connections in Pd, i.e., you connect the outlet of the receive object to the inlet of the read message, and then you connect the outlet of the read message to the soundfiler object. That should take care of it.
i have no idea why it doesnt work. yes i know the vertical bars are connections, i tried everything with that patch, thats just the state it was in when i posted it, sorry for any confusion. the sound file is just on sdcard/test.wav. yes i have logs going on. the code i used to test is basically a copy of PdTest because i know that works. ive spent weeks and even months on and off trying to make this work. im almost ready to give up.
ha! i got a click, at last yay. only certain wav files will work, must be something to do with format there, but the main problem was in the patch, frequency and chunk size were throwing me. time to sort a one shot sampler patch i reckon. so... i send this to pd PdBase.sendSymbol("filename", file.getAbsolutePath()); in pd its like you said on the 14th, thank you for all the help and sorry for posting so many times on here.
It looks like you're new here. If you want to get involved, click one of these buttons!