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
Flowstone Guru Blog
Re: Flowstone Guru Blog
You're right, there's no setColor method for the LinearGradientBrush class (which isn't inherited from the Brush class). But you can use the setInterpolationColor method. If you just want to change the initial 2 colors, you've set, then setInterpolationColor [[start color, 0], [end color, 1]] will do that (the second parameter defines the position on a the gradient as a percentage, with 0 = 0% and 1 = 100%, or start and end But this is a method that is documented.
Here's a fun method that's undocumented: Name your ruby edit instance, then in the instance type "caption" (without the double quotes) With the callback structure we've created some time ago, you could do some magic
Here's a fun method that's undocumented: Name your ruby edit instance, then in the instance type "caption" (without the double quotes) With the callback structure we've created some time ago, you could do some magic
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Flowstone Guru Blog
Thanks tulamide,
Not sure what you mean by naming the Ruby edit instance? which method is that?
Not sure what you mean by naming the Ruby edit instance? which method is that?
- Exo
- Posts: 426
- Joined: Wed Aug 04, 2010 8:58 pm
- Location: UK
Re: Flowstone Guru Blog
Just a misunderstanding! You can name the Ruby edit instance just as you can name all elements of Flowstone (by clicking on 'N' when the instance is selected). See attachment, although it's almost slanderous to provide you with an example
- Attachments
-
- caption.fsm
- (271 Bytes) Downloaded 900 times
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Flowstone Guru Blog
Ah Okay very cool!
Yes that would be very handy and easy for setting an "id" for each Ruby Edit, thanks!
"Caption" is a strange name for the method though.
Yes that would be very handy and easy for setting an "id" for each Ruby Edit, thanks!
"Caption" is a strange name for the method though.
- Exo
- Posts: 426
- Joined: Wed Aug 04, 2010 8:58 pm
- Location: UK
Re: Flowstone Guru Blog
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Flowstone Guru Blog
Wow ... a lot of stuff to absorb/learn .... Thanks tulamide !
After a first read, I realize that I still have plenty to understand. Arrays are so essential to many of my projects.
I had plenty of struggles learning how to use particular syntax to actually utilize the arrays as I need. Be it to make multi-dimensional arrays, sorting, searching, combining/separating, etc.
I know the power is there to do these things. And it seems it can be much cleaner [code wise] to do it with RUBY, rather than PRIMS.
If you did another 50 tutorials JUST on arrays, and various techniques to use them .... I wouldn't mind the least !!!
Thanks again, tulamide ... aways look forward to your postings !
After a first read, I realize that I still have plenty to understand. Arrays are so essential to many of my projects.
I had plenty of struggles learning how to use particular syntax to actually utilize the arrays as I need. Be it to make multi-dimensional arrays, sorting, searching, combining/separating, etc.
I know the power is there to do these things. And it seems it can be much cleaner [code wise] to do it with RUBY, rather than PRIMS.
If you did another 50 tutorials JUST on arrays, and various techniques to use them .... I wouldn't mind the least !!!
Thanks again, tulamide ... aways look forward to your postings !
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Flowstone Guru Blog
You're welcome
When you're at a point at which you would get away with just a documentation of the methods, I recommend http://ruby-doc.org/core-1.9.3/Array.html
When you're at a point at which you would get away with just a documentation of the methods, I recommend http://ruby-doc.org/core-1.9.3/Array.html
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Flowstone Guru Blog
A new little blog entry on mapping control parameters, along with stuff for download.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Flowstone Guru Blog
thank you martin this is really useful,
i did one for delay speed a while ago which would maybe fit into this, if you think so you are welcome to include it.
it is done to fit to midi cc knobs (0..127 to get the best results with your midi controller) as well as for 0..1 input and calculates also various synced modes, it outputs samples from 1 sample up to 999ms (as integers for simple not interpolated delays)
i did one for delay speed a while ago which would maybe fit into this, if you think so you are welcome to include it.
it is done to fit to midi cc knobs (0..127 to get the best results with your midi controller) as well as for 0..1 input and calculates also various synced modes, it outputs samples from 1 sample up to 999ms (as integers for simple not interpolated delays)
- Attachments
-
- delay speed knob.fsm
- (301.59 KiB) Downloaded 900 times
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Flowstone Guru Blog
martinvicanek wrote:A new little blog entry on mapping control parameters, along with stuff for download.
Hey, cool. I like that you made some stream versions; that could be useful.
Just a couple things to contribute from my own experiences: the specific values you choose for max/min etc. are very important. For example, in a log scale, a max of 1 and min of .01 will give you a far different result than max 1 and min .0001 in terms of the "steepness" of the log scaling. Same thing if your min is 0.1 and max is 10 or max is 20. So oftentimes you'll just have to experiment with different values to get what "feels" right.
Also, for log mapping, since it can't go to 0, I use a trick of adding the min value to the input value, then performing the log math, then subtracting the min value off the result, resulting in a scale that goes to true 0. This also effects the "shape" of the scaling somewhat so it may require some tweaking as described above. I noticed however that you (Martin) included a pseudo-log method that does appear to go to 0. I'm not sure which is better.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Who is online
Users browsing this forum: No registered users and 63 guests