Page 1 of 1
Help with Morphing X/Y Oscillator
Posted: Thu Nov 06, 2014 10:33 am
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

Re: Help with Morphing X/Y Oscillator
Posted: Thu Nov 06, 2014 11:08 am
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.
Re: Help with Morphing X/Y Oscillator
Posted: Thu Nov 06, 2014 11:16 am
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

Re: Help with Morphing X/Y Oscillator
Posted: Thu Nov 06, 2014 11:20 am
by glitchcpt
Thanks for your help!
Got it working, here it is:
Re: Help with Morphing X/Y Oscillator
Posted: Sun Nov 09, 2014 3:58 pm
by Nubeat7
nice one thank you Glitchcpt for sharing it.
Re: Help with Morphing X/Y Oscillator
Posted: Mon Nov 10, 2014 10:06 pm
by Perfect Human Interface
Shouldn't they just be sums anyways?
Re: Help with Morphing X/Y Oscillator
Posted: Tue Nov 11, 2014 7:39 am
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

Re: Help with Morphing X/Y Oscillator
Posted: Tue Nov 11, 2014 11:27 am
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

Re: Help with Morphing X/Y Oscillator
Posted: Tue Nov 11, 2014 11:44 am
by KG_is_back
The "mouseRUpcaptured" method should be named "mouseRUp" ...You just did a typo I believe.
Re: Help with Morphing X/Y Oscillator
Posted: Tue Nov 11, 2014 12:48 pm
by glitchcpt
I just copy pasted from someone elses code, so that is probably the case
