|
Author |
Topic: Can't load custom .wav as a sample (Read 854 times) |
|
Jake Guest
|
Can't load custom .wav as a sample
« on: Jul 23rd, 2004, 8:42am » |
|
I use windows sound recorder to record a .wav (16 bit, 33k big). Then I throw it in the "data" folder of my sketch, and open the example from the Sonia webpage (I believe it's the first one, that lets you click and drag up and down to change the rate). I replace "sine.aiff" with "mysound.wav" and run it. It hangs - never shows anything but a white screen. Any ideas? (It works just fine when using sine.aiff)
|
|
|
|
pitaru
|
Re: Can't load custom .wav as a sample
« Reply #1 on: Jul 23rd, 2004, 6:53pm » |
|
Do you get any error messages in Red ? also, I would make sure its really 16 bit, and also not using any compression. amit
|
|
|
|
Jake Guest
|
Re: Can't load custom .wav as a sample
« Reply #2 on: Jul 23rd, 2004, 9:36pm » |
|
Nope, no error messages. When I try to load it from processing it is just a white screen. When I export it to an applet and try to view that, it just has a red X in the corner. Properties of the file are: Bit Rate: 128 Kbps Audo Sample Size: 16 bit Channels: 1(mono) Audio Sample Rate: 8 kHz Audio Format: PCM
|
|
|
|
pitaru
|
Re: Can't load custom .wav as a sample
« Reply #3 on: Jul 24th, 2004, 1:42am » |
|
what happens if you increase the sampling rate to 11kHz and 22kHz? amit
|
|
|
|
jingman
|
Re: Can't load custom .wav as a sample
« Reply #4 on: Jul 24th, 2004, 11:16pm » |
|
Smooth as silk w/ 11k and 22k, thanks Pitaru! Might I also say that Sonia friggin rules -- of course it is forcing me to spend hours talking aimlessly into my mic.
|
|
|
|
pitaru
|
Re: Can't load custom .wav as a sample
« Reply #5 on: Jul 25th, 2004, 6:43pm » |
|
Aha! I wasn't aware that 11kHz is a limitation. Thanks! amit
|
|
|
|
jingman
|
Re: Can't load custom .wav as a sample
« Reply #6 on: Jul 25th, 2004, 7:42pm » |
|
No, thank you. Something else - When I originally had the problem (before I even posted) I was using 44kHz, and it wasn't working, so that's something else you might want to test. Some other questions: I would love to combine Sonia work with JMyron and some video work, but I can only get my Sonia projects to open correctly when I export them to a webpage, and JMyron apparently only works directly from p5. Any thoughts on this? (PS just watched the sonic sculptor video again, I love that thing).
|
|
|
|
pitaru
|
Re: Can't load custom .wav as a sample
« Reply #7 on: Jul 26th, 2004, 12:31am » |
|
> I can only get my Sonia projects to open correctly when I export them to a webpage Sonia projects should work localy - so i guess you're having some sort of general problem running sonia on your machine. Can you send me a simple sketch folder (with code directory) that does not work ? (sonia@pitaru.com) amit
|
|
|
|
bsr
|
Re: Can't load custom .wav as a sample
« Reply #8 on: Jul 26th, 2004, 4:15pm » |
|
on Jul 25th, 2004, 7:42pm, jingman wrote:I would love to combine Sonia work with JMyron and some video work, but I can only get my Sonia projects to open correctly when I export them to a webpage, and JMyron apparently only works directly from p5. Any thoughts on this |
| i'm doing the same thing and haven't had any problems so far. am using changes in globcenter() to trigger sounds, any movement over a certain value will trigger a sound, the x value also sets the sample panning. loads more to do but it's working well so far.
|
http://hippocamp.net
|
|
|
jingman
|
Re: Can't load custom .wav as a sample
« Reply #9 on: Jul 28th, 2004, 5:12pm » |
|
Yes that sounds very similar to what I'd like to do. We're going to attempt something similar to what these people have done: http://tmema.org/messa/messa.html Specifically, the one where the balls pop out of his head. I have installed the JSyn stuff on a different computer, and Sonia runs fine from the programming environment - so my other computer must just be messed up. No worries Pitaru - sorry for taking to so long to respond here. Bsr, I'll be looking forward to seeing what you produce, perhaps we could collaborate? When I use the JMyron stuff my frame rate is way too low, so I think we have to implement some other tracker class. What kind of frame rate are you getting? What camera+OS?
|
|
|
|
bsr
|
Re: Can't load custom .wav as a sample
« Reply #10 on: Jul 28th, 2004, 7:30pm » |
|
blimey that's ambitious, the examples on that site are fantastic. apart from the code complexity you'd have to have constant lighting levels and a nice clear background. setting the threshold levels correct is crucial. with my quick example multiple tracking sources aren't a problem as they're only triggering samples in regions of the screen: http://processing.org/discourse/yabb/board_VideoCamera_action_d_isplay_num_1090947171.html myron is slow here as well, but that's fine for the way i'm running it, it's not too crucial. runs full speed at 160x120. drops down a lot at 320x240. eventually i'll want to have this work full screen so it can be projected on a wall, is there an easy way to effectivly change the resolution of the output of course you could just drop the resolution of the videocard to 640x480 but that's still a lot of screen space. i'm thinking taking the myron 160x120 pixel array and somehow displaying it as 640x480...hmmmm. also you should check eyesweb: http://www.eyesweb.org/ - it aint p5 but you can get some interesting things going on.
|
http://hippocamp.net
|
|
|
jingman
|
Re: Can't load custom .wav as a sample
« Reply #11 on: Jul 29th, 2004, 2:37am » |
|
Well thanks! Yes I spotted your recent example. What I have ended up doing is just writting my own simple object tracker. It tracks the darkest vertical column in the stage (not complex, but fast as heck). When we do the setup, we will have it projected on a giant screen, and the kids will be in such a position that they cast shadows on the screen. Finding the darkest vertical column within the bottom half of the screen seems like it's going to work (preliminary tests look good), and we'll just have to estimate where the heads are (that part needs more thought). The webcam will be looking at the screen. We will not be displaying what the webcam is seeing. So you see, you get this neat little loop, where p5 is looking at what it's doing, and acting based on that (and what the kids are doing). Already have the code done that pops big and little colored bubbles out of my head when I talk! (and another version that draws little curly sprites that crawl out of my head and off of the screen) Thanks for the link, I'll let you know how this stuff turns out.
|
|
|
|
mkff
|
Re: Can't load custom .wav as a sample
« Reply #12 on: Nov 24th, 2004, 1:44am » |
|
i have a similar problem... if i run sonia + jmyron together the following error message pops up: Could not load native library for JSyn V142 com.softsynth.jsyn.SynthException: JSyn error: Could not access JSyn synthesis engine. - JSyn not properly installed, or web page is not calling if i run it without jmyron it works fine.. any suggestions?? I.
|
|
|
|
|