electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Microcontrollers and Programmable Logic
Interpolation/Morphing
Post new topic   Reply to topic Moderators: State Machine
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
kollo



Joined: Jun 02, 2009
Posts: 19

PostPosted: Thu Aug 02, 2012 10:26 pm    Post subject: Interpolation/Morphing Reply with quote  Mark this post and the followings unread

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 Wink. Even tho there are many ways, of course.
Back to top
View user's profile Send private message
kollo



Joined: Jun 02, 2009
Posts: 19

PostPosted: Fri Aug 03, 2012 4:48 am    Post subject: Reply with quote  Mark this post and the followings unread

I think I might have got it! Very Happy
Back to top
View user's profile Send private message
fuzzo



Joined: Nov 12, 2011
Posts: 5
Location: Lyon , France

PostPosted: Tue Apr 28, 2015 6:24 am    Post subject: Reply with quote  Mark this post and the followings unread

and what was it ?

yeah vicious bump but as I'm into that kind of thing at the moment...
Back to top
View user's profile Send private message
Electric Druid



Joined: Mar 13, 2012
Posts: 44
Location: UK

PostPosted: Mon Oct 19, 2015 5:54 pm    Post subject: Re: Interpolation/Morphing Reply with quote  Mark this post and the followings unread

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 Wink. 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: State Machine
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Microcontrollers and Programmable Logic
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use