Results 1 to 3 of 3
  1. #1
    jaytee is offline Member
    Join Date
    Mar 2010
    Posts
    15
    Rep Power
    0

    Default how to program sound into your class

    I'm trying to create my own beat machine with java but the only question I have is how do I go about programming the sound into the class ex.

    class SoundBankDrumKit1
    {
    private String Kick;
    private String Bass;
    private String Snare;
    private String HiHat;
    private String Claps;
    private String Cymbols;
    private String RimShoot;
    private String FX1;
    private String Toms;
    private String misc;

    }
    whats the syntax for importing sound into the code so I can create multiple sound Banks???

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Read up on the use of the javax.sound.midi and javax.sound.sampled packages.

    db

  3. #3
    jaytee is offline Member
    Join Date
    Mar 2010
    Posts
    15
    Rep Power
    0

    Default

    where do I find that and do I need to have java fx for that??

Similar Threads

  1. Replies: 6
    Last Post: 05-18-2010, 06:11 PM
  2. Help with program class?
    By Boomer1 in forum New To Java
    Replies: 2
    Last Post: 11-22-2009, 11:10 AM
  3. Replies: 3
    Last Post: 10-06-2009, 09:14 PM
  4. Could not find the main class. Program will exit.
    By Carrier in forum New To Java
    Replies: 1
    Last Post: 04-22-2009, 03:27 AM
  5. clock class program
    By jvasilj1 in forum New To Java
    Replies: 12
    Last Post: 02-01-2008, 09:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •