Page 1 of 1
Sine in ruby, output float.
Posted: Thu Aug 08, 2013 7:25 pm
by borodadada

Friends, how to output values in float format
http://rghost.ru/47986531.view <<<--- Picture
Re: Sine in ruby, output float.
Posted: Thu Aug 08, 2013 7:43 pm
by MyCo
it really depends on "what value do you want to get from the stream?"
Re: Sine in ruby, output float.
Posted: Thu Aug 08, 2013 7:57 pm
by borodadada
Need real-time, Complex number, real numbers and imaginary unit.
Re: Sine in ruby, output float.
Posted: Thu Aug 08, 2013 8:11 pm
by MyCo
Don't understand what you mean. Stream data has no imaginary parts.
Re: Sine in ruby, output float.
Posted: Thu Aug 08, 2013 10:19 pm
by tester
I guess it's about converted values into complex numbers. We had a lot of it on electronics looong time ago. Calculations made on complex numbers (a+ ib) refered to AC signals. @borodadada - better describe what you would like to get with it.
Re: Sine in ruby, output float.
Posted: Fri Aug 09, 2013 5:37 pm
by borodadada
guys, I can use any option, the amplitude values in real time, as in the picture I uploaded, need output with Ruby, in a numbers format.
Re: Sine in ruby, output float.
Posted: Sat Aug 10, 2013 8:46 am
by borodadada
white noise...............
Re: Sine in ruby, output float.
Posted: Sat Aug 10, 2013 9:30 am
by borodadada
ohh... done
code not working... because sound card is not active, DS OUT
def event i,v
a = v.to_array
output(a)
end
for some reason, flowstone die.....
Re: Sine in ruby, output float.
Posted: Sat Aug 10, 2013 10:06 am
by (_zb_)
MyCo, tester
Thank you very much. We began to teach programming a week ago, We began to teach the sound of 10 years ago. and very frustrating when such simple topics so hard to understand