LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can you crossfade (fade in/out) arrays?

Kevin
 
If you are still on this thread this is the new version of the PP array without any zero padding to it, the way i wanted it.
0 Kudos
Message 71 of 85
(1,438 Views)

Still hanging around, but *very* short on discretionary time lately.  I briefly tried out your earlier post with milqman's pitch-shift algorithm and the results were audibly pretty similar to what I remembered hearing before you removed the DC offset.  Haven't had a chance to dig further.

I only looked quickly at your most recent post -- the format is harder to deal with than the earlier one.  All I did was look at the length of the different 1-D arrays that were bundled into clusters and saw that they weren't uniform at 512.  I *think* I see what you did, but the data format isn't so easy to work with.

I really don't need you break down the raw data at all since I already have it in the .wav file.  I only need the result of your voice and pitch detection algorithm to tell me how to break it down.  How about the following:

Give me two 1D integer arrays of equal length.  Their contents are:

a. # of samples to consider in this chunk.  Nominal value is 512.  Actual value may be smaller (due to need for integer number of segments in voiced chunks) or larger (samples leftover from previous voiced chunks).

b. # of samples per sub-segment.  For voiced chunks, value (a) above must be an integer multiple of value (b) here.  For unvoiced chunks, value (b) here should be a special impossible value like 0 or -1 to identify the chunk as unvoiced.  Just tell me which.

-Kevin P.

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 72 of 85
(1,432 Views)
Hey Kevin
 
My deadline is arriving fast and i am not getting enough sleep thus my brain is not functioning....can you please clarify what exactly you want in the 2, 1D arrays?
 
Also, can you please tell me how i can playback the sound, from Milq's code?
0 Kudos
Message 73 of 85
(1,424 Views)
I think this is what you asked for.
 
One array has the length of each sub-segment, with 0 being unvoiced, and the other array the total number of samples for an even multiple.
 
0 Kudos
Message 74 of 85
(1,410 Views)
I forgot to make default values in one array.
0 Kudos
Message 75 of 85
(1,408 Views)
i dont know why it didnt save the default values.here its is again
0 Kudos
Message 76 of 85
(1,407 Views)
The data in "latest2.vi" looks like exactly what I asked for.  Thanks!  Meanwhile, here's a very simple subvi to play sound back through your sound card. The 'sound format' input has defaults to work for 'hijacked.wav"   You just have to wire in the .wav sound data to the vi.

Not sure when I can put much time into it, but will try when I get the chance...

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 77 of 85
(1,395 Views)
Kevin can you give me a screenshot of the vi so i can build it in 7?
 
Thanks
0 Kudos
Message 78 of 85
(1,389 Views)
Kevin, when and if you find some time to look at it, when you break down the signal, the sub-segments have to be centered on the pitch peaks, that might be one of the reasons the sound quality was bad using Milq's code. The arrays i sent you last are still correct.
0 Kudos
Message 79 of 85
(1,387 Views)
Yes Madgreek, the code (and the hanning window) both require peak centering.

Sounds like you guys are doing well,
~milq
0 Kudos
Message 80 of 85
(1,367 Views)