If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Morphing
11 posts
• Page 1 of 2 • 1, 2
Morphing
My question might seem stupid at first, but I was really asking it myself after a few code sessions: What exactly is the difference between morphing and cross-mixing (the technique is different, yes, but that's not my concern)?
For example, I have two waveforms, a sine and a saw. I now morph between them over 1 second, so that at start it's a sine and after 1 second it is a saw.
Now instead I cross-mix both (e.g stream_a * 0.4 + stream_b * 0.6), again over 1 second, so that at start it's a sine and at the end it's a saw.
I don't hear any difference.
Thoughts?
For example, I have two waveforms, a sine and a saw. I now morph between them over 1 second, so that at start it's a sine and after 1 second it is a saw.
Now instead I cross-mix both (e.g stream_a * 0.4 + stream_b * 0.6), again over 1 second, so that at start it's a sine and at the end it's a saw.
I don't hear any difference.
Thoughts?
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Morphing
In cross-mixing means that the wave=x*wave1+(1-x)*wave2;
Morphing means changing shape from wave1 to wave2 but not necessarily by mixing the two waves - morphing is wider term.
Image below shows mixing product 50/50 of the waves and a morphing product calculates as beginning and end of waveform= square and middle = saw. This is just one way to morph between waves.
Morphing means changing shape from wave1 to wave2 but not necessarily by mixing the two waves - morphing is wider term.
Image below shows mixing product 50/50 of the waves and a morphing product calculates as beginning and end of waveform= square and middle = saw. This is just one way to morph between waves.
- Attachments
-
- morphingVSmixing.png (12.65 KiB) Viewed 33985 times
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: Morphing
Usually, morphing means that spectra shifts (and splits) smoothly from initial positions to final positions, while mixing means that spectral content just goes up or down.
Another approach is to imitate (sonically) one sound with another one in between. Like boiling water that transforms into speech. In between the speech would be made of boiling expression (so to speak) or vice versa.
Another approach is to imitate (sonically) one sound with another one in between. Like boiling water that transforms into speech. In between the speech would be made of boiling expression (so to speak) or vice versa.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: Morphing
Sometimes cross-mixing and morphing can sound almost identical, but cross-mixing a pulse with a square wave will never sound like PWM, one of my favourites is the sine/saw osc where the duty cycle is changed and the first half of the sine becomes shorter and the second longer until it becomes a saw (or near as damn it), this when modulated with the right envelope gives a very realistic brass sound with no need for filters. I'm not sure how your morphing your sine/saw but done this way sounds nothing like cross-mixing.
- Xtinct
- Posts: 106
- Joined: Fri Feb 11, 2011 12:06 am
Re: Morphing
Guys, thank you very much! I now see my fallacy. There's of course a difference between time domain and frequency domain, which I totally ignored.
I think I understood. Hopefully...
Yes, the math is also known as "linear interpolation"KG_is_back wrote:In cross-mixing means that the wave=x*wave1+(1-x)*wave2;
That was very helpful! I'm a visual guy. ThanksKG_is_back wrote:Morphing means changing shape from wave1 to wave2 but not necessarily by mixing the two waves - morphing is wider term.
Image below shows mixing product 50/50 of the waves and a morphing product calculates as beginning and end of waveform= square and middle = saw. This is just one way to morph between waves.
And that made it perfectly clear. Here we have no time domain, but the data of the waveform itself is transformed. Of course that can't be realized by mixing. Thank you!tester wrote:Usually, morphing means that spectra shifts (and splits) smoothly from initial positions to final positions, while mixing means that spectral content just goes up or down.
Another approach is to imitate (sonically) one sound with another one in between. Like boiling water that transforms into speech. In between the speech would be made of boiling expression (so to speak) or vice versa.
You're right. I made tables of pre-calculated waveforms that changed linear from sine to saw. Or in other words: I now know that I just mimicked a mixing. Pretty uselessXtinct wrote:Sometimes cross-mixing and morphing can sound almost identical, but cross-mixing a pulse with a square wave will never sound like PWM, one of my favourites is the sine/saw osc where the duty cycle is changed and the first half of the sine becomes shorter and the second longer until it becomes a saw (or near as damn it), this when modulated with the right envelope gives a very realistic brass sound with no need for filters. I'm not sure how your morphing your sine/saw but done this way sounds nothing like cross-mixing.
I think I understood. Hopefully...
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Morphing
Here's an osc that goes from ramp to tri to saw
And a visual
It aliases like hell but makes for an interesting LFO.
- Code: Select all
streamin freq; // 0 to 1
streamin trisaw; // Ramp = -1 Tri = 0 Saw = 1
streamout out;
float dutyC;
float phase;
dutyC = (trisaw*-1+1)*0.5;
phase = phase + (freq*0.5);
phase = phase - (phase >= 1 & 1);
out = 2*((phase<=dutyC)&(phase/dutyC)+(phase>dutyC)&(1-(phase-dutyC)/(1-dutyC)))-1;
And a visual
It aliases like hell but makes for an interesting LFO.
- Xtinct
- Posts: 106
- Joined: Fri Feb 11, 2011 12:06 am
Re: Morphing
And another one where the sine phase modulates itself
- Code: Select all
streamin frequency; //0 to 1
streamin shape; //0 to 1
streamout out;
float a,b;
a = a + frequency;
a = a - (a > 1) & 2;
b = (shape*0.18)*out;
out = sin1(a+b);
- Xtinct
- Posts: 106
- Joined: Fri Feb 11, 2011 12:06 am
Re: Morphing
Nice! I will play around with this and anything I can come up with
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Morphing
Morphing could be literally any path to transition gradually between two things. The things posted here so far are examples, but not all that might encompass "morphing." I like to think of it in terms of a synthesizer plugin that has automatable knobs. If you want to "morph" between two presets, you might automate the knobs to transition from one setting to the next. Any or all of those smoothly transitioning parameters could be considered elements of "morphing."
The issue of course when it comes to specifically synth plugins, as well as with other things, is that often not all parameters can smoothly transition between settings. Or maybe you can smoothly transition between things but not in a way that gives the effect you may be after (such as with cross-fading or mixing). Because "morphing" is a broad term, there's a broad space for interpretation and just finding ways to create transitions that may be useful or sonically pleasing. It's like asking the question "how do you turn a circle into a square?" There's no single answer, and perhaps endless possible answers.
Edit: as an extension of what I just said, another element to the tricky space of "morphing" is that you need to define some sort of abstract "pivot points" to create transitions. With the synth example above, there are physical knobs already defined and easy to understand. But if for example you want to "morph" between two incoming (unrelated and perhaps entirely different) audio streams as an effect, the concept becomes trickier. The one surefire method in this case is again the cross-fading, but that can be boring. If you want to create an effect that's more interesting, you don't have any "pivot points" to work with, so you'd have to define some yourself. This would likely involve some kind of interpretation of the input audio, and you can see how quickly this becomes complicated, especially if you want to end up with something that sounds good or useful. Much more simple is going back to the root of synthesis and geometrically transforming the shapes of oscillator cycles like others have demonstrated in previous posts.
The issue of course when it comes to specifically synth plugins, as well as with other things, is that often not all parameters can smoothly transition between settings. Or maybe you can smoothly transition between things but not in a way that gives the effect you may be after (such as with cross-fading or mixing). Because "morphing" is a broad term, there's a broad space for interpretation and just finding ways to create transitions that may be useful or sonically pleasing. It's like asking the question "how do you turn a circle into a square?" There's no single answer, and perhaps endless possible answers.
Edit: as an extension of what I just said, another element to the tricky space of "morphing" is that you need to define some sort of abstract "pivot points" to create transitions. With the synth example above, there are physical knobs already defined and easy to understand. But if for example you want to "morph" between two incoming (unrelated and perhaps entirely different) audio streams as an effect, the concept becomes trickier. The one surefire method in this case is again the cross-fading, but that can be boring. If you want to create an effect that's more interesting, you don't have any "pivot points" to work with, so you'd have to define some yourself. This would likely involve some kind of interpretation of the input audio, and you can see how quickly this becomes complicated, especially if you want to end up with something that sounds good or useful. Much more simple is going back to the root of synthesis and geometrically transforming the shapes of oscillator cycles like others have demonstrated in previous posts.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Morphing
An example of morphing as opposed to cross-fading is the gradual transition between different vowels, as in this thread.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
11 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 3 guests