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

Draw Wave Min/max Control issue

For general discussion related FlowStone

Draw Wave Min/max Control issue

Postby billv » Sat Oct 19, 2013 3:13 am

I'm having trouble getting control of min/max ranges for the Draw wave......
That green section in Draw wave is still too tricky for me.... :x :x
When I built my first matrix trigger that green section done my head in...
....nothings changed... :?
Have made a clear fsm to show the issue....
Draw wave min_max.fsm
(5.59 KiB) Downloaded 901 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Draw Wave Min/max Control issue

Postby Nubeat7 » Sat Oct 19, 2013 6:46 pm

billv wrote:I'm having trouble getting control of min/max ranges for the Draw wave......


would be another cool oneliner in ruby:
Code: Select all
#inputs: @arrayIn, @min, @max
output 0, @inArray.map!{|item|[[item,@min].max,@max].min}

#do anything with item between |item|......}

note here you just limit the values to max and min!

there you would change the range:
Code: Select all
#inputs: @arrayIn, @min, @max
output 0, @inArray.map!{|item|item*@max-@min+@min}

#do anything with item between |item|......}


also note, when you directly return the modified arrayvalues, you need to use the "!" after map, in this case the original array was modified (destructive)
if you put the modified values into a new array u can use just "map" with out the "!" so the original array stays untouched
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Draw Wave Min/max Control issue

Postby billv » Sat Oct 19, 2013 9:24 pm

Thanks nubeat7....but i keep getting method error for map!...
changing code from '@inArray.map!' ...to. '@arrayIn.map!' didn't work also...
ScreenShot300.png
ScreenShot300.png (12.16 KiB) Viewed 13959 times

Writing the min max part will be ok, the problem is that the min/max parameters
are tied to the graphics, so it becomes a lot more complicated....

Probably scrap the idea.......


.
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Draw Wave Min/max Control issue

Postby Nubeat7 » Sat Oct 19, 2013 9:47 pm

you don`t need event..

and sure, dont send the modified values to the graphics just send them towhere you need them
Attachments
Draw wave min_max.fsm
(5.89 KiB) Downloaded 854 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Draw Wave Min/max Control issue

Postby Nubeat7 » Sat Oct 19, 2013 10:10 pm

here you keep the original array untouched, i wrote a little class array methode for easy use of the methode
Draw wave min_max_methode.fsm
(6.21 KiB) Downloaded 912 times


edit: maybe the methode should better be named "set_to_range"
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Draw Wave Min/max Control issue

Postby billv » Sat Oct 19, 2013 11:06 pm

taking a look now......
This mod is for the "Array tool" i made....
Will upload to examples so you can see the whole thing...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Draw Wave Min/max Control issue

Postby billv » Sun Oct 20, 2013 8:11 am

Nubeat7 wrote:you don`t need event..

Yeh..it goes...i figure the error was using string array input instead of float array?
...controlling min/max either side of draw module is not a issue for this circuit....
Need to control the draw module min/max parameters directly...
I don't think this mod can happen otherwise ...
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Draw Wave Min/max Control issue

Postby Nubeat7 » Sun Oct 20, 2013 2:12 pm

billv wrote:Need to control the draw module min/max parameters directly...

if you want to change the draw min/max you can use "range" inside the properties of the wavedraw module, but when bigger than 1 you will draw outside viewrange
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna


Return to General

Who is online

Users browsing this forum: No registered users and 64 guests