Results 1 to 5 of 5
  1. #1
    alpdog14 is offline Member
    Join Date
    Mar 2009
    Posts
    57
    Rep Power
    0

    Default separating voices in a .wav file

    I am new to java and I am trying to break apart of wav files that has two voices in it. There are two voices and based on the Hertz I want it to silence out on of the voices in it. Can anyone help me develop a java class to do this? I attached the .wav file I am trying to separate the voices, please let me know how this can be done. Any help would be most appreciated. I know I have to create variables for lower and upper frequencies:

    double lowerFrequency = 600; // in Hertz
    double upperFrequency = 1200;

    then I think I need to use this for loop:

    int n = 0;
    short[] L = result;
    for (int i = 0; i<=n; i++) {
    double factor = 0.42 - 0.5*Math.cos(Math.PI*i/n) + 0.08*Math.cos(2*Math.PI*i/n);
    L[i] *= factor;
    L[2*n-i] *= factor;
    }

    but not sure where to go after this.
    Attached Files Attached Files
    Last edited by alpdog14; 11-29-2010 at 02:41 AM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    This seems an extremely complex task, one that I'm sure would require a third party library -- if it's even possible. My guess would be your best bet is to search Google for a library to use although it may require purchase, and I'll bet would require JNI or JNA because you'll likely find the library has been written in C or some other language that's closer to the OS.

    Much luck!

  3. #3
    alpdog14 is offline Member
    Join Date
    Mar 2009
    Posts
    57
    Rep Power
    0

    Default

    Well there is a WavReader class already developed for us and we have to come up with the bandpass program. I am attaching the WavReader program already written, would this help develop the other program? it is the scr.zip folder which contains all my current classes, trying to edit the bandpass.java which currently has the same content as convolution.java. Any help would be appreciated. I am using Eclipse, just fyi.
    Attached Files Attached Files

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I'm going to plead ignorance on this.

  5. #5
    alpdog14 is offline Member
    Join Date
    Mar 2009
    Posts
    57
    Rep Power
    0

Similar Threads

  1. Problems separating GUI from Logic
    By tyimp in forum AWT / Swing
    Replies: 1
    Last Post: 10-06-2010, 04:32 AM
  2. Separating the digits of given number
    By lb2 in forum New To Java
    Replies: 5
    Last Post: 09-09-2010, 05:29 AM
  3. Problem changing synthesiser voices with Java Speech
    By Fillis52 in forum Advanced Java
    Replies: 1
    Last Post: 08-20-2010, 08:26 PM
  4. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  5. Separating program logic and GUI
    By loopingman in forum AWT / Swing
    Replies: 0
    Last Post: 12-08-2008, 02:46 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
  •