Author |
Message |
kollo
Joined: Jun 02, 2009 Posts: 19
|
Posted: Thu Aug 02, 2012 10:26 pm Post subject:
Interpolation/Morphing |
|
|
I'm trying to build a wavetable oscillator with a dspic, 8-bit wavetables and the engine borrowed from Adrian Freeds Arduino-sketch. (http://adrianfreed.com/content/arduino-sketch-high-frequency-precision-sine-wave-tone-sound-synthesis)
I currently use linear interpolation to "morph" (As in E350, Harvestman Piston Honda, etc) between two waveforms, but i would like to morph through an entire set. That is, smootly scan through all my waveforms, not just two.
Any suggestions on how this best can be done? Calculation i currently use: (A*(1-mix)) + (B*mix), where mix range = 0-1, controlled by ADC/pot. As simple as it gets..
Would be nice to know how this "should" be done . Even tho there are many ways, of course. |
|
Back to top
|
|
|
kollo
Joined: Jun 02, 2009 Posts: 19
|
Posted: Fri Aug 03, 2012 4:48 am Post subject:
|
|
|
I think I might have got it! |
|
Back to top
|
|
|
fuzzo
Joined: Nov 12, 2011 Posts: 5 Location: Lyon , France
|
Posted: Tue Apr 28, 2015 6:24 am Post subject:
|
|
|
and what was it ?
yeah vicious bump but as I'm into that kind of thing at the moment... |
|
Back to top
|
|
|
Electric Druid
Joined: Mar 13, 2012 Posts: 44 Location: UK
|
Posted: Mon Oct 19, 2015 5:54 pm Post subject:
Re: Interpolation/Morphing |
|
|
kollo wrote: |
Any suggestions on how this best can be done? Calculation i currently use: (A*(1-mix)) + (B*mix), where mix range = 0-1, controlled by ADC/pot. As simple as it gets..
Would be nice to know how this "should" be done . Even tho there are many ways, of course. |
That's how it *should* be done. Even if you're scanning through a whole lot of waveforms, you're only crossfading between two at any single point in time. My PIC VCDO has a table of 16 waveforms, and as the wave position moves through the table, it cross fades from Wave1 to Wave2, then when we reach Wave2, it starts crossfading from Wave2 to Wave 3, etc etc.
It's dead simple really. That's why the PPG wave could do it back in the 80s!
HTH,
Tom _________________ Electric Druid Synth and Pedal DIY website |
|
Back to top
|
|
|
|