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
8 posts
• Page 1 of 1
Draw Wave Min/max Control issue
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....
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....
That green section in Draw wave is still too tricky for me....
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....
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Draw Wave Min/max Control issue
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
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Draw Wave Min/max Control issue
Thanks nubeat7....but i keep getting method error for map!...
changing code from '@inArray.map!' ...to. '@arrayIn.map!' didn't work also...
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.......
.
changing code from '@inArray.map!' ...to. '@arrayIn.map!' didn't work also...
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.......
.
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Draw Wave Min/max Control issue
you don`t need event..
and sure, dont send the modified values to the graphics just send them towhere you need them
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
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Draw Wave Min/max Control issue
here you keep the original array untouched, i wrote a little class array methode for easy use of the methode
edit: maybe the methode should better be named "set_to_range"
edit: maybe the methode should better be named "set_to_range"
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Draw Wave Min/max Control issue
taking a look now......
This mod is for the "Array tool" i made....
Will upload to examples so you can see the whole thing...
This mod is for the "Array tool" i made....
Will upload to examples so you can see the whole thing...
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Draw Wave Min/max Control issue
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 ...
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Draw Wave Min/max Control issue
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
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 57 guests