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

Flowstone Guru Blog

For general discussion related FlowStone

Re: Flowstone Guru Blog

Postby tulamide » Wed Apr 08, 2015 1:05 am

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 ;)
"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

Postby Exo » Fri Apr 10, 2015 11:44 pm

Thanks tulamide,

Not sure what you mean by naming the Ruby edit instance? :oops: which method is that?
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Flowstone Guru Blog

Postby tulamide » Sat Apr 11, 2015 12:07 am

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 :lol:
Attachments
caption.fsm
(271 Bytes) Downloaded 901 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

Postby Exo » Sat Apr 11, 2015 12:15 am

Ah Okay very cool!

Yes that would be very handy and easy for setting an "id" for each Ruby Edit, thanks! :D

"Caption" is a strange name for the method though.
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Flowstone Guru Blog

Postby tulamide » Sat Apr 11, 2015 1:08 am

You asked for it, you get it.

Ruby Stripped, Part 3: Arrays

Caution: A wall of text awaits you :lol:
"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

Postby RJHollins » Sat Apr 11, 2015 2:45 am

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 !!! :lol:

Thanks again, tulamide ... aways look forward to your postings !
8-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Flowstone Guru Blog

Postby tulamide » Sun Apr 12, 2015 6:07 pm

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
"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

Postby martinvicanek » Thu May 14, 2015 9:08 am

A new little blog entry on mapping control parameters, along with stuff for download.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Flowstone Guru Blog

Postby Nubeat7 » Fri May 15, 2015 12:44 am

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)
Attachments
delay speed knob.fsm
(301.59 KiB) Downloaded 902 times
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Flowstone Guru Blog

Postby Perfect Human Interface » Fri May 15, 2015 6:11 pm

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

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 44 guests