DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006

    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?



  2. #2
    Join Date
    Mar 2004
    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
    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..


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

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.