it is about time...

For general discussion related FlowStone
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

initializing of modules and eventually the whole data flow works a bit different than i exspected.

how do i pass a "100." into a module when it is loaded? (other than by a float object, which seems to do that automatically)
Attachments
110.map_FSM.fsm
(487 Bytes) Downloaded 962 times
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

ok fine, i finally found out how to create multiple inputs to the ruby object :)

but i am not very happy about the Math. function in ruby: while it can do crazy stuff like frexp and gamma , it seems that it can not do basic things like random, abs, and min max, which i need regulary and of course would prefer to write oneliners.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: it is about time...

Post by RJHollins »

I'm in no way proficient in RUBY ... can barely work it out .... but I sure it can do all the functions you mentioned.

The SYNTAX could be different than what used too ...

We have some Experts here that visit from time to time ... and they'd probably have 10 different ways to solve [write] any need :)
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: it is about time...

Post by billv »

RJ.... while some experts would like to chip in with our newest team member (Mr 110),
most would recognize from this comment..
110 wrote:i finally found out how to create multiple inputs to the ruby object

that indeed, he's at the very start.
At the start there's three ESSENTIALS.
1. Know what the User guide is trying to say...that means lots of experiments with the Guide.
2.If your a coder, you MUST get the Ruby Core website and continue referencing it every time
your stuck.
3.Start downloading all examples... weather they relate or not to your initial project dosn't
matter-there's critical information/methods/idea's/abstract ways of get things done in every
schematic.

110, it's just like RJ Hollins said, there's a lot of "serious" DSP/Creative junkies here with
stuff that will FRY your brains.
So practice Self Respect, and don't kill yourself with too much at once.

PS, Yeh, um..welcome to the forum :) .. and Planet FS... :D

Long Live General Spoog. Give thanks to Mr Spoog... :lol:
He keeps our "Home away from Home"..nice and clean killing the Trolls.
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: it is about time...

Post by RJHollins »

All good points, billv. 8-)
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

billv wrote:1. Know what the User guide is trying to say...that means lots of experiments with the Guide.
2.If your a coder, you MUST get the Ruby Core website and continue referencing it every time
your stuck.
3.Start downloading all examples... weather they relate or not to your initial project dosn't
matter-there's critical information/methods/idea's/abstract ways of get things done in every
schematic.


i fully understand especially rule number 2. i guess ruby looks at autodidacts like me similar OOL or html/css looks at me, everything is straight up documented somewhere and so the language can expect that i just look up its classes, objects, and tags and follow its basic rules.

So practice Self Respect, and don't kill yourself with too much at once.


you can be sure that wont start with the invention a new style of FOF and writing it right in assembler.

but of course i am a bit impatient because i really wish i could just take everything i know from the max enviroment to here. say with scripting, or by beeing able to open textfiles as schematic. ;)

one of my main goals is the VST target (though i miss mac support of course, evetually i peek into cabbage later to see what it can do), but this "how do i maxmsp in FS" thing could actually be my first project.

whenever i find something in FS which seems faster and offers new options, i am amazed, whenever in find something which seems cmore complicated i immediately get depressions.

parsing a bunch of default values into custom modules like the mapper above, or a VST parameter module, is something i dont want to struggle on for an hour or more.

there are other things where i am willing to invest time and headaches, but not such - hopefully - very basic stuff.
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

spent 3 minutes with the manual only to find out that it has about 61^32057 pages.

but it was totally worth the 3 minutes.

now it is like maxmsp :D ... and i can start converting my stuff in an automated process controlled by maxmsp.


Code: Select all

expr ((($f1-$f2)/($f3-$f2))*($f5-$f4))+$f4

----->>

Code: Select all

output (((@f1-@f2)/(@f3-@f2))*(@f5-@f4))+@f4
Attachments
map2.fsm
(467 Bytes) Downloaded 961 times
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

while thigns like cos or powe only use a different sythax, comparison operators do not seem to work at all.

output 10. ** (@f1*0.05) * (@f1 != -90.)

but is it allowed? or is it like in flowstone where true and false are strings...

no comments about including bools in arithmetic float operations please. i am aware it is theoretically a risk. :)
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

ah, it does not like the dot behind the 90. now it is giving a proper error message.

output @f1 != -90

works tho and kindly returns 1 if the output is type float or int.

but inside the expression it is illegal. :(

if/else will probably be a waste of CPU... anything else i can use to replace that crap?
110
Posts: 40
Joined: Mon Jan 16, 2017 3:20 pm

Re: it is about time...

Post by 110 »

i underestimated how many objects in my library require logic stuff based on comparison operators.

transforming the more simple ones is easy (with some help of google) though.

what sucks is that i can not find out how to duplicate objects in a schematic without loosing settings (such as input type).

copy and pasting 5 objects at once in a schematic just gives an error, allowing me to choose between the two meaningful options "JA" and "NEIN", which both do nothing. :)
Attachments
110-first-01.fsm
(1.24 KiB) Downloaded 953 times
Post Reply