How can i correct this?

Hi
i have an X number of arrays (256 samples each) that represent a speech signal broken down into this X number arrays. I have also another array of Y elements that each element represents the pitch period length (in samples) of each of the arrays mentioned earlier, therefore X=Y.
I would like the arrays (of 256 samples length) when they are represented by a pitch period other than zero, to be broken down into pieces/subarrays of length equal to that of their pitch period. i.e to break down the 256 array into subarrays of 64,64,64,64 samples if that array's pitch period length was 64 samples.
 i tried to do that but i am able to get only the very first subarray. they should be repeated but i couldnt do it.
Could somebody take a look at my code and maybe tell me where im wrong?Any help is appreciated.
Cheers
Attachments:
hijacked.zip ‏37 KB
untitled.PNG ‏55 KB
Testing TD-PSOLA Algo.vi.vi ‏241 KB

Your FOR loop dies not do anyting except taking the same subset over and over again, a total of N times. Right? If you want all the subsets, you need to do two things:
Increment the offset with each iteration by the lenght of the subset. Conveniently done my multiplying with [i]. See Image.
Enabling autoindexing at the output tunnel so you keep all the slices in a 2D array. Now you can use index array to get each slice as needed.
Of course the same operation can be done in one simple operation using "reshape array" from the array palette. Check the online help. No loop needed at all!.
Your VI is also full of race conditions that can bite you due to abuse of local variables. Have a look at the image below. Your code does not guarantee that the local variable is read only after the corresponding terminal has received current data. There is a 50% change that you read a stale value! Dataflow can ensure proper execution order very easily. Just use wires instead of local variables and all parts of the code are immediately guaranteed to receive the correct and current value. Makes sense?
Message Edited by altenbach on 03-17-2007 07:29 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
reshapeFix.png ‏10 KB
Use_Wires.png ‏32 KB

Similar Messages

  • My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    If you are sure that you have sound in other apps - and if you can still hear keyboard clicks and get notifications, then system sounds are not muted. Try this and see if it works.
    Close all apps completely and reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • When I download a CD to iTunes, some CD's appear as separate albums. How can I correct this?

    When I download a CD to iTunes, some CD's appear as separate albums. How can I correct this?
    for some reason iTunes appears to believe some tracts are from a separate album. For instance, one recently released Rod Stewart CD HAS 8 tracts on one album and the remaining two tracts on two separate albums, all albums are called the correct album name?

    If your CD has tracks with different artists, or if there are differences in how the artist field is filled in for the different tracks, then you can fix this by identifying the disc as a 'compilation' CD.
    Select all of the tracks in the CD, then 'get info' (control-I), and go to 'Options'. Select 'yes' for 'Part of a compilation'. That should fix the problem.

  • My husband and I both have an i phone. When I send him a message it sends the message to myself as well - the same happens when he sends to me. How can we correct this?

    My husband and I both have an i phone. When I send him a message it also sends it back to my phone. The same happens when he messages me. His messages are also picked up on my i pad.How can we correct this?

    Are you both using the same Apple ID?
    Also check Settings > Messages > Send & Receive > make sure it only contains your unique phone number and e-mail address de-select those entries belonging to your husband.
    Do the same on his phone (de-select yours)

  • My gps is not working.  I cannot use turn-by-turn navigation in google maps.  I downloaded a GPS test app and it showed my phone is not locking on any satellites.  How can I correct this?

    My gps is not working.  I cannot use turn-by-turn navigation in google maps.  I downloaded a GPS test app and it showed my phone is not locking on any satellites.  How can I correct this?

    We certainly want to make sure you get the most out of the GPS, wplaxico! Was this tested primarily outdoors? When did this begin? Any other recent apps of updates installed when this started?
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • My iPhone 4s will not back-up because it is over capacity due to a lg. amt. of "other" data.  I don't have a lot of other data however.  How can I correct this?

    My iPhone 4S will not do a back-up because it is over it's capacity due to an excessive amount of "other" data.  However I actually have very little other data.  How can I correct this.  As it is now I can't even take a picture!  Thanks!

    Create a manual backup in iTunes, then restore it, restoring to your iTunes backup at the end.  This will usually correct this.  If it doesn't, then the problem is contained in the backup and you'll have to save as much of your data as you can, then restore it as new without using your backupo.

  • When I click on a picture or map in i.e. Kijiji real estate pages, Firefox opens it all crunched to the right side of the page. How can I correct this?

    When I click on a picture or map in i.e. Kijiji real estate pages, Firefox opens it all crunched to the right side of the page. How can I correct this?
    For instance I view an apartment ad which has various pictures attached. It says click on the pictures to see an enlarged version. FF opens the page however most of the page is blank and the picture appears to be pushed to the right side of the page and shows as if it has been scrunched agains the right side not showing the whole picture.
    What Can I do to correct this?

    I see that you have increased some font sizes considerably.
    * font.size.fixed.x-western: 20
    * font.size.variable.x-western: 22
    This can effect margins when the website specifies these as em values and cause content to shift.
    If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use the NoSquint extension to set font size (text/page zoom) and text color on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    Note that your System Details List shows multiple Flash plugins.
    * Shockwave Flash 16.0 r0
    *Shockwave Flash 12.0 r0
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    *http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
    You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
    Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can delete this user.js and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • I've recently installed IOS 7.0.3. With the latest automatic upgrade of First Class yesterday the textfields for loggning in disappears upworth. How can I correct this.

    I've recently installed IOS 7.0.3. on my Ipad4. With the latest automatic upgrade of First Class yesterday the textfields for loggning in disappears upworth. How can I correct this.

    HALF-SOLUTION!!!! (Restoring only, basically.)
    Restore the phone via iCloud.com
    1. Go to iCloud.com , and log in.
    2. If you want a back up, make sure you back it up to itunes now!
    3. Now back to iCloud.com - select the device you want. Press "Erase iPhone" (or iPad, iPod whatever).
    You will go through a few steps. Skip the phone number and leave a message, as it isn't lost. Your phone will be restored. No need for plugging in!
    4. IMPORTANT: Just set it up as usual. Language, country blah. But then you'll get to a step where it says something like "This iPhone was erased with iCloud. Log in with the Apple ID you used to erase it". In this case, my Dad's. So please do that. Later on, the phone will ask for an Apple ID to be used for the phone. I put my own one as I didn't want my dads!!!! Lol....
    5. Plug into iTunes and back-up.
    As for updating, I'm still on 7.0.2,,, it ain't working on my phone or itunes!! :(

  • Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    Over half my albums in iPhoto won't display the enlarged photo. How can I correct this?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Images appear fine in Photoshop cs6 and cc, but print too dark, and also show too dark in Windows picture viewer. How can I correct this? Is this a Photoshop setting issue or what?

    Images appear fine in Photoshop cs6 and cc, but print too dark, and also show too dark in Windows picture viewer. How can I correct this? Is this a Photoshop setting issue or what?

    Ok, look at your files in Photoshop. What is the profile assigned to them? You can find this out by going to the Status bar at the bottom, clicking on the right-pointing triangle and choosing document Profile from the list.
    Then in Windows, go to your Control Panel > Color Management and add sRGB (if it isn't there) and select it as your default profile.
    I hope that will work.

  • When i try to play music on itunes it says the original file cant be found. I have music on exyernal dive and it is working . How can i correct this

    When i try to play music on itunes it says the original file cant be found. I have music on exyernal dive and it is working . How can i correct this?

    See if you have most of the songs with 'Exclamation' symbol precede the name under your music library.
    If so, double click a song with ! mark on side, you will be given an option to locate the file where the song is held. Select "locate" and direct it to your External Drive folder / file where the song is and open it.
    iTunes then will give you the option to use this process to update all of your library.  OK that as this will fix all automatically instead of doing them one by one.

  • When I try to open a new tab using the "+" on the toolbar, nothing happens. Even trying to use the cntl t to open a new tab does not work. To open a new tab, I must right click on a hyperlink. how can I correct this? Using Firefox 3.6.18

    When I try to open a new tab using the "+" on the toolbar, nothing happens. Even trying to use the cntl t to open a new tab does not work. To open a new tab, I must right click on a hyperlink. how can I correct this? Using Firefox 3.6.18

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • In Mac Mail on OS 10.5.8 I am receiving bogus emails which claim to be sent by people in my address book, but actually are not.  How does this happen and how can I correct this problem

    n Mac Mail on OS 10.5.8 I am receiving bogus emails which claim to be sent by people in my address book, but actually are not.  How does this happen and how can I correct this problem

    You said:
    I am receiving bogus emails which claim to be sent by people in my address book, but actually are not.
    ...and:
    Are you saying that my address book has not been hacked into?  That others are getting these email addresses from another source?
    This confuses me.  Are you saying that you are receiving bogus e-mails from some of your contacts, or are you saying that they are receiving bogus e-mails from you?
    If the latter, there are a number of reasons that people might be getting e-mail from you.  Malware, though technically possible, is extremely unlikely.  See Someone is sending messages from my e-mail address!
    If the former, that's rather unusual.  The only decent explanation I can think of is that a bunch of your Windows-using contacts got infected with something and their machines are being used to spam everyone in their contact lists, which would include you.

  • The print is too small on various web sites that I open. How can I correct this?

    The print is too small on various web sites that I open. This has never happened on older Firefox versions. How can I correct this so every page I open, the print size is consistent and legible? I don't want to change it every time I open a new site.

    Hi Donna,
    Welcome to the HP Community Forum.
    Font Size and the scale (size) at which a document is printed is controlled within the application just before the job is sent to the printer -  this means the size is set from your browser (Firefox, Internet Explorer) or perhaps your Editor (Word).  Generally speaking, most applications use Print Preview -- or a variation of that program under a different name.
    An explanation and the use of Print Preview is avialble in the following document:
    Change Print Size with Print Preview
    Click the Kudos Thumbs-Up to show you appreciate the help.
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Click Accept as Solution when the Answer provides a Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • HT201342 My icloud email address is misspelled.  How can I correct this?

    My icloud email address is misspelled.  How can I correct this?

    You can't change an iCloud (@mac, @me or @icloud) email address without creating a new account.  You can, however, create an email alias with the correct spelling and use that.  It will be linked to your current iCloud account and receive email at the same inbox.  This guide explains how to create an alias: http://support.apple.com/kb/PH2622.

  • TS1702 When I try to update an App I am getting my old email address (which no longer works) and when I put in its password it says password or username is wrong. but it does not give me an option to put in my new user name. How can I correct this.

    When I try to update an App I am getting my old email address (which no longer works) and when I put in its password it says password or username is wrong. but it does not give me an option to put in my new user name. How can I correct this.

    What you are getting is the AppleID (AppleID can be an email adress) used at the time of the purchase of this app.  It is an identifiant allowing Apple to link your purchase to your account.
    If you want to manage associated email, you can go at https://appleid.apple.com but the AppleID could never be modified.  
    I do not know if in your case, it is just that you no longer use your old email address or that you actually a 2 AppleID.  In any case, you will have to remember the password related to the account used for your purchase.  If you don't, just use the link above to try to retreive your password.

Maybe you are looking for

  • BT Really slow access

    Hi, For the last weeks, my internet access is extremely slow. I've been trying to figure this issue and did a few tests - but these report everything's ok. I find it quite strange, since it's a fact that there's a latency for each request and sometim

  • 75GB IBM HD - use with MAC MINI?

    My wonderful old beige G3 MT is never used any more - still only 9.2.2. It contains a 75GB IBM hard drive (?ATA/IDE). Could I remove that drive, install it in some kind of case, wipe the disk or reformat so that I could then attach it to my Mac mini

  • Can purchased songs be re-downloaded in case of a hard-drive crash?

    I purchased several songs onto my iBook. Then my hard-drive crashed. I replaced it, but they weren't able to reload my information from that harddrive onto the new one. Although I had a back-up, it was only of a specific data file and I didn't realiz

  • GL Query Help

    Dear All, I need to retrive the je_jeader_id and je_line_number in GL for a range of account code combinations, for a range of periods, for a ledger, for a currency. I am using below query .. but which gives me values which doesnt belong to the perio

  • Use of RMDATGEN , RMDATIND in MM

    hi how do we work with direct input method and how the implicit material numbers will be assigned in uploading the data using RMDATIND.what are the other programs available in direct input method