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

Re: Lfo in ruby

Postby borodadada » Sat Jun 22, 2013 6:08 pm

No stream, Green circle f :) float. Basic speed static.

demo version ^)
http://rghost.ru/46944750/image.png
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Lfo in ruby

Postby Nubeat7 » Sat Jun 22, 2013 7:51 pm

:lol: 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
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 8:38 pm

fantastic, thank you
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

Postby Nubeat7 » Sat Jun 22, 2013 10:52 pm

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...
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Lfo in ruby

Postby borodadada » Sun Jun 23, 2013 6:27 am

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

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 96 guests