Mirror /Flip Gui ?

For general discussion related FlowStone
Post Reply
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Mirror /Flip Gui ?

Post by lalalandsynth »

Is there a way to mirror/flip a gui , I can rotate it but that does not have the same result.

Sub question :
Actually I might solve this particular problem if I could invert Array values , possibly ?

Thanks.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Mirror /Flip Gui ?

Post by tulamide »

I wouldn't know why you need to mirror a whole GUI, but in general you can mirror/flip bitmaps by passing negative width or height values. So, for the whole GUI you'd need to invert the values of each bitmap, and mirror the positions as well. This only works for bitmaps, of course, if there are runtime graphics, you'd need to alter the individual RubyEdits.
"There lies the dog buried" (German saying translated literally)
User avatar
lalalandsynth
Posts: 600
Joined: Sat Oct 01, 2016 12:48 pm

Re: Mirror /Flip Gui ?

Post by lalalandsynth »

Yep , seeing that I am not a programmer at all I was thinking if I could invert the output from an array ?
That way I would invert the "Gui", as it were ...I think ?

Here is why I want to rotate and mirror the GUI , or parts of the gui , namely the Envelope.

I can invert the envelope output , so rather then a fully open envelope having max volume it now has min volume, lets say you like the envelope but want it inverted for a variation on what you are processing.

Original envelope - I have a invert button to invert and offset the phase so it is only unipolar like the original.
Basically achieving what I want , but the envelope does not represent that.
Invert pre.jpg
Invert pre.jpg (59.15 KiB) Viewed 10163 times


Then I can rotate the GUI , but it still does not represent the envelope inversion , although , If I could work on the Ruby code or array output , this would be a cool function.
Rotate Gui.jpg
Rotate Gui.jpg (53.85 KiB) Viewed 10163 times


This is essentially what I want to achieve , Rotate and Mirror , and now it represents an inversion.
Rotate Mirror Gui.jpg
Rotate Mirror Gui.jpg (54.5 KiB) Viewed 10163 times


This is all just a workaround , If I could work on the output array from the Line editor it would make everything simpler I am sure.
Post Reply