Hi, I want to use ChucK to control a bunch of MP3 files according to GPS data for a project that I am doing. However, I cannot seem to get sndbuf to open anything. I converted my MP3 files to WAV and AIFF (both of which look to be supported) with LAME, but still no luck. What am I missing? Thanks, Eric -- "Tyranny is tyranny, let it come from whom it may." -- Revolutionary conscripts, 1776
Hi Eric,
I want to use ChucK to control a bunch of MP3 files according to GPS data for a project that I am doing. However, I cannot seem to get sndbuf to open anything. I converted my MP3 files to WAV and AIFF (both of which look to be supported) with LAME, but still no luck. What am I missing?
What errors are you getting? What code do you use to open the files? Also, what platform are you running? sndbuf should be working okay for wav and aiff. If there are problems, it might due to big/little endian issues, i.e. compiling chuck for linux over powerpc, which requires a little tweaking of compiler flags. I am sure we can work this out. Best, Ge!
I am running on Intel Mac. I should follow the instructions from earlier to compile my own libsndfile. Now that you mention it, it could easily be endian issues since the binary is PPC but it is running on an Intel system. Eric -- "Tyranny is tyranny, let it come from whom it may." -- Revolutionary conscripts, 1776 On Apr 3, 2006, at 11:01 PM, Ge Wang wrote:
Hi Eric,
I want to use ChucK to control a bunch of MP3 files according to GPS data for a project that I am doing. However, I cannot seem to get sndbuf to open anything. I converted my MP3 files to WAV and AIFF (both of which look to be supported) with LAME, but still no luck. What am I missing?
What errors are you getting? What code do you use to open the files? Also, what platform are you running? sndbuf should be working okay for wav and aiff. If there are problems, it might due to big/little endian issues, i.e. compiling chuck for linux over powerpc, which requires a little tweaking of compiler flags.
I am sure we can work this out.
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Eric Gilbert wrote:
I am running on Intel Mac. I should follow the instructions from earlier to compile my own libsndfile.
Thats good advice.
Now that you mention it, it could easily be endian issues since the binary is PPC but it is running on an Intel system.
If its a PPC binary, it *will not run* on an intel system. The latest OSX compilers however are able to compile a dual architecture binary; a binary which contains code for both intel and pcc cpus. However, for libsndfile at least, this is a bad idea. libsndfile has lots of architecture and OS secific tweaks which will not be correctly detected for one or the other of the two dual architectures. Remember, Erik says, "Always do native compiles and always run make check to make sure libsndfile is working correctly". Erik (yes, that Erik, the main author of libsndfile) -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Every time an American goes to a gas station, he is sending money to America's enemies." -- http://www.meforum.org/article/653
I have decided to go a different route with my project. I am going to use iTunes for what it is good for (managing and playing encoded audio), perl for what it is good for (parsing GPS data and talking with databases), and I would like to ChucK too. Ideally, I would like to inject ChucK right before the sound from iTunes hits the speakers. I would like to play with the pitch and the panning. Is this possible? If not, can you think of another way to accomplish my goal? Thanks, Eric -- "Tyranny is tyranny, let it come from whom it may." -- Revolutionary conscripts, 1776 On Apr 3, 2006, at 11:01 PM, Ge Wang wrote:
Hi Eric,
I want to use ChucK to control a bunch of MP3 files according to GPS data for a project that I am doing. However, I cannot seem to get sndbuf to open anything. I converted my MP3 files to WAV and AIFF (both of which look to be supported) with LAME, but still no luck. What am I missing?
What errors are you getting? What code do you use to open the files? Also, what platform are you running? sndbuf should be working okay for wav and aiff. If there are problems, it might due to big/little endian issues, i.e. compiling chuck for linux over powerpc, which requires a little tweaking of compiler flags.
I am sure we can work this out.
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi Eric,
I have decided to go a different route with my project. I am going to use iTunes for what it is good for (managing and playing encoded audio), perl for what it is good for (parsing GPS data and talking with databases), and I would like to ChucK too.
Sounds wise.
Ideally, I would like to inject ChucK right before the sound from iTunes hits the speakers. I would like to play with the pitch and the panning. Is this possible? If not, can you think of another way to accomplish my goal?
If you are running OSX, you can get audio from iTunes (or any other audio program) into ChucK using Soundflower or Jack (the OSX version of Jack is still relatively early in development), or another application level audio routing software. http://www.cycling74.com/products/soundflower If things work properly, then the output of iTunes can be received and processed using ChucK's adc input. Best, Ge!
On 4/5/06, Ge Wang
Hi Eric,
I have decided to go a different route with my project. I am going to use iTunes for what it is good for (managing and playing encoded audio), perl for what it is good for (parsing GPS data and talking with databases), and I would like to ChucK too.
Sounds wise.
Ideally, I would like to inject ChucK right before the sound from iTunes hits the speakers. I would like to play with the pitch and the panning. Is this possible? If not, can you think of another way to accomplish my goal?
If you swapped out iTunes for a command-line mp3 player, you could control all your project's pieces with a shell script. ;-)
If you are running OSX, you can get audio from iTunes (or any other audio program) into ChucK using Soundflower or Jack (the OSX version of Jack is still relatively early in development),
I use Jack OSX and it works like a charm. Any app that makes any sound with coreaudio can be routed to any other app that receives audio. It's brilliant. Soundflower works more or less the same way.
or another application level audio routing software.
http://www.cycling74.com/products/soundflower
If things work properly, then the output of iTunes can be received and processed using ChucK's adc input.
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Cheers, Mike -- "Only puny secrets need protection. Big discoveries are protected by public incredulity." -Marshall McLuhan
Thanks, Ge. What about pitch and pan manipulation? How hard is that to do on a general audio stream (not an stk instrument) with ChucK? I have been lurking around here, but I have never done more than small ChucK scripts. Thanks, Eric -- "Tyranny is tyranny, let it come from whom it may." -- Revolutionary conscripts, 1776 On Apr 5, 2006, at 12:24 AM, Ge Wang wrote:
Hi Eric,
I have decided to go a different route with my project. I am going to use iTunes for what it is good for (managing and playing encoded audio), perl for what it is good for (parsing GPS data and talking with databases), and I would like to ChucK too.
Sounds wise.
Ideally, I would like to inject ChucK right before the sound from iTunes hits the speakers. I would like to play with the pitch and the panning. Is this possible? If not, can you think of another way to accomplish my goal?
If you are running OSX, you can get audio from iTunes (or any other audio program) into ChucK using Soundflower or Jack (the OSX version of Jack is still relatively early in development), or another application level audio routing software.
http://www.cycling74.com/products/soundflower
If things work properly, then the output of iTunes can be received and processed using ChucK's adc input.
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (4)
-
Eric Gilbert
-
Erik de Castro Lopo
-
Ge Wang
-
mike clemow