DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    2

    Controlling Sounds in JAVA

    I need to have 11 sounds in an interactive bagpipe demonstration (notes played at certain times): 9 melody sounds and 2 different drone sounds..

    I would like to have 3 sounds playing all at once: both drones and the melody notes.

    Not only would I like certain sounds to be played, I would like to have control over their tone (pitch bend) to sharpen or flatten them. This way I can simulate it being naturally out of tune at certain times.

    I can either record the sounds I need and provide 11 wav/mp3 files (short and loopable), or I can use a MIDI soundbank to generate the sounds. Recording the sounds are no problem, but I have no idea how to use MIDI sounds: how to generate them, how to control them, how to sequence them, where to find the bagpipe chanter/drone sounds within the soundbank, etc..

    Are there functions available to do what I need with pre-recorded sounds? Or will I have to use MIDI?

    Thanks!

    -Matthew

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    JLayer from http://javazoom.com will let you play mp3 files, but I don't know how easily you can play multiple files and I know you won't be changing pitch of the sound very easily. Not without knowing how PCM data works. MIDI might be easier.

  3. #3
    Join Date
    Aug 2006
    Posts
    2
    I found a WAV to MIDI converter..!

    So, if my source is now MIDI, what are the JAVA commands to change it's pitch? I find references, but never the actual code or how it's used..

    -Matthew

Similar Threads

  1. Replies: 2
    Last Post: 06-14-2006, 03:16 PM
  2. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  3. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 02:57 PM
  4. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  5. Re: VB vs. Visual Age for Java
    By JJ in forum Enterprise
    Replies: 1
    Last Post: 07-06-2000, 04:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links