Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #372300
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.dsp, sci.electronics.design |
| Subject | Re: Waveform interpolation |
| Date | 2015-08-10 14:31 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <mqa5gg$vcd$1@dont-email.me> (permalink) |
| References | <55c7a3de$0$29180$4c5ecfc7@frugalusenet.com> <28hfsadm0apdgtqa1caqoe2ti11ajilk14@4ax.com> <93ifsapvtvu6qn2cl17qj20hmeus2v0oaq@4ax.com> <mq9jks$2av$1@dont-email.me> <55c883d8$0$28413$4c5ecfc7@frugalusenet.com> |
Cross-posted to 2 groups.
On 10/08/15 12:58, bitrex wrote: > On 8/10/2015 3:26 AM, David Brown wrote: >> On 09/08/15 23:41, John Larkin wrote: >>> On Sun, 09 Aug 2015 14:36:42 -0700, John Larkin >>> <jlarkin@highlandtechnology.com> wrote: >>> >>>> On Sun, 9 Aug 2015 15:02:56 -0400, bitrex >>>> <bitrex@de.lete.earthlink.net> wrote: >>>> >>>>> Suppose I have some sampled signal data in a ROM on a >>>>> microcontroller or >>>>> something, and I'm reading it out to a DAC. Let's say that for some >>>>> reason, I'd like to begin reading this data at some random >>>>> position, go >>>>> for a while, and then stop at a random stopping point and jump to >>>>> another random position in the ROM and continue reading, and so on, to >>>>> obtain pseudorandom variations on the waveform data. >>>>> >>>>> What sort of interpolation algorithm might be appropriate to use in a >>>>> situation like this to smooth the discontinuity between the two >>>>> jump points? >>>> >>>> Assuming that your "position" (ie, time) variable has finer resolution >>>> than your lookup table, you can use simple linear interpolation. >>>> >>>> Linear interpolation between two points can never result in an output >>>> bigger than either point, whereas an ideal filter can. So for better >>>> approximation of a good sample reconstruction filter, you need to >>>> account for more than two table points, and use something like a cubic >>>> or higher order spline interpolation. That may not matter in your >>>> situation. >>>> >>>> https://dl.dropboxusercontent.com/u/53724080/Circuits/Filters/Wayback_Machine/Interpolation_Error.JPG >>>> >>> >>> >>> Or maybe I misunderstood the problem. If you want to smooth the jump >>> between the two waveform segments (and not between points within a >>> waveform) a lowpass filter might work. Or a fader type algorithm, >>> depending on your requirements. The point interpolator would still >>> help, to better map the table output to the time variable. >>> >>> >> >> A key point, I think, is whether you know about the jumps in advance. >> If they are predictable, then you can use future jump points in your >> interpolation for better results. Another issue is whether or not you >> can use the next point from the first section during the jumps - that >> will make the crossfade smoother. >> >> You (bitrex) say you want to use a small 8-bit micro - unless your >> frequencies are very low, consider using a small 32-bit micro instead so >> that you can use cubic interpolation rather than linear. Cubics mean a >> bit more maths to figure out, and quite a bit more calculation on the >> processor (and with larger data sizes - hence the recommendation for a >> 32-bit cpu). But they give smoother outputs and more freedom for >> optimisation (such as minimising different derivatives) than linear >> interpolation. >> > > In the application that I'm thinking of, the output will eventually be > driving a fairly large piezoelectric or magnetic transducer. I think > it's possible that the inertia of the transducer itself in this case may > itself act sufficiently as a low-pass filter that the jump points will > not be noticeable in the output even with just some kind of first-order > interpolation. We'll see. Mechanics often act as a low-pass filter (and of course you can use a filter in the analogue electronics) - it could well be good enough for the job. But using a 32-bit micro could give you more flexibility - small Cortex M devices are often cheaper than most 8-bit microcontrollers these days, and certainly I find they are now usually a better choice. Of course there could be other concerns - package types, familiarity, existing code bases, peripherals, voltage ranges, etc., that make your 8-bit device a better choice.
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-09 15:02 -0400
Re: Waveform interpolation Ilya Kalistru <stebanoid@gmail.com> - 2015-08-09 12:12 -0700
Re: Waveform interpolation Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-08-09 20:36 +0100
Re: Waveform interpolation Robert Baer <robertbaer@localnet.com> - 2015-08-11 13:33 -0700
Re: Waveform interpolation Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-08-11 22:29 +0100
Re: Waveform interpolation spope33@speedymail.org (Steve Pope) - 2015-08-12 05:14 +0000
Re: Waveform interpolation rickman <gnuarm@gmail.com> - 2015-08-09 15:40 -0400
Re: Waveform interpolation "John Miles, KE5FX" <jmiles@gmail.com> - 2015-08-09 13:05 -0700
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-09 16:17 -0400
Re: Waveform interpolation Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-08-10 11:13 +0100
Re: Waveform interpolation Clifford Heath <no.spam@please.net> - 2015-08-11 09:51 +1000
Re: Waveform interpolation Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-08-11 08:26 +0100
Re: Waveform interpolation piglet <erichpwagner@hotmail.com> - 2015-08-11 09:13 +0100
Re: Waveform interpolation Robert Baer <robertbaer@localnet.com> - 2015-08-11 13:51 -0700
Re: Waveform interpolation Clifford Heath <no.spam@please.net> - 2015-08-12 10:11 +1000
Re: Waveform interpolation rev.11d.meow@gmail.com - 2015-08-09 14:14 -0700
Re: Waveform interpolation "John Miles, KE5FX" <jmiles@gmail.com> - 2015-08-09 17:15 -0700
Re: Waveform interpolation rev.11d.meow@gmail.com - 2015-08-09 17:34 -0700
Re: Waveform interpolation Robert Baer <robertbaer@localnet.com> - 2015-08-11 13:39 -0700
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 21:27 -0700
Re: Waveform interpolation DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-12 00:52 -0400
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 23:01 -0700
Re: Waveform interpolation Robert Baer <robertbaer@localnet.com> - 2015-08-11 13:34 -0700
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 21:31 -0700
Re: Waveform interpolation DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-12 00:54 -0400
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 22:59 -0700
Re: Waveform interpolation Les Cargill <lcargill99@comcast.com> - 2015-08-09 16:12 -0500
Re: Waveform interpolation John Larkin <jlarkin@highlandtechnology.com> - 2015-08-09 14:36 -0700
Re: Waveform interpolation John Larkin <jlarkin@highlandtechnology.com> - 2015-08-09 14:41 -0700
Re: Waveform interpolation Les Cargill <lcargill99@comcast.com> - 2015-08-09 17:36 -0500
Re: Waveform interpolation robert bristow-johnson <rbj@audioimagination.com> - 2015-08-09 21:25 -0400
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-09 22:09 -0400
Re: Waveform interpolation David Brown <david.brown@hesbynett.no> - 2015-08-10 09:26 +0200
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-10 06:58 -0400
Re: Waveform interpolation David Brown <david.brown@hesbynett.no> - 2015-08-10 14:31 +0200
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-10 09:45 -0400
Re: Waveform interpolation krw <krw@nowhere.com> - 2015-08-10 12:53 -0400
Re: Waveform interpolation spope33@speedymail.org (Steve Pope) - 2015-08-10 20:20 +0000
Re: Waveform interpolation DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-08-10 16:35 -0400
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 23:03 -0700
Re: Waveform interpolation whit3rd <whit3rd@gmail.com> - 2015-08-09 22:56 -0700
Re: Waveform interpolation Rev. 11D Meow! <rev.11d.meow@gmail.com> - 2015-08-11 22:57 -0700
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-12 06:54 -0400
Re: Waveform interpolation whit3rd <whit3rd@gmail.com> - 2015-08-12 13:05 -0700
Re: Waveform interpolation glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-08-10 06:45 +0000
Re: Waveform interpolation bitrex <bitrex@de.lete.earthlink.net> - 2015-08-10 07:10 -0400
Re: Waveform interpolation Jasen Betts <jasen@xnet.co.nz> - 2015-08-10 08:16 +0000
Re: Waveform interpolation "David Eather" <eather@tpg.com.au> - 2015-08-11 14:15 +1000
Re: Waveform interpolation Randy Yates <yates@digitalsignallabs.com> - 2015-08-11 09:30 -0400
Re: Waveform interpolation Robert Baer <robertbaer@localnet.com> - 2015-08-11 13:30 -0700
Re: Waveform interpolation Martin Brown <|||newspam|||@nezumi.demon.co.uk> - 2015-08-12 10:18 +0100
csiph-web