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 2 of 2 • 1, 2
Re: Lfo in ruby
No stream, Green circle f float. Basic speed static.
demo version ^)
http://rghost.ru/46944750/image.png
demo version ^)
http://rghost.ru/46944750/image.png
- borodadada
- Posts: 47
- Joined: Sun Jun 02, 2013 5:58 pm
Re: Lfo in ruby
hopefully you didn`t try my code example, i should try the next time.. here is something which works
- Attachments
-
- thru_array.fsm
- (427 Bytes) Downloaded 859 times
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Lfo in ruby
fantastic, thank you
but how change time ? ^)
speed = 0.1 not work :S
but how change time ? ^)
speed = 0.1 not work :S
- borodadada
- Posts: 47
- Joined: Sun Jun 02, 2013 5:58 pm
Re: Lfo in ruby
itsbecause time % size is the index for the array and this counts only the full numbers - with a speed of 0.1 it is counting 1,1.. 1.2... 1.3... and so on so it counts every 10 steps... just multiply the time with 10 before you do the modulo... or 100 when speed is hundreth...
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Lfo in ruby
def event i,v,t
v=*(1..1000)
a=*(2..999)
a.reverse!
va = v+a
size = 1998 #arraysize
speed = 0.0101
c = time * 1000
if @on
output 0, va[c%size]
input 100, nil, t + speed
end
end
Okey.... modify, work.
Thanks!
v=*(1..1000)
a=*(2..999)
a.reverse!
va = v+a
size = 1998 #arraysize
speed = 0.0101
c = time * 1000
if @on
output 0, va[c%size]
input 100, nil, t + speed
end
end
Okey.... modify, work.
Thanks!
- borodadada
- Posts: 47
- Joined: Sun Jun 02, 2013 5:58 pm
15 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 93 guests