electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Rob Adventures in Sound
Please visit the chat
 Forum index » DIY Hardware and Software » Developers' Corner
Java API for manipulating sound buffers
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Antimon



Joined: Jan 18, 2005
Posts: 3619
Location: Sweden
Audio files: 254
G2 patch files: 95

PostPosted: Thu Nov 02, 2006 9:22 am    Post subject: Java API for manipulating sound buffers Reply with quote  Mark this post and the followings unread

I want to make a Java program that can load a sound clip, read and rearrange it (by changing the actual data, not by processing streams), and then write it to a new file.

I've looked at Sun's javax.sound.sampled classes, but they only seem to focus on processing streams. I get the impression that you could access an array of sample bytes, but it looks like it's in an awkward way.

Does anyone here know of a simple API that will allow me to do this? I really just want to access the byte array, I don't care about mixers or MIDI routing or other junk.

Java is my preference, but I would give it a shot if you can suggest a Cocoa or C++ API.

Thanks.

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2031
Location: Morokulien
Audio files: 3

PostPosted: Thu Nov 02, 2006 10:54 am    Post subject: Reply with quote  Mark this post and the followings unread

Check out libsndfile. It's a popular library that can read and write lots of sound file formats. It has a C API.

DJ
--
Back to top
View user's profile Send private message Visit poster's website
Antimon



Joined: Jan 18, 2005
Posts: 3619
Location: Sweden
Audio files: 254
G2 patch files: 95

PostPosted: Fri Nov 03, 2006 1:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Looks interesting. Thanks - I'll check it out some more later.

/Stefan

_________________
Antimon's Window
@soundcloud @Flattr home - you can't explain music
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Developers' Corner
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
mps board

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use