How to remove ticking noise and doing audio effects?

I have a snippet of code I got for generating delay effects. After editing the appropriate things, I ran the application. It produces delays but (if i hear it correctly), the delayed sounds do not fade. It sounds like a mix of sounds. Does it depend on feedback? And there's this ticking noise accompanying the output. I just want to know how "ticking sounds" are produced (and probably how to remove them) and how to produce a correct delay.Here's my program.
public void delayProcessor(double[] data, int sampleRate, int delayInMs){
        //initialization
        int delayOffset = (int) ((delayInMs * sampleRate * 1) / 1000);
        double[] buffer = data;
        int k = 0;
        delayBufferSize = data.length + delayOffset;
        delayBuffer = new double[delayBufferSize];
        // Index where dry sample is written
        writeIndex = 0;
        // Index where wet sample is read
        readIndex = data.length;
        for (int i=0; i < data.length; i++)
            double inputSample =  data;
double delaySample = delayBuffer[readIndex++];
double outputSample = (inputSample * dryLevel) + (delaySample * wetLevel);
// make sure output is in range
if (outputSample > 1)
outputSample = 1;
else if (outputSample < -1)
outputSample = -1;
// Store in output sample
data[i] = outputSample;
// Calculate feedback
inputSample += (delaySample * feedbackLevel);
// make sure input is in range
if (inputSample > 1)
inputSample = 1;
else if (inputSample < -1)
inputSample = -1;
delayBuffer[writeIndex] = inputSample;
writeIndex++;
// Update indices
readIndex %= delayBufferSize;
writeIndex %= delayBufferSize;
My sample rate depends on the user's desired setting but I'm currently testing on 11025. It's also mono, 16-bits if that information helps.
Thanks in advance! :D                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi. Updated my code from the one above to this:
public void echoProcessor(double[] samples, double decay, int sampleRate){
     int delayOffset = (int) (10 * sampleRate)/1000;
     int delayBufferSize = samples.length + delayOffset;
     double[] delayBuffer = new delayBuffer[delayBufferSize];
     int writeIndex = 0, readIndex = delayOffset;
     int i =0;
     for(i = 0; i < delayBufferSize; i++)
          delayBuffer[i] = 0;
     for(i = 0; i < samples.length; i++){     
          double oldSample = samples;
          double delay = delayBuffer[readIndex];
          double newSample = oldSample + (decay * delay);
          delayBuffer[writeIndex] = outputSample;
          readIndex++;
          writeIndex++;
          if(readIndex == delayBufferSize)
               readIndex = 0;
But I still get the continuous ticking sound but now I hear the sound output which somehow produces an echo.
The double[] samples has a length of 512 then I convert it to bytes before writing to the SourceDataLine. Any ideas?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to remove static noise and gain from audio.

    I have recorded a load of video in an interview style, however there is a lot of static/background noise present in the audio. What is the best way to remove this but keep the vocal sounding normal?
    Thanks

    I would send it to Audition and use the noise reduction tools there.

  • I read the article on how to remove Bing; however, it does not show up on my list of installed programs and it does not show up in the list of extenstions under "Tools" and "Addon" yet it is installed as an extention to the right of the addlress line.

    I read the article on how to remove Bing; however, it does not show up on my list of installed programs and it does not show up in the list of extenstions under "Tools" and "Addon" yet it is installed as an extention to the right of the addlress line. It is not my home page. Help!!!

    See also:
    *https://support.mozilla.com/kb/Removing+the+Search+Helper+Extension+and+Bing+Bar
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Resetting_preferences

  • How can I separate Left and right audio channels in labview 8.5 tia sal22

    How can I separate Left and right audio channels in labview
    8.5 tia sal22
    Greetings All
    I have a working Labview vi that converts a math formula to an
    audio signal.  I would like to have the
    right and left audio channels playing different math audio signals is this
    possible?
    Example
    Right channel -> plays the audio signal created by a math
    formula
    Left channel -> plays the audio signal created by another
    math formula with adjustable phase control
    I’ve included a VI with a working audio and math formula but
    I’m not sure how to separate the left and right channels.
    I’m using labview 8.5
    I looked up a similar question on the
    support board and it said” use an instance of the the Sound Output Write that
    has a 1D waveform data type input (i.e.  Sound Output Write (DBL)). Each
    element in the array would correspond to a channel.”
    But I’m not exactly sure what he meant.  I’m using a formula to generate the wave file
    Tia sal22
    Attachments:
    fixed mathscript formula to sound test.vi ‏680 KB

    Sorry it took so long to get back.  Here's the new VI with it splitting out the left and right channels. 
    I'm using a Gigaport HD 8 output usb audio device but I'm experience clicks and pops.  I increase the buffers
    but I still get the clicks and pops.  I know gigaport HD can use ASIO drivers which most likely would solve the problem but one needs to code in C for this which I'm not proficient in.  Can someone recommend a work around to prevent this clicks and pops, can I somehow change my VI to fix this? Does anyone have a VI that will allow access to the ASIO latency properties?
    I'm using labview 8.5
    And a gigaport HD which is a USB audio device which outputs 8 analog signals (it is ASIO compatible)
    tia sal22
    Attachments:
    lvt_audio_realtime-out left right device ID test.vi ‏68 KB

  • How to remove an app that does not have an X

    how to remove an app that does not have an X
    i.e.  stocks

    @greg1424
    Who needs newsstand ? It depends if you enjoy reading the newspaper or magazines in your spare time.  Back in the day, you find that small child delivering your morning newspaper.  You open the door, you found out that the next door neighbor stole your daily newspaper, now you have to buy a new one at the neighborhood deli.  Now Newsstand, fix that by delivering the news you love to your iOS device.  Drink some coffee, while flipping pages on your phone or iPad.  Guess what?  You saving the earth, no one stealing your paper and is available anytime you want.   Plus their subscriptions are cheap, so view the link to read more about it.
    Use Newsstand on your iOS device - Apple Support
    Is pages and numbers free?  Is free, you activated or purchased on or after September 1, 2013. Read the link below for more details
    Free Apple apps for your iPhone, iPad, and iPod touch with iOS 8 - Apple Support
    Cheers,
    Wilkie

  • Trying to update iPad mini. Old email continues to appear and can't authenticate. How to remove it totally and use my iCloud I.D.?

    Trying to update iPad mini. Old email continues to appear and can't authenticate. How to remove it totally and use my iCloud I.D.?

    If you have any apps that were acquired with the old ID they will always be tied to that ID. Delete them and reacquire them with the new ID that you have in Settings > iTunes and App Store

  • How to remove all columns and cells in numbers

    how to remove all columns and cells in numbers

    Click on the Table's icon in the Sheets list. Press delete.
    Done.
    Regards,
    Barry

  • HT1338 hi i need the Mac OS X version 10.7.4 or later. How can i update it and does it cost money to do so?

    hi i need the Mac OS X version 10.7.4 or later. How can i update it and does it cost money to do so?

    Upgrading to Snow Leopard, Lion, and Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    You can purchase Snow Leopard contact Customer Service: Contacting Apple for support and service. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    Third-party sources for Snow Leopard are:
    Snow Leopard from Amazon.com
    Snow Leopard from eBay
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    You can purchase Lion contact Customer Service: Contacting Apple for support and service. The cost is $19.99 (as it was before) plus tax.  It's a download.
    Be sure your computer meets the minimum requirements:
    Apple - OS X Mountain Lion - Read the technical specifications.
    Macs that can be upgraded to OS X Mountain Lion
      1. iMac (Mid 2007 or newer)
      2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
      3. MacBook Pro (Mid/Late 2007 or newer)
      4. MacBook Air (Late 2008 or newer)
      5. Mac mini (Early 2009 or newer)
      6. Mac Pro (Early 2008 or newer)
      7. Xserve (Early 2009)
    Are my applications compatible?
    See App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS.
    Am I eligible for the free upgrade?
    See Apple - Free OS X Mountain Lion upgrade Program.
    For a complete How-To introduction from Apple see Apple - Upgrade your Mac to OS X Mountain Lion.
    Model Eligibility for Snow Leopard and Lion.
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.
    Lion System Requirements
      1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
      2. 2GB of memory
      3. OS X v10.6.6 or later (v10.6.8 recommended)
      4. 7GB of available space
      5. Some features require an Apple ID; terms apply.

  • How to remove AM extension and substitution from server

    Hi,
    Can somebody please tell me how to remove existing subsitution and extension of AM from server.
    Regards
    Swati

    Swati,
    You can delete the substitution by using an API jdr_utils.deletedocument('<path>').
    The path will be like 'oracle/apps/ap/xx/customizations/0/server/...'
    Regards,
    Gyan
    Edited by: Gyan on Jun 3, 2011 7:28 PM

  • HOW TO REMOVE SHOPING REPORT AND COPMARE TRAVEL RATES FORM MAIN TOOL BAR IN FIR FOX ?

    # Question
    HOW TO REMOVE SHOPING REPORT AND COPMARE TRAVEL RATES FORM MAIN TOOL BAR IN FIR FOX ?
    WHEN EVER i AM SEARCHNING IN GOOGLE IN LEFT SIDE SHOPPING REPORT APPIR AUTOMATICALLY.

    Yahoo Messenger by default installs a number of extras such as the Yahoo toolbar and a browser plus plugin. There are a couple of places to check to uninstall these. First is the add-ons manager, for details on uninstalling via the add-ons manager see the [[Uninstalling add-ons]] article. If the Yahoo toolbar is not listed there, you can check the Windows control panel. The BrowerPlus plugin will probably also be listed in the control panel.
    You should be able to remove it from the Windows control panel.
    * From the Start menu, select Control Panel
    * Open the list of installed programs:
    ** If in icon view, click Programs and Features
    ** If in category view, under "Programs", click Uninstall a program
    * In the list of programs select the program, and then click Uninstall.

  • I think I have opened the sobig.f virus in my hotmail account and it keeps seding emails to my contacts. How do I stop it, and will it effect any of my other transactions like internet banking/shopping, is it safe?

    I think I have opened the sobig.f virus in my hotmail account and it keeps seding emails to my contacts. How do I stop it, and will it effect any of my other transactions like internet banking/shopping, is it safe To continue using my ipad ?

    This isn't due to malware. There is no known malware capable of infecting an iPad that has not been jailbroken (ie, hacked to allow apps from outside the App Store).
    As lizdance40 says, your Hotmail account has been hacked remotely. Change the password immediately. Hotmail accounts are popular targets, but as long as you choose a good password, and make sure that password is not the same as a password you use with any other account, you should be safe.
    I disagree with lizdance40's statement that you have to abandon the account and create a new e-mail address. If a hacker is able to get back in even after changing the password, the problem is not with the account itself. There's another vulnerability of some kind somewhere. Perhaps the account allows hackers to leave a "back door" to get back in (such as with GMail's delegation feature), in which case any such feature needs to be reviewed and have settings changed. Perhaps you are checking mail in an insecure manner while on an insecure network (ie, a wireless network that requires no password). Perhaps you are using a password on multiple accounts, and a different account has been compromised. Perhaps a hacker has used knowledge gained by prior access to your account to achieve "social hacking" (ie, convincing a tech to give him access because he has "forgotten the password"). There are many scenarios, but there's no good reason to abandon the account entirely.

  • Reduce background noise and increase audio volume?

    Hi!
    I have a movie with very bad static/background noise and low volume. I've been playing around the NewBlue cleaner AB, but I have yet to get a satisfactory results. Any hints/tips that might help me out? Or is it not powerful enough to get a good result?
    Also, I've noticed the volume becomes even lower after running the filter.
    How do I adjust the "clip volume" in edit effects past 6dB? If this is not possible, why?
    Thank you!

    Well, increasing the audio volume is easy. But doing it without also increasing your background noise is much harder. In fact, unless it's of a specific frequency that you can filter out, it's pretty much impossible. That's why a lot of Hollywood movies and TV shows have to "loop" or re-record dialogue for a scene if there was too much wind or background noise.
    The easiest way to raise a clip's audio level is to click on it and select Audo Gain, and then increase the gain level.
    This, though, won't get rid of the background noise.
    Bill Hunt has some tips that may be helpful.
    http://forums.adobe.com/thread/572518?tstart=0

  • How to remove win 8 and install win 7 in bootcamp

    I want to completely remove win 8 and install win 7 in bootcamp. I followed the steps in bootcamp assistant and it appears to remove the win 8 partition. However when starting a new win 7 bootcamp partition and installation setup still thinks win 8 is being used. how do I get it to recognize the win 7 now being installed from the usb drive? This is on an iMac 27 late 2012 with OS x 10.10.1

    Hi Janesdf,
    Welcome to Lenovo Community!
    As per the query we understood that you are looking for Windows downgrade on your Ideapad N580.
    Before doing any changes in the system HDD partition or with Windows OS, I suggest you to create the system recovery media and then you can downgrade the OS. But you require Windows 7 recovery media.
    Hope this helps.
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Can anyone tell me how to remove 'moire-noise' in LR4

    Hey
    I might use a photo from an old brochure from 1971. I've used my scanner in 800 pix - so it's a 'heavy' pic, but I have a lot of 'moire-noise' in it. Can I remove this noise in LR4? - and if - how to do it?
    This image is only 1600 pix - the original is 4000x5408 pix.
    BRLars, Denmark

    In LR4, use the Brush tool, set the Moire slider to the right of 0. Or is it to the left of 0? (I haven't actually used this yet). Well, you can experiment, as the editing is non-destructive.

  • How to remove Suspend ,Abort and some more from Bulk Actions

    Hi
    Does anybody have an idea as how to remove action such as Suspend,Abort but not all from Bulk actions in enterprise server.I am using 10.3.1 version.
    Any kind of suggestion will be greatly appreciated.
    Ritu

    What are you trying to accomplish here? By the sounds of it you want a way to be able to bulk abort, but not have the user be allowed to do this to individual instances...
    If so, I'd recommend setting the activities to NOT be abortable or suspendable, and add a Grab activity in a support role. Then make the grab, be abortable. This makes it so that a 'super user' (ie one with support role), can go in, select several instances, grab them, then abort them but normal users can not.
    Just a thought...
    HTH
    -Kevin

Maybe you are looking for

  • Content moving in ie (not safari, FF)

    I am designing a site and when previewing in FF & safari the text areas are similar in look & ok but when I preview in ie the page text flows off the page & the layout looks much larger. ex:link www.carbon9.com/home.html

  • Replacing a special character in a string with another string

    Hi I need to replace a special character in a string with another string. Say there is a string -  "abc's def's are alphabets" and i need to replace all the ' (apostrophe) with &apos& ..which should look like as below "abc&apos&s def&apos&s are alpha

  • Is there a class that covers the GSS 4490?

    I've seen some pretty-good documentation on CCO, but nothing beets a class if one is available for fast ramp-up time. Is there a class the the Cisco GSS that anybody knows of? Thanks!

  • Why is there no iOS 6 update for the iPad 1?

    Does anyone know why the original iPad can't be updated with iOS 6?

  • IPad User Manual

    I have the original iPad hardware, now updated to the most current IOS. Is there a newer PDF User Manual that reflects changes in the operating system? The manual I have is for IOS 4.2 and my iPad is now using 4.3.