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
15 posts
• Page 1 of 2 • 1, 2
Lfo in ruby
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
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
missing an important parameter
which increase-rate should reach?
seconds, milliseconds or more?
which increase-rate should reach?
seconds, milliseconds or more?
- Tronic
- Posts: 539
- Joined: Wed Dec 21, 2011 12:59 pm
Re: Lfo in ruby
sorry, I find it difficult to translate this answer
- borodadada
- Posts: 47
- Joined: Sun Jun 02, 2013 5:58 pm
Re: Lfo in ruby
why not putting the values in an array and increase the index with time - is this possible? (i`m not at home atm..)
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Lfo in ruby
arr = [1, 2, 3, 4, 5, 6,.....] ?
arr[0]
arr[1]
arr[2]
.....
?
arr[0]
arr[1]
arr[2]
.....
?
- borodadada
- Posts: 47
- Joined: Sun Jun 02, 2013 5:58 pm
Re: Lfo in ruby
i tought a while loop .. which runs as long as input x is on
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Lfo in ruby
something like:
but don`t know if the syntax for the time adding works like this (still not at home)
- 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)
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Lfo in ruby
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
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
and sure u can use feedback loops in Ruby.
I can help in the next week
-
nix - Posts: 817
- Joined: Tue Jul 13, 2010 10:51 am
Re: Lfo in ruby
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
15 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 96 guests