Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Sine in ruby, output float.

For general discussion related FlowStone

Sine in ruby, output float.

Postby borodadada » Thu Aug 08, 2013 7:25 pm

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

http://rghost.ru/47986531.view <<<--- Picture
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Postby MyCo » Thu Aug 08, 2013 7:43 pm

it really depends on "what value do you want to get from the stream?"
Attachments
Frame to float.fsm
(6.39 KiB) Downloaded 948 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Sine in ruby, output float.

Postby borodadada » Thu Aug 08, 2013 7:57 pm

Need real-time, Complex number, real numbers and imaginary unit.
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Sine in ruby, output float.

Postby MyCo » Thu Aug 08, 2013 8:11 pm

Don't understand what you mean. Stream data has no imaginary parts.
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: Sine in ruby, output float.

Postby tester » Thu Aug 08, 2013 10:19 pm

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.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Sine in ruby, output float.

Postby borodadada » Fri Aug 09, 2013 5:37 pm

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.

Postby borodadada » Sat Aug 10, 2013 8:46 am

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.

Postby borodadada » Sat Aug 10, 2013 9:30 am

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

Re: Sine in ruby, output float.

Postby (_zb_) » Sat Aug 10, 2013 10:06 am

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
(_zb_)
 
Posts: 1
Joined: Sat Aug 10, 2013 9:53 am


Return to General

Who is online

Users browsing this forum: No registered users and 40 guests