Sine in ruby, output float.

For general discussion related FlowStone
Post Reply
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Sine in ruby, output float.

Post by borodadada »

Image
Friends, how to output values ​​in float format

http://rghost.ru/47986531.view <<<--- Picture
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Sine in ruby, output float.

Post by MyCo »

it really depends on "what value do you want to get from the stream?"
Attachments
Frame to float.fsm
(6.39 KiB) Downloaded 1093 times
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Post by borodadada »

Need real-time, Complex number, real numbers and imaginary unit.
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Sine in ruby, output float.

Post by MyCo »

Don't understand what you mean. Stream data has no imaginary parts.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Sine in ruby, output float.

Post 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.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Post 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.
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Post by borodadada »

white noise...............
Last edited by borodadada on Sat Aug 10, 2013 9:31 am, edited 1 time in total.
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Post 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.....
Last edited by borodadada on Sat Aug 10, 2013 10:09 am, edited 1 time in total.
(_zb_)
Posts: 1
Joined: Sat Aug 10, 2013 9:53 am

Re: Sine in ruby, output float.

Post 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
Post Reply