Help me in this method please

I have this problem in this method. This method receives a Creator object(contains: String sip, Sting dip)
but is returning only the last two, not the first one.
It seems that the first creator that I input goes stright to the last return, do not passes through the for loop
So I don't have idea what is going on.
  public Display check(Creator c){
    int counter=0;    
    int index;        
    Display nD = new Display();
    Creator c1 = new Creator(c._sip,1);  
    if(c._sip.equals("")){
      Display nopacket = new Display();
      return nopacket;
    for (index = 0; index < currentSize; index++){
      if (c._sip.equals((data[index])._sip)){  // Check if the index of the data base is equal to the input
        counter = data[index]._counter += 1;   // If it is increment the counter
        nD = new Display(c._sip, c._dip, counter); // initialize the display
        return nD;                             // return the new display with the incrementation of the counter
      else
        nD = new Display(c._sip, c._dip, 1, c._flag);
    enqueue(c1); // Insert the new creator to the database
    return nD;
I suppose to have:
192.168.1.1  192.168.4.4  1  0
192.168.2.2  192.168.5.5  1  0
192.168.3.3  192.168.6.6  1  0
and I got:
    0  0
192.168.2.2  192.168.5.5  1  0
192.168.3.3  192.168.6.6  1  0please help me.
Thanks.

counter = data[index]._counter += 1;  
nD = new Display(c._sip, c._dip, counter);
return nD; 
//should be
nD = new Display(c._sip, c._dip, counter);
counter = data[index]._counter += 1;  
return nD;you are incrementing your counter b4 showing the first item (item 0).

Similar Messages

  • I need help instantly on this program please

    import java.util.*;
    public class D3
              private static int[] z = new int[100000];
    private static int first=z[0];
              private static int last=z[n-1];
              private static int n=100000;
    public static void main(String args[])
    Scanner input=new Scanner(System.in);
    for(int i=0;i<z.length;i++)
              z=2*i;
    int seqSearch(z;50000;n); //method call 4 key where key=mid
              int binSearch(z;first;last;50000);
              int seqSearch(z;35467;n); //method call 4 key where key in the left half
              int binSearch(z;first;last;35467);
              int seqSearch(z;89703;n); //method call 4 key where key in the right half
              int binSearch(z;first;last;89703);
              public int seqSearch(int z[];int key;int n)
         long start = System.currentTimeMillis();
    int count=0;
    int ans=-1;
    for(int i=0;i<n;i++)
    if z[i]=key
    count++
    {ans=i
    break;}
    return ans;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
         public int binSearch(int z[];int first;int last;int key)
         long start = System.currentTimeMillis();
         int count=0;
         if(last<first){
         count++;
         index=-1;
         else
         count++;
         int mid=(first+last)/2
         if(ket=z[mid]{
         index=mid;
         else
         if(key<z[mid]){
         index = binSearch(z[];first;mid-1;key);
         else
         index=binSearch(z[];mid+1;last;key);
         return index;
         long elapsed = System.currentTimeMillis() - start;
         System.out.print("Execution Time:" + elapsed);
         System.out.print("# of Basic Operations:" + count);
    // if anyone could tell me whats wrong with my code i'd be greatful...the program is supposed to perform binary and sequential search on a sorted array of 100000 numbers.once on an item in the middle of the array once on the right side of it and once on the left side...i also need to count the number of basic operations for the same number in both sequential and binary to see whats better.and i need to check the time...plz i need help now,,,

    "Guide to a first-time poster"
    you need to add exclamation marks to signify how urgent it is
    e.g.
    i need help instantly on this program please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    capital letters is better
    I NEED HELP INSTANTLY ON THIS PROGRAM PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    starting the italics on line 1, better again
    import java.util.*;
    public class D3
    private static int[] z = new int[100000];
    private static int first=z[0];
    private static int last=z[n-1];
    private static int n=100000;
    public static void main(String args[])
    Scanner input=new Scanner(System.in);
    for(int i=0;i<z.length;i++)
    z=2*i;
    int seqSearch(z;50000;n); //method call 4 key where key=mid
    int binSearch(z;first;last;50000);
    int seqSearch(z;35467;n); //method call 4 key where key in the left half
    int binSearch(z;first;last;35467);
    int seqSearch(z;89703;n); //method call 4 key where key in the right half
    int binSearch(z;first;last;89703);
    public int seqSearch(int z[];int key;int n)
    long start = System.currentTimeMillis();
    int count=0;
    int ans=-1;
    for(int i=0;i<n;i++)
    if z=key
    count++
    {ans=i
    break;}
    return ans;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
    public int binSearch(int z[];int first;int last;int key)
    long start = System.currentTimeMillis();
    int count=0;
    if(last><first){
    count++;
    index=-1;
    else
    count++;
    int mid=(first+last)/2
    if(ket=z[mid]{
    index=mid;
    else
    if(key><z[mid]){
    index = binSearch(z[];first;mid-1;key);
    else
    index=binSearch(z[];mid+1;last;key);
    return index;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
    and what about the dukes, offer 10 (never to be awarded, of course)
    do this, then sit back and watch the replies roll in.

  • TS3694 hello i am trying to update my phone . i am connecting it to itunes but it is giving error 3194 . can you help me resolve this problem please.

    hello i am trying to update my phone . i am connecting it to itunes but it is giving error 3194 . can you help me resolve this problem please.

    Hi ali hakim,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots.
    iOS: Restore error 3194 or 'This device isn't eligible for the requested build'
    http://support.apple.com/kb/TS4451
    This occurs when iTunes is unable to communicate with the update-and-restore server (gs.apple.com). This is most likely because it is being blocked, redirected, or interrupted by security software, hosts-file entries, or other third-party software.
    Cheers,
    - Judy

  • Hello, I have been exporting my photos with a watermark. Without changing any settings, half way through my day things changed, and now about 1 out of 7 photos have the watermark after export. Change you helpe me change this back please?

    Hello, I have been exporting my photos with a watermark. Without changing any settings, half way through my day things changed, and now about 1 out of 7 photos have the watermark after export. Change you help me change this back please? Has anyone had this issue before?

        I'm sorry to learn that you have endured the audio issues outlined in your post for almost 2 years SusanLM1! This is certainly not normal! Let's get to the bottom of this issue, first please confirm your phone model; your mention that you have the iPhone 5 but your post is on the iPhone 5S forum. Also, share the iOS version currently installed on your phone. What is your ZIP code? Does this happen mainly while you make/receive calls from a particular location (home, office, etc)?
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport

  • TS1424 I get "We could not complete your iTunes Store request. An unknown error occurred (4002)  Can any person help me with this on, please?

    I get "We could not complete your iTunes Store request. An unknown error occurred (4002)  Can any person help me with this on, please?

    Turning off iTunes Match and Genius and then turning them back on appears to have worked for some people e.g.
    https://discussions.apple.com/message/22059685#22059685
    https://discussions.apple.com/message/18427550#18427550

  • Inspect this method please.

    Hello,
    I would greatly appreciate some feedback on this method. The method is part of a class that is part of a project called FileSwap which I am developing in school. (My first networking app)
    Please ignore any syntax errors (I just wrote this up and haven't compiled...), and assume that a connection is established and all variables have been properly initialized. I am only looking for feedback on the meat of the method and logic, mainly reading from the socket and writing to a file. Lastly, the method is by no means complete...
    Thanks in advance...
    // FileSwap - receiveFile()
    private final int LENGTH_TO_READ = 1024;
    private String lastFileRequested;   // set for every sendCommand() not containing "List"
    private String separator;          // dependent on OS
    private String sharedDirectoryPath;
    byte[] bytesRead;
    InputStream is;
    BufferedInputStream bis;
    FileOutputStream fos;
    Socket fsSocket;
    public void receiveFile()
         // Before saving the file, verify to overwrite if it already exists
         int overwrite;
         File testOverwrite = new File(sharedDirectoryPath + separator + lastFileRequested);
         if (testOverwrite.exists())
              overwrite = JOptionPane.showConfirmDialog(
                   null,
                      ("File: " + lastFileRequested + " already exists. Overwrite?"),
                   "Message from FileSwap.",
                   YES_NO_OPTION);
              if (overwrite == JOptionPane.YES_OPTION)
                   // Save the file
                   try
                        fos = new FileOutputStream(sharedDirectoryPath + separator + lastFileRequested);
                        bytesRead = new byte[LENGTH_TO_READ];
                        // Get the sockets input stream
                        is = new InputStream(fsSocket.getInputStream());
                        bis = new BufferedInputStream(is, LENGTH_TO_READ);
                        // read the bytes, write them to a new file
                        while ((lengthRead = bis.read(bytesRead, 0, LENGTH_TO_READ) != -1)
                             fos.write(bytesRead, 0, lengthRead);
                   catch (IOException ioe)
                        JOptionPane.showMessageDialog(null, ioe.getMessage());
                   // TODO: cleanup
              else
                   // Do not overwrite, save new or discard...
                   // TODO
         else     
              // File doesn't exist, just save it
              try
                   fos = new FileOutputStream(sharedDirectoryPath + separator + lastFileRequested);
                   // Get the sockets input stream
                   is = new InputStream(fsSocket.getInputStream());
                   bis = new BufferedInputStream(is, lengthToRead);
                   // read the bytes, write them to a new file
                   while ((lengthRead = bis.read(bytesRead, 0, lengthToRead) != -1)
                        fos.write(bytesRead, 0, lengthRead);
              catch (IOException ioe)
                   JOptionPane.showMessageDialog(null, ioe.getMessage());
              // TODO: cleanup
    }

    If I use a buffer larger than 8192, I would have to set the socket receive buffer to reflect this... correct?Not necessarily. Large socket receive buffers always help, but there's no necessary connection between the size of the application buffer and the size of the socket receive buffer. The reason I said 8192 is that BufferedInputStream has an 8192 byte buffer.
    This would also prove to be much faster when downloading large files... correct?Definitely, and in this case the larger the socket receive buffer the better. Set it to 64k-1.

  • Hey guy can you please help me with this issue PLEASE!

    Hey Apple can you please help me with this issue, i have a iPhone 3gs and when i put my sim card into the iPhone it makes iphone 3gs shut down suddenly how do i fix that?
    iPhone version: 6.0.1
    service provider: Vodafone nz

    You could restarting your phone that sometimes fixes issues
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • Air 2.0 Auto update Feature Experts help me on this issue  please.......

    Hi ,
          Is it possible to Auto update  a air application using air 2.0 beta . If so can any one post me the  related link.
    I recently updated my flex builder 3  to 3.2 and along with Air 2.0. One of my old project which has a auto  update feature seems to be not working
    I get this error message
    "  VerifyError: Error #1053: Illegal override of callInContext in  _ApplicationUpdaterDialogs_mx_managers_SystemManager." What should i do  to over come this problem please help me .
    Regards,
    Rahul.

    Hi Rahul,
    I understand that you're using Flex 3.x SDK with AIR 2 beta 2 SDK overlay.
    Make sure you're using (linking in your project) the Flex3 compatible UI lib from AIR 2 beta 2 SDK: that's the one under "frameworks\libs\air\flex3\applicationupdater_ui3.swc".
    The default UI lib available with AIR 2 beta2 SDK under  "frameworks\libs\air\applicationupdater_ui.swc" is compatible with Flex4.
    Hope this helps,
    Best regards,
    Dragos Georgita | AIR Engineering

  • I need help to solve this method

    public interface ObstacleCourseInterface {
      /* THE RECURSIVE-BACKTRACKING method which exhaustively searches
       * the maze for an exit.
       * Returns: TRUE to the caller if at the current level, it found an
       * exit OR false, if it cant go anywhere else from the current position
      public boolean findTheExit(int row, int col);
      /*  Used to determine whether you can move into array[row][col].
       *  It can only move into that cell if it is not a wall and it is
       *  not already in the current path.
       *  Returns true if you can move in, false if you cannot.
      public boolean possible(int row, int col);
      /* Returns the start row for the pacman. Determined
       * by reading in the input file and searching for the 'S'
      /* Return a textual representation of the maze */
      public String toString();
      // Some getter methods needed by the GUI
      public int getStartRow();
      /* Returns the start column for the pacman. Determined
       * by reading in the input file and searching for the 'S'
      public int getStartColumn();
      /* This method returns a reference to the 2D char-array used by YOU
       * to represent the obstacle course(which is constructed from a filename
       * specified during the construction of a new ObstacleCourse object).
       * Returns: Reference to YOUR 2D char-array instance variable
      public char[][] getArray();
    }how do I solve for the possible method??
    so far this is how I have created it:
    public boolean possible(int row, int col) {
              boolean result = false;
              char [][] array = this.getArray();
              if (array[row][col] != '+' && ???? )
                   result = true;
              return result;
         }I don't know how to solve for the current path

    What sort of visa card is it, debit or credit ? If it's a debit card then I don't think that they are still accepted as a valid payment method in all countries - from this page :
    You may be able to use other payment types in your country, like debit and Maestro cards.
    which implies that they are not accepted in all countries, and there have been a number of posts about them being declined.
    You haven't changed the address on your iTunes account (a card needs to be registered to exactly the same name and address, including format and spacing etc, that you have on your iTunes account) and you are still in the country where the card was issued ? You could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management

  • Help me sleuth this quirk, please!

    While browsing various "themes" (to customize the look of the desktop), I ran across a little freebe that looked interesting and harmless, so installed it. (It was not part of a theme, but something separate.) I HATE what it does, but foolishly don't remember where this thing was installed. Surely someone can give me a hint where to look, when I tell you what it does.
    (I don't know what it's called, so can't Find on it, and I couldn't come up with key words that would help me Google back to the source of this thing.)
    The effect is this: documents that are not the front document on your screen become largely transparent. This is supposed to make viewing and navigating your desktop easier.
    To the contrary, it's horrible. The "bleed-through" isn't just annoying, it actually makes certain things unreadable. (One example: click the Options button when selecting and setting a screensaver, and a "popout window" emerges, where you can select options; but you can't read the options because the windows become translucent, so they are overlayed, visually garbled.)
    I went to various places in my Libraries, looking for something put there recently (that day), but for all my sleuthing, was unable to find what it is that's changing the look of my desktop.
    Any idea what this thing might be called, genericly or otherwise, or where to look for it?
    I did install ShapeShifter and downloaded some themes. But this thing, while perhaps hyped on a page that also had themes (or maybe it was from a link), was something different. (I looked at dozens and dozens of sites, so trying to go back and find them all, to scour the pages, would be difficult. And I already did a clean install recently, so would hate to have to go through that again.)
    Anyone who can help me solve this will be remembered fondly for life. Is that enough? Thanks!
    24" iMac   Mac OS X (10.4.9)  

    "Themes" on OS X are what we call "haxies." While the sites that host them may say they are safe to use on OS X, don't use them. They can end up breaking your system, eating up all your computer's power, and meesing up your data.
    I would suggest backing up your home folder, and then popping in a Tiger DVD or the CDs that came with your computer, rebooting the machine while holding C, and then "Archiving and Installing", OS X, to refresh the system back to it's factory, not-haxied state.
    Be sure to run Software Updater several times after this to update your system.
    Here is how to Archive and Install:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1103.html

  • Need help with project (calling methods) please!!

    Hi there i have a project for uni requiring me to create a java program that creates a random No. and lets the user have three guesses to find the No. When the users guesses correct he gets a message telling him hes won and if he doesnt get it correct he gets a message telling him the correct No then terminates.
    The code has to call an outside method called[b] Public Static Boolean CheckGuess
    I have tried to create this and got it to compile with no errors (eventually) but i keep getting a message saying i have whenever i type any number in. I think the problem is the way i am calling the method i havnt got much experience this is all pretty new to me any help would be really appreciated. Thanks.
    import javax.swing.*;
    import java.util.*;
    public class Coursework1{
         public static void main(String args[]){
              int randomnumber,usersguessint,checkguess,guessvalid,attempts;
              String usersguess,output;
              boolean match;
              //create random number generator
              Random numGenerator = new Random();
              //generate a random number between 1 & 10 inclusive
              randomnumber = Math.abs(numGenerator.nextInt(9))+1;
              //initialize variable attempts
              for ( attempts = 0; attempts < 3; attempts++ ) {
                   //ask user for his first guess
                   usersguess=JOptionPane.showInputDialog("Please enter your guess between 1 & 10");
                   //convert users guess to integer
                   usersguessint = Integer.parseInt(usersguess);
                        //validate input
                        while (usersguessint<1||usersguessint>10){
                        usersguess=JOptionPane.showInputDialog("You entered an incorrect number \nPlease enter a numberbetween 1 & 10");
                         //convert users guess to integer
                        usersguessint = Integer.parseInt(usersguess);
                        } //end while loop
                             //call boolean method
                             if (match=true){
                             //display text area in JoptionPane
                             output="You won";
                             JOptionPane.showMessageDialog(null,output,"You Won",JOptionPane.INFORMATION_MESSAGE);
                             break;}
                             else{
                             output="Try again";     
                             JOptionPane.showInputDialog("Try again");
                                  }     //end if
                   } //end for
              }//end main
                             //user defined method
                             public static boolean checkGuess(int usersguessint,int randomnumber){
                             boolean match = false;
                             if (usersguessint == randomnumber){
                             match = true;
                             return match;
                             }//end method
         }//endclass

    Thank you very much that worked a treat the program is working better now. I have just realised that my for loopcontaining my counter may be in the wrong place as the program is running though both messages 3 times e.g
    "Please enter your guess between 1 & 10"
    "Try again"
    "Please enter your guess between 1 & 10"
    "Try again"
    "Please enter your guess between 1 & 10"
    "Try again"
    "Please enter your guess between 1 & 10"
    "Try again"
    I want my program to run like
    "Please enter your guess between 1 & 10"
    "Try again"
    "Try again"
    "Try again"
    Do u think if i placed my for stament (counter) in between the two messages it would eliminate this problem.

  • Help with a workflow / method please.

    Hi,
    I'm new to this forum and a three month novice, so please bear with me.
    What I’m trying to do is create a “photo album” where the 3D camera moves from photo to photo and as it reaches each photo, the video there plays, then stops, then we move on to the next photo.
    I have created an animatic to show the idea:
    Link: [http://reels.creativecow.net/film/animatic]
    I’m happy that I understand how to use framing and hold frame behaviors to get the movements and the video segments to play.
    But, here’s the question:
    Each video is an edited piece, maybe an interview, of about two to three minutes in length.
    So,how best to assemble this?
    Do it all in Motion, bring in all the 2/3 minute videos and then render, or,
    Create the camera motion and then render out and composite the video segments in FCP.
    ( I do want to keep the perspective views of the video segments as shown, not bring the video to full frame )
    Or is there another method / way to do this more easily?
    All suggestions will be gratefully received.
    Regards, Euan.

    Hi Adam & Christina,
    Thank you both for your help.
    Sorry for the delay in answering, but I've been putting your thoughts to the test.
    Adam, I hadn't made the connection that I could put the motion project back into FCP without rendering it first.
    That helps a great deal.
    Perhaps you could explain more about that still frame and how it would be of help?
    Christina, yes, templates make sense. However the insert video segments to go in the drop zones would be of varying lengths. As far as I know, I can't alter the duration of the template within FCP?
    I have thought of a variation on the above thoughts.
    A) make the main Motion camera animation with drop zones, save as template.
    B) make another template where I have removed all objects except the drop zones.
    C) bring both templates into FCP, where I can slice and extend template A to suit the length of the videos put into template B.
    I am proposing putting template A on V1 and B on V2.
    I am hoping this will give me timing flexibility, without having to go back and forwards to Motion from FCP.
    Do you think this is feasible?
    Many thanks, Euan.

  • NEED HELP WITH USING STATIC METHOD - PLEASE RESPOND ASAP!

    I am trying to set a value on a class using a static method. I have defined a servlet attribute (let's call it myAttribute) on my webserver. I have a serlvet (let's call it myServlet) that has an init() method. I have modified this init() method to retrieve the attribute value (myAttribute). I need to make this attribute value accessible in another class (let's call it myOtherClass), so my question revolves around not knowing how to set this attribute value on my other class using a static method (let's call it setMyStuff()). I want to be able to make a call to the static method setMyStuff() with the value of my servlet attribute. I dont know enough about static member variables and methods. I need to know what to do in my init() method. I need to know what else I need to do in myServlet and also what all I need in the other class as well. I feel like a lot of my problems revolve around not knowing the proper syntax as well.
    Please reply soon!!! Thanks in advance.

    class a
    private static String aa = "";
    public static setVar (String var)
    aa = var;
    class b
    public void init()
    a.aa = "try";
    public static void main(String b[])
    b myB = new b ();
    b.init();
    hope this help;
    bye _drag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • New GFX card, Quartz Extreme error, and suddenly FCP 6 will not run. Help me fix this problem please!

    Model Name: Mac Pro Model Identifier: MacPro1,1 Processor Name: Dual-Core Intel Xeon Processor Speed: 3 GHz Number Of Processors: 2 Total Number Of Cores: 4 L2 Cache (per processor): 4 MB Memory: 7 GB Bus Speed: 1.33 GHz
    My old GFX card nVidia GeForce 7300GT which is busted.
    I replaced it with a nVidia NVIDIA Quadro FX 4500 from a Mac Pro of the same generation.
    I'm now getting a Quartz Extreme error whenever I try to run Final Cut Pro 6 or Compressor. "This system does not meet the following minimum requirements: Final Cut Pro 6 requires that your system have a Quartz Extreme capable video card."
    Well, I checked the specs of the card and it does support Quartz Extreme. So why isn't FCP 6 running?
    Looking under the System Profiler > Graphics/Displays, it doesn't say the Cinema HD Display supports Quartz Extreme, but how could that be, because the Quadro 4500's specs online says it does?!! This was the better GFX card made for the same generation of Mac Pro but somehow doesn't work!
    This is also effecting my DVD player App with an error: "A valid video device could not be found for playback: -70017". Which has never happened before either.
    I've researched online and can't find anything that works.
    The card has power running to it and the monitor is hooked into the closest DVI port to the logic board which most of people with the same problem have done to fix this. I've also gone into the Disk Utility and ran both Verify and Repair permissions and the same for the boot disk.
    Nothing. I'm stumped. Short of trying to flash the ROM on the GFX card I'm not sure what to do. And I'm not comfortable doing that. Help please?
    I'm using Final Cut Pro 6 and subsequent older versions of Motion and Compressor, not FCP X or companion series.
    HELP!!!!

    You should go to the Mac Pro community to get a better audience.
    https://discussions.apple.com/community/desktop_computers/mac_pro

  • Help me clean this audio, please.

    Hello everyone.
    I need advice from anyone who is willing to help. I have some video footage for which I'm trying to clean up the audio. I'm hoping to get rid of the noise and also EQ or anything else to get the audio sounding as good as possible.
    I am willing to use Logic or Soundtrack Pro for this, as I have both.
    The source material was recorded with a camcorder microphone, so I'm sure it will never be miraculous, but I'm hoping you can all give me some tips about how you would go about getting this audio sounding better. It's a videotape of a musical called "Once On This Island".
    Here is an mp3 file with two excerpts from the show. The first part is a large ensemble number, and the second part is a quieter section with some dialogue and some solo singing. This way you can hear the range of what is in the audio.
    www.stevenleigh.net/island.mp3
    Please download the file and listen, then give me advice on the best way to clean it up.
    Thanks in advance!

    Download the demo of iZotope RX-it will denoise your material very good and very fast.
    http://www.izotope.com/products/audio/rx/
    You can use the demo for some days and it's fully functional. Use it in standalone mode or in realtime as a AU-Plug In.

Maybe you are looking for