Help with Morphing X/Y Oscillator

Post any examples or modules that you want to share here
Post Reply
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Help with Morphing X/Y Oscillator

Post by glitchcpt »

Hey guys,

So I had an idea for an oscillator using an X/Y to morph between 4 different shapes,
but again I think I have gone blank on the maths for how its suppose to work, the result I have so far is an interesting effect but it is not exactly how I wanted it, basically the idea is to have the exact waveform when the cursor is in one of the 4 corners of the X/Y and then it slowly morphs into the other waveforms the closer it gets to the other corner.

Thanks for your help guys :D
Attachments
xy osc.fsm
(24.19 KiB) Downloaded 1149 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Help with Morphing X/Y Oscillator

Post by KG_is_back »

so you have 4 oscillators. Lets name them based on the XY position that specifies them. We use Y coordinate to morph between left top and left bottom as well ass right top and right bottom. Then we use X coordinate to morph between the result of left side and right side.
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Help with Morphing X/Y Oscillator

Post by glitchcpt »

Yes, that is exactly the idea.

They seem to pop out the other side as sums of each other etc

:edit:

I think i see where I went wrong :)
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Help with Morphing X/Y Oscillator

Post by glitchcpt »

Thanks for your help!

Got it working, here it is:
Attachments
xy osc edit.fsm
(22.11 KiB) Downloaded 1169 times
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Help with Morphing X/Y Oscillator

Post by Nubeat7 »

nice one thank you Glitchcpt for sharing it.
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Help with Morphing X/Y Oscillator

Post by Perfect Human Interface »

Shouldn't they just be sums anyways?
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Help with Morphing X/Y Oscillator

Post by glitchcpt »

Perfect Human Interface wrote:Shouldn't they just be sums anyways?


My idea was to have the pure waveforms when the X/Y selector is in one of the four corners :D
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Help with Morphing X/Y Oscillator

Post by glitchcpt »

So I am trying to add a second oscillator, using the same panel, OSC1 using left click and OSC2 using right click.

The right clicks code, doesn't release the node when I let go of the mouse button, I think I missed something in the original code,

the example is attached :)
Attachments
xy osc edit Rclick.fsm
(160.27 KiB) Downloaded 1147 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Help with Morphing X/Y Oscillator

Post by KG_is_back »

The "mouseRUpcaptured" method should be named "mouseRUp" ...You just did a typo I believe.
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: Help with Morphing X/Y Oscillator

Post by glitchcpt »

I just copy pasted from someone elses code, so that is probably the case :oops:
Post Reply