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

Lfo in ruby

For general discussion related FlowStone

Lfo in ruby

Postby borodadada » Sat Jun 22, 2013 2:38 pm

Hello, trying to write the LFO on Ruby, but it is not my true test, I think. I need a number generator for example from 0 to 1 and back again, what I want step , endlessly. Data format float for example, an example is attached ...
Do not get me to do the cycle, may be who knows how to do this?
Okey... screenshot.
http://rghost.ru/46940249/image.png
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Lfo in ruby

Postby Tronic » Sat Jun 22, 2013 2:56 pm

missing an important parameter
which increase-rate should reach?
seconds, milliseconds or more?
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Lfo in ruby

Postby borodadada » Sat Jun 22, 2013 3:50 pm

sorry, I find it difficult to translate this answer
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Lfo in ruby

Postby Nubeat7 » Sat Jun 22, 2013 3:58 pm

why not putting the values in an array and increase the index with time - is this possible? (i`m not at home atm..)
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Lfo in ruby

Postby borodadada » Sat Jun 22, 2013 4:14 pm

arr = [1, 2, 3, 4, 5, 6,.....] ?
arr[0]
arr[1]
arr[2]
.....
?
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Lfo in ruby

Postby Nubeat7 » Sat Jun 22, 2013 4:20 pm

i tought a while loop .. which runs as long as input x is on
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Lfo in ruby

Postby Nubeat7 » Sat Jun 22, 2013 4:31 pm

something like:
Code: Select all

i = 0
values = [your values]

while @inX  #or what ever condition
  output values[i],t+2.2
  i += 1
end


but don`t know if the syntax for the time adding works like this (still not at home)
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Lfo in ruby

Postby borodadada » Sat Jun 22, 2013 4:37 pm

If I'm not mistaken, this ruby can not use loops.
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Lfo in ruby

Postby nix » Sat Jun 22, 2013 5:15 pm

What you want is a Ruby wavetable osc maybe,
and sure u can use feedback loops in Ruby.
I can help in the next week
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Lfo in ruby

Postby Tronic » Sat Jun 22, 2013 5:48 pm

borodadada wrote:sorry, I find it difficult to translate this answer


your ruby LFO needs to work with the audio or just for the greens?
at what speed must run the increase of the step for your counter?
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Next

Return to General

Who is online

Users browsing this forum: Google [Bot] and 79 guests

cron