LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert this formula into a frequency labview will generate as sound...tia sal2

Greetings All,

How can I convert this formula in labview into a frequency labview will generate as sound. The formula is: [(t+3*u^2)*cos(2*Pi*t), (t+3*u^2)*sin(2*Pi*t), 5*(t+u)],
t=0..10, u=0..1

I've included the formula and image it produces.

PS: the code was created using Maple.

TIA sal2
0 Kudos
Message 1 of 4
(2,782 Views)
You seem to generate 2D data, the two dimensions being t and u. You have 3 formulas ([a,b,c]).

Sound is either 1 1D array (mono) or a (n by 2) 2D array (stereo). Your formulas don't seem to be compatible with simple sound data. I don't see the connection. Do you have more information?
0 Kudos
Message 2 of 4
(2,776 Views)
I'm trying to convert a screw type form into it's sound representation.
0 Kudos
Message 3 of 4
(2,766 Views)
So, it would make sense that time is vertical and x and y are the left and right stereo channel. This wouldn't sound like much, since you only have about 10 periods of a sound with increasing volume. Probably would just sound like a little blip, that's all.

You still need to define your time units. What's the desired duration or pitch? Then simply create two phase shifted, linearly increasing sine functions, scale them to a U8 or I16, and combine them into a 2D array.

Now use the sound VIs to play it.
0 Kudos
Message 4 of 4
(2,751 Views)