Page 1 of 1

Any Way to get X and Y position of a module?

Posted: Thu Mar 27, 2014 11:02 am
by chackl
Hello!

Is there any way to get the X and Y position of a module with a GUI inside?

Regards
C.Hackl

Re: Any Way to get X and Y position of a module?

Posted: Thu Mar 27, 2014 11:37 am
by tester
Use mgui in connectors with float driven localization.

I think everything else can be done indirectly via area2float and float2area prims (area prim defines what is visible).

Re: Any Way to get X and Y position of a module?

Posted: Thu Mar 27, 2014 6:03 pm
by oddson
Three threads I know of on the old site and none with a solution.
http://synthmaker.co.uk/forum/viewtopic.php?f=12&t=4241
http://synthmaker.co.uk/forum/viewtopic.php?f=5&t=8659
http://synthmaker.co.uk/forum/viewtopic.php?f=12&t=9650

Maybe there's something new that makes it possible.

Re: Any Way to get X and Y position of a module?

Posted: Thu Mar 27, 2014 9:35 pm
by chackl
I fear not :/

I searched the Ruby View Class - and also no Chance to get it with primitive modules :/

btw: oddson - i remember this Name ;) - Great to have one of the greatest masterminds from SM here ;)

Regards

Re: Any Way to get X and Y position of a module?

Posted: Fri Mar 28, 2014 10:48 am
by chackl
I did a Workaround. It is possible to get them but it is not the finest solution.

viewtopic.php?f=3&t=2415

Regards

Re: Any Way to get X and Y position of a module?

Posted: Fri Mar 28, 2014 7:17 pm
by pall
Hi guys!
How are you?
Another attempt of its kind, was here at SM forum. I do not have FS...
http://www.synthmaker.co.uk/forum/viewt ... =3&t=18501
Cheers!

Re: Any Way to get X and Y position of a module?

Posted: Fri Mar 28, 2014 10:29 pm
by chackl
Same solution :D - Well done :D

You did some nice additions to move the modules. I also thought about that but doing it with ruby in FS.

Good work ;)

Regards

Re: Any Way to get X and Y position of a module?

Posted: Sun Mar 30, 2014 8:34 am
by pall
Hi Chackl!
Thanks for the compliment. :D I realize that in ruby efficiency is much improved. But I do not have time and can no mood to learn ruby. In fact do not know if its inclusion in Software was the best solution.
Like honestly say I still do not know what language was created SM and FS. I figure if it was used C or C + +, potential development of SM and FS would have been high. Here I think of the facilities offered to use graphics acceleration, where a good part of the computing tasks to be undertaken by the graphics card.
But the greatest achievement is that, this software could become a powerful vizual programming language. I do not know how they think the developers of this software? We do not even know what direction they want to go. Then what to buy me this software? Just to play with him? :? For now I say - no - thanks!
Cheers!

Re: Any Way to get X and Y position of a module?

Posted: Sun Mar 30, 2014 9:34 am
by RJHollins
Hi pall,

Always good to read posts from you !

I know you have much more experience than I with SM/FS [or probably programming in general].

When I transported to the FS release, I was curious about this RUBY stuff, but honestly, I couldn't get the first line of code to work. It easily became something that I just ignored. [I do this for personal reason mostly to make tools for my work].

Slowly ... with MUCH help ... over and over ... the FS GANG always came to my rescue. Very slowly I started to get some clue .... and then I'd be right back in trouble again :lol:

I was hitting all the RUBY sites I could find [most suggested here]. And some of the basics started working.

I still consider my 'Ruby level' as basic .... maybe a little less :roll: But the thing is ...

There was some operation I needed to do. It was nothing real complicated, but I found that stringing the PRIMS together was getting quite complicated. I had a 'logic' in my head, but trying to realize it as PRIMS was getting messy in a hurry.

I drew on some of the GFABasic I was teaching myself [Atari Computer in the 80's], and applied the thinking into RUBY. Real long story short [sure] ... I eventual refined the working RUBY code into a handful of lines. Comparing to my attempted PRIM design ... it was no contest.

From that point on ... I looked at a RUBY solution in a different light.

It is so much more powerful than I grasp ... but it really has opened another side to this type of programming.

Again ... at my very basic understand with it ... I am glad that I try to call on it. It is also great that the 'experienced ones' have also shared some very useful RUBY routines.

Not trying to talk 'you' into anything ... just a share of recent experience.

I really hope that FS expands, and that it develops to handle the requests that have been voiced.

Honestly ... it's only because of the SM, now FS concept, that I'm even involved. If Mr Kurtweil is correct in Our potential longevity ... well ... I'd still say that I would NOT be trying to tackle C or C++ or whatever names they call it.
Yes ... it would be fantastic to be able to ... but this last brain cell can only take so many beatings. :|

OK ... honestly ... hope you DO consider the FS .... 'cause then you might be here posting cool stuff [like at SM] ... and helping out us pitiful ones :roll:

Well .... that, and I wanted to say HI ... and again thank-you for things you've posted ! :D

8-)