Can anybody help with some subtleties to this code?

Hello,
I was wondering if anyone could take a look at the code in general for me, which is to go in an 'effects' pedal.  The first while loop is for a footswitch that either reads high or low.  It controls the mode of the pedal.  the first mode is the default, where no signal manipulation occurs, and what comes in the audio input just comes out; the second mode stores data (fundamental frequency, average FFT amplitude from 3 kHz to 5 kHz) from the E string of a guitar, which is plucked after that mode is actuated; the third mode does the same for the A string; and the final mode takes in a note on the E or string, recognizes it as either on the E or A string, and adjusts the frequency content to be in tune based the data stored in modes 2 and 3.  then the new magnitude vector is put through an inverse FFT and output through the DAC and sounded.
What I'm curious to know is, are there any blatant errors I've made?  Will the signal coming out of the inverse FFT be sounded through the DAC? does it need to be changed from a double to an I32?  I am trying to debug, but right now I'm having problems getting the correct output voltages on the Blackfin (the SPORT 0 pinout doesn't seem to match what is on the board....).
also, I was wondering if I will lose any phase information on the signal that I get out compared to the signal I put in.  Will it be detectable by ear?  Or would it all sound the same?  along with the phase change for some signals, using an inverse FFT resulted in a loss of amplitude (from about 1 to on the order of 10^-5.  that's a lot!).  but when the test program was played on my computer, the phase change was not noticeable from the output signal, and neither was the magnitude change!  the output played at the same volume as in the input, despite the waveform chart on the front panel showing an amplitude five orders of magnitude less!  can you help explain that to me?  what can I do, will it matter coming out of the Blackfin and into an amplifier?
i appreciate any input anyone can give me on all this!!  thank you!!
Attachments:
102 project.vi ‏287 KB

Hi noahgrant,
I've had a look at your vi and can make some suggestions that you can try.
From what I can see, your while loop with the wait timer of 100 ms and continue if true condition on it (we shall cool this loop 1) will always keep running.
The other while loop (loop 2) is nested within a couple of case structures and will only run once (false to a continue if true condition). The default case has a different condition and will always run, instead.
From what I can make of this, loop 2 and all its case structures will only run once (except for case 0, default). WHEN it runs will depend on how it was compiled on the Blackfin - case structure/loop2 may go first or loop 1 will go first.
If you want loop 2 to go first (and only go once) then you need to link the output of the case structure to the input of loop 1 - this can be done by simply wiring up a boolean to it (data flow rules).
If you want loop 2 to always be checking the status of the mode then you need to place the whole case structure within a while loop, to run continuously.
That is a very quick interpretation of what you are trying to do. There are a lot of question marks (missing vi's) and some heavy use of local variables. I would consider using sub-vi's, in particular functional global variables (FGV's).
I hope that helps.

Similar Messages

  • Can anybody help with this........I've bought a pack of self adhesive lables with a view to printing them via my printer,  However, I can't find a programme that allows me to do this.  Personnel in the MAC shops don't know either!!  I've a IMAC running on

    I've bought a pack of self adhesive labels that I wanted to print up on my IMAC,running on Snow Leopard.  However, I can't find a programme that will do this, nor can the personnel in the MAC shops.  The labels are stuck on a normal sheet od A4, and I just want to print addresses on them.   Can anybody help?

    Are they Avery Labels? If so there are templates here:
    http://www.avery.com/avery/en_us/Templates-&-Software/Templates

  • Can someone help with some coding on a muse HTML page that exported incorrectly?

    I run an NGO called warriors organization. It's an NGO trying to protect indigenous cultures in tanzania from loosing their cultures.. Our president is running a marathon In a week to raise money to build a school for maasai children.. and the marathon page got garbled on export from muse. Can someone help with recoding that page? I'm traveling and don't have the muse work file with me.. Any help is greatly appreciated.. Take a look at http://warriorsorganization.org/marathon.html. I have a screen shot of how the page should look. Contact me at [email protected]
    Thank you,
    Aric

    1. yes
    2. yes
    3. No. DVD players can't play BluRay discs -- even if they are burned to a DVD disc.
    4. 1080p50 is a perfectly legitimate mode for shooting, particularly if you're shooting video with a lot of action, since it has double the actual frames of 1080i50. However, your output video may or may not actually have 50p frames (or even be 1920x1080), depending on what form of media you're publishing as. The BluRay files that Premiere Elements outputs, for instance are 50i.

  • Can anyone help with some free real estate software for our School in the UK to practice with

    Hi Guys
    We are setting our class a task to set up their own Estate agency (real Estate) and need some basic web software for them to use to develp their own shop. can anyone help us with a IWEB template that they can copy their own photos over and rename their shop.
    Thanks in advance
    Mr Smyth Richardson
    Head of IT

    Mr Richardson ~ Welcome to the Support Communities. Some forum members have quoted Apple staff as saying iWeb is no longer a supported product. ...iWeb hasn't received a major upgrade in almost three years and is not being included in new Macs. If you're not already too committed to using iWeb, consider other free site builders such as this:
    http://education.weebly.com
    ...One of Weebly's key advantages is that a site can be updated from any modern PC or Mac — there's also this:
    Introducing Collaborative Website Editing

  • Can you help with Tcode to fill this SETUP table? not working for me.

    Hi,
    For the datasource 2LIS_11_VASCL (SD Sales: Schedule Line Item), I need to fill the Setup Tables via OLI*BW
    I understand the * to be the application number, which in this case it is 11 but I get a message that OLI11BW does not exist.
    1. Can you  help me with the tcode to fill the setup table for 2LIS_11_VASCL?
    2. Since there are several datasources with the same application number 11, how do I fill only 2LIS_11_VASCL without filling the others:
    2LIS_11_VAHDR                     Sales Document Header Data
    2LIS_11_VAITM                     Sales Document Item Data
    2LIS_11_VAKON                     Sales Document Condition
    2LIS_11_VASCL                     Sales Document Schedule Line
    2LIS_11_VASTH                     Sales Document Header Status
    2LIS_11_VASTI                     Sales Document Item Status
    2LIS_11_V_ITM                     Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL                     Sales-Shipping Allocation Schedule Line
    2LIS_11_V_SSL                     Sales Document Order Delivery
    Thanks

    Ok,
    I tried that and it basically bring you to OLI7BW as suggested above.
    1. At this point, how do you know which of these it is actually filling:
    2LIS_11_VAHDR Sales Document Header Data
    2LIS_11_VAITM Sales Document Item Data
    2LIS_11_VAKON Sales Document Condition
    2LIS_11_VASCL Sales Document Schedule Line
    2LIS_11_VASTH Sales Document Header Status
    2LIS_11_VASTI Sales Document Item Status
    2LIS_11_V_ITM Sales-Shipping Allocation Item Data
    2LIS_11_V_SCL Sales-Shipping Allocation Schedule Line
    2LIS_11_V_SSL Sales Document Order Delivery
    2. Also, what does it mean when after running OLI7BW wide, with no restriction on my system, still rsa3 shows no records for 2LIS_11_V_SCL?
    Any other way to confirm that there may not be any data in 2LIS_11_V_SCL?
    Or any way, to make an entry which reflect in 2LIS_11_V_SCL so that I can verify if OLI7BW actually fills the setup table?
    Thanks

  • Can someone help with some basic answers on Premiere Elements 12

    I have used Premiere Elements in the past (up to Premiere Elements 9) but only once per annum to edit the past year's video of my Grandchildren. The change now is that I am using a Panasonic HC-V520 and have been shooting in 1080 50p. Premiere Elements 9 doesn't support this format I believe.
    My questions are:
    1     Can Premiere Elements 12 import and edit this format?
    2     If the answer is yes to question 1, can I mix older footage from my old Sony Camcorder with this newer footage for edit in Premiere Elements?
    3     Can I then output to either a Blu Ray disc to play on my DVD Player or an ordinary DVD disc to play on an older DVD Player which is not blu ray compatible?
    4     Am I wasting my time in recording in 1080 50p and should I instead be recording new footage in a different format?
    Thanks for any help you can give me.

    1. yes
    2. yes
    3. No. DVD players can't play BluRay discs -- even if they are burned to a DVD disc.
    4. 1080p50 is a perfectly legitimate mode for shooting, particularly if you're shooting video with a lot of action, since it has double the actual frames of 1080i50. However, your output video may or may not actually have 50p frames (or even be 1920x1080), depending on what form of media you're publishing as. The BluRay files that Premiere Elements outputs, for instance are 50i.

  • I have an ipod touch 4th gen. Can anybody help with ghost files?

    Here is my problem:  I added an equalizer program called "Louder Logic", It worked great until I needed to delete most of my Loaded CD's, to create space.  I made the mistake of deleting the Louder Logic CD file first,  which created these Ghost  Files in the Apple CD file.  The files appear, but are not bolded,and cannot be played. I tried deleting all music files and reseting the ipod, but the ghost files are still in the apple program.  I would appreciate  some help if anyone else made this same mistake.

    Restore your iPod completely....

  • Can anybody help with this error message

    I work with CS5.6 on RAW pictures shot with a Canon EOS 5 Mk II and have problems saving. Mycomputer is 32-bit with 4 Gb RAM, Windows 7. 
    Die Error Message in Adobe CS5.6 ist: „ could not complete the SAVE AS command because there is not enough memory (RAM)”

    Its saying exactly what it means you do not have enough memory to save the file. You can either change the properties to save a smaller image
    Or update your computer. In order to use the entire 4GB of RAM your computer needs to be 64bit not 32. 32bit can only access 2GB of ram and some apps can access an additional GB of ram. But if you do upgrade your computer get 6 or 8 GB of Ram, you will be happy you did.

  • Can anyone help with the scripting on this file?

    Hi, I hope someone with a bigger brain can help me out here.
    I've got an existing Flash CS3 file that makes up the result at http://www.infusion-set.com/flash/Elearning/Inset30/inset30_eguide.html.
    The client has asked if I could add an extra tab at the top after 'Reconnecting' called 'Contact Us' with link to an extra page. All the design has been done in ActionScript 2 with references to XML files for the dynamic content because it's been done in other languages as well.
    I've amended the existing XML file with the correct references for a new page and an accompanying .swf file to play in the animation area.
    I've attempted a .fla version where I duplicated one of the existing tabs script, changed the XML references and changed the variables where necessary to 'con or 'Con' (representing Contact Us). Unfortunately it made the tab menu go completely off the page and was obviously wrong in some way.
    Can anyone give me a clue as to what to change here on the original file as I'm a bit of a novice with ActionScripts, hence me asking.
    For reference I've attached HTML files with the original file scripts and my incorrect version. The  timeline is 103 frames with the scripts placed at frame 1 and 102
    Thanks.
    Garry

    The buttons are all created using the same library object (but MC), except for the code you have in the revised file does not call on that for the con button.
    You have it calling on something with a linkage name of "con", which a quick check tells me doesn't exist--so it is undefined in the code when you try to use it.  I found this by using trace(newConBut._x); after its _x value was assigned, as I mentioned you should try.   So the first thing you want to do is change the following line from...
    var newConBut = _root.attachMovie("con", "conbut", _root.getNextHighestDepth());
    To
    var newConBut = _root.attachMovie("but", "conbut", _root.getNextHighestDepth());
    so that it uses the but MC that serves that purpose in the library.  Then you want to correct the _x assignment of the buttons to what I think you had earlier...
    newConBut._x = 650-newConBut._width;
    newRecBut._x = newConBut._x-newRecBut._width;
    Here is a picture of what those changes do (note, without the XML file I had to finagle things just to work, so the biutton labels aren't what they will be)...

  • Can anybody help with problems with Mail & Backup, please?

    Hi, yesterday, for some reason, a problem developed with Mail.
    Without me changing anything, while it will send and receive e-mails through my Apple account, it has stopped downloading emails from my BT account, which previously worked fine.
    It keeps trying to log on to collect them (the rotating gear wheel beside the account operates) but nothing downloads. It is not the BT account which is at fault, since my iPhone, which is synched to the computer, downloads them fine.
    Also, while I had been regularly getting advice from Backup that my storage disk was full and it was deleting an old backup, today Backup has told me that the disc is full and the backup has failed.
    I cannot see anything in Settings which could obviously account for these changes.
    i am a pretty new Apple user (a conversion I cannot claim has been a great success so far, and I would be grateful for any help you can provide.
    Many thanks,
    Neil

    Export the folders/mailboxes and put them in the other users Public folder or go to the hard drive level user and put them in the Shared folder. You may have to reset permissions using Get Info (command - I). The other user can them import them.

  • Can someone help with some quick questions?

    If someone has the time it would really help if I had the
    answers to the following questions. I appreciate they may be
    obvious or mundane to some but I am trying to set up a network at a
    primary school. I've searched the forum for answers with no luck.
    1. Where does Contribute save the settings of a provided key?
    2. Can the file(s) that contains those settings be copied
    over for other users to use?
    Thanks in anticipation

    Thanks for your reply. I'm actually using the software in a
    primary school and would like to use the stc key and thus the
    settings it creates and save them into a profile that each pupil
    user would then load up automatically. I would like to avoid them
    having to enter the details each time. It appears to work as the
    ntuser.dat file has been updated.

  • I am trying to use GoDaddy's gdform.php for a form mailer in Flash CS4. Can anybody help with coding

    Hello Everyone,
    I am starting to learn Flash and created a form mailer for a website I am working on.  The following code is what I have in AS3.0 and it all loads fine in the web browser, but I do not receive the email with the info.
    var address:String = "gdform.php";
    var url:URLRequest;
    var variables:URLVariables = new URLVariables ();
    variables.subject = "New Fighter Profile";
    submit_btn.addEventListener(MouseEvent.CLICK,sendForm);
    function sendForm(event:MouseEvent):void{
        variables.FirstName = firstname_txt.text;
        variables.LastName = lastname_txt.text;
        variables.Birthdate = birthdate_txt.text;
        variables.Nickname = nickname_txt.text;
        variables.HeightFt = hft_txt.text;
        variables.HeightIn = hin_txt.text;
        variables.Weightclass = weightclass_txt.text;
        variables.RecWins = wins_txt.text;
        variables.RecWins = losses_txt.text;
        variables.Debut = debut_txt.text;
        variables.Hometown = hometown_txt.text;
        variables.FightClub = fightclub_txt.text;
        variables.Styles = styles_txt.text;
        variables.Email = email_txt.text;
        variables.Bio = bio_txt.text;
        url = new URLRequest (address);
        url.method = URLRequestMethod.POST;
        url.data = variables;
        navigateToURL (url);
        var reqThanks:URLRequest=new URLRequest("thanks.html");
        navigateToURL(reqThanks,"_blank");
        var reqHome:URLRequest=new URLRequest("index.html");
        navigateToURL(reqHome,"_parent");
    Please Help!
    Thanks,
    John

    Maybe someone here can help.
    In spite of the site name, it is a Mac video card site.

  • Can anybody help with UCCE feature "Work Mode on Outgoing" in Agent Desk Settings

    Hi,
    my customer wants to have a wrapup time till the agents change their state to "ready" by
    themself.
    So I have configured the maximum for wrapup time 7200 sec in Agent Desk Settings.
    But I have a problem with the feature "Work  Mode on Outgoing" in agent desk settings in
    ICM 7.5.5.
    I think I  recognized the function of this feature. It works like that:
    - if  an agent gets a call via ICM or directly on his phone he will be set  into work mode
    - if he make a call and the called number answer  that call the agent is still on work
    mode after he hung up
    - but  if the called number doesn't answer that call and the agent hangs up his  phone he
    is in ready/not ready state and that isn't the expected state.
    (  you can also rebuild this when you go off hook and then on hook again)
    The  problem is when the agent in state "ready" gets a call via ICM and  after he hung up
    his phone he is in state "work Ready". Now he makes an  outgoing call but this call will
    not be answered and if he hangs up his  phone he directly gets a new call from ICM because
    he was in "ready"  state.
    Is it possible to set a registry key or do another  configuration for that feature "work
    mode on outgoing" that it works for  every new call even if the call will not be answered?
    Cheers,
    Tobias

    ed_umansky wrote:The proper way to make outbound calls is to first go Not Ready then make a call using the desktop software.
    Agreed. In fact, with CAD and CTIOS you cannot make an outbound call when Ready.
    Regards,
    Geoff

  • HT1338 Can anybody help with a very slow computer?

    My MacBook Pro is running VERY slowly. I use primarily Word and have built up a huge number of files, like 500,000. Still  have plenty of memory, however.  Occasionally, I get the spinning color wheel when I'm on Word, the system freezes and I have to shut down.  How do I "defrag" or clean up the files?  Not sure which operating system, but it's a 2010 MacBook.

    Can you tell us how much RAM  (Memory) you have? It's listed by clicking on the  in your title  bar....go to About This Mac and it's in the 1st window.
    We would also like to know what size hard drive you have and how much free space is on it.
    If you click on your Hard drive icon (should be upper right hand corner of your screen), or the Finder in your Dock...when the window opens it says at the bottom how much Free Space you have on your drive.
    If you go to the , click on About This Mac, click on More Info... in that window. The next window says how big your hard drive is under Hardware....click on Serial-ATA.....look under Capacity:
    We need to know this cause if a hard drive is too full it slows things down and creates operational difficulties.
    DALE

  • HT3275 Can anybody help me. I get this message when am trying to do my backup:The backup disk image "/Volumes/Data/Anne Prybyla's iMac.sparsebundle" is already in use.

    When i try to use time Machine for my backup i get this message: The backup disk image "volume/data/AnnePrybyla's imac.sparsebundle is already in use. What can i do

    Look over to the right of this page under the heading of More Like This for multiple answers and solutions to this bug.

Maybe you are looking for