Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #372214 > unrolled thread
| Started by | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| First post | 2015-08-09 15:02 -0400 |
| Last post | 2015-08-12 10:18 +0100 |
| Articles | 11 on this page of 51 — 22 participants |
Back to article view | Back to sci.electronics.design
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
Page 3 of 3 — ← Prev page 1 2 [3]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2015-08-09 22:56 -0700 |
| Message-ID | <78470563-371e-447d-97f2-fde6e97debdb@googlegroups.com> |
| In reply to | #372214 |
On Sunday, August 9, 2015 at 12:02:59 PM UTC-7, bitrex 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.... > What sort of interpolation algorithm might be appropriate to use in a > situation like this to smooth the discontinuity between the two jump points? It's possible to define (in digital space) a mix-and-filter by oversampling both the two data streams, and then making weighted sums. The weights define a digital filter. Then, like in an audio CD output, only the sums go to the DAC, and from there to a brickwall analog filter, to deal with quantization noise at frequencies too high for the digital filter.
[toc] | [prev] | [next] | [standalone]
| From | Rev. 11D Meow! <rev.11d.meow@gmail.com> |
|---|---|
| Date | 2015-08-11 22:57 -0700 |
| Message-ID | <52olsal070latmq3in781ag0n5h3phhdfj@4ax.com> |
| In reply to | #372276 |
On Sun, 9 Aug 2015 22:56:52 -0700 (PDT), whit3rd <whit3rd@gmail.com> wrote: >It's possible to define (in digital space) a mix-and-filter by oversampling both the two >data streams, and then making weighted sums. The weights define a >digital filter. Then, like in an audio CD output, only the sums go to the DAC, and >from there to a brickwall analog filter, to deal with quantization noise at frequencies >too high for the digital filter. bingo
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2015-08-12 06:54 -0400 |
| Message-ID | <55cb25d3$0$11379$4c5ecfc7@frugalusenet.com> |
| In reply to | #372276 |
On 8/10/2015 1:56 AM, whit3rd wrote: > On Sunday, August 9, 2015 at 12:02:59 PM UTC-7, bitrex 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.... > >> What sort of interpolation algorithm might be appropriate to use in a >> situation like this to smooth the discontinuity between the two jump points? > > It's possible to define (in digital space) a mix-and-filter by oversampling both the two > data streams, and then making weighted sums. The weights define a > digital filter. Then, like in an audio CD output, only the sums go to the DAC, and > from there to a brickwall analog filter, to deal with quantization noise at frequencies > too high for the digital filter. > Do you have a reference where I could take a look at the gritty details (maths) of this filter? Thanks!
[toc] | [prev] | [next] | [standalone]
| From | whit3rd <whit3rd@gmail.com> |
|---|---|
| Date | 2015-08-12 13:05 -0700 |
| Message-ID | <b14a6029-c592-4e67-b4f4-681f5b29b139@googlegroups.com> |
| In reply to | #372678 |
On Wednesday, August 12, 2015 at 3:54:22 AM UTC-7, bitrex wrote: > On 8/10/2015 1:56 AM, whit3rd wrote: > > On Sunday, August 9, 2015 at 12:02:59 PM UTC-7, bitrex 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.... [with transitions to a secondary sampled signal] > >> What sort of interpolation algorithm might be appropriate to use in a > >> situation like this to smooth the discontinuity between the two jump points? > > > > It's possible to define (in digital space) a mix-and-filter by oversampling both the two > > data streams, and then making weighted sums. The weights define a > > digital filter. Then, like in an audio CD output, only the sums go to the DAC, and > > from there to a brickwall analog filter, to deal with quantization noise at frequencies > > too high for the digital filter. > > > > Do you have a reference _Digital_Signal_Processing_, Stanley, Dougherty, Dougherty; Reston Publishing Co., 1984 Chapters 7 and 8. The easiest way is infinite impulse response ( but that has time-lag features). The finite-impulse-response is a bit more work, but makes use of knowing the future samples (output, therefore, has a time-delay). The blending of multiple inputs isn't part of the filter math, but the filter does smooth any abrupt features.
[toc] | [prev] | [next] | [standalone]
| From | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
|---|---|
| Date | 2015-08-10 06:45 +0000 |
| Message-ID | <mq9ha0$3uu$1@speranza.aioe.org> |
| In reply to | #372214 |
In comp.dsp 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. You don't say what kind of data, and it might matter. Assuming that the full bandwidth is in use, you should be able to just switch. For audio, there is much less at the higher frequencies, which makes it more noticable when you add high frequencies with a discontinuous jump. This is also the reason why audio is fairly compressible. To answer the question, you need to know, approximately, the power spectrum of the signal. That is, how much there is in the high frequencies to mask the discontinuity. > What sort of interpolation algorithm might be appropriate to > use in a situation like this to smooth the discontinuity between > the two jump points? -- glen
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2015-08-10 07:10 -0400 |
| Message-ID | <55c886a0$0$26207$4c5ecfc7@frugalusenet.com> |
| In reply to | #372282 |
On 8/10/2015 2:45 AM, glen herrmannsfeldt wrote: > In comp.dsp 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. > > You don't say what kind of data, and it might matter. > > Assuming that the full bandwidth is in use, you should be able > to just switch. > > For audio, there is much less at the higher frequencies, which > makes it more noticable when you add high frequencies with a > discontinuous jump. This is also the reason why audio is fairly > compressible. > > To answer the question, you need to know, approximately, the power > spectrum of the signal. That is, how much there is in the high > frequencies to mask the discontinuity. Not much. The physical process that the data is sampled from has a pretty strong 1/f characteristic. But the output is most likely going to be driving some kind of transducer that will have significant inertia, and it's possible that it will act enough as a low-pass filter that I can get away with a minimum of processing.
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2015-08-10 08:16 +0000 |
| Message-ID | <mq9ml7$8qh$1@gonzo.alcatraz> |
| In reply to | #372214 |
On 2015-08-09, 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. or even to do PSK > What sort of interpolation algorithm might be appropriate to use in a > situation like this to smooth the discontinuity between the two jump points? a sinc filter on the output perhaps? or a cross-fade on some curve, perhps sqrt(cos^2( 0..pi/2)) vs sqrt(sin^2(0..pi/2)) -- \_(ツ)_
[toc] | [prev] | [next] | [standalone]
| From | "David Eather" <eather@tpg.com.au> |
|---|---|
| Date | 2015-08-11 14:15 +1000 |
| Message-ID | <op.x26rf5vkwei6gd@phenom-pc.asus> |
| In reply to | #372214 |
On Mon, 10 Aug 2015 05:02:56 +1000, 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? If it is random data with an equal distribution then no interpolation is needed and will in fact be a bad thing
[toc] | [prev] | [next] | [standalone]
| From | Randy Yates <yates@digitalsignallabs.com> |
|---|---|
| Date | 2015-08-11 09:30 -0400 |
| Message-ID | <87tws6uf3w.fsf@digitalsignallabs.com> |
| In reply to | #372419 |
"David Eather" <eather@tpg.com.au> writes: > On Mon, 10 Aug 2015 05:02:56 +1000, 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? > > If it is random data with an equal distribution then no interpolation > is needed and will in fact be a bad thing David, Excellent observation. Without more information, it's impossible to suggest "good" ways to do this. To the OP: What are you REALLY trying to do?!? -- Randy Yates Digital Signal Labs http://www.digitalsignallabs.com
[toc] | [prev] | [next] | [standalone]
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2015-08-11 13:30 -0700 |
| Message-ID | <wXsyx.30008$2J4.28171@fx02.iad> |
| In reply to | #372214 |
bitrex 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? With arbitrary point values, there is no "easy" solution,other than the crude use of average of the 2 values (last of past points, first of "jump" points). If one had the time between "normal" samples, one could take the previous (say) 5 points,and the "next" (to be used) points and calculate previous slope, and calculate "next" after-"jump" slope. Then use slopes and values to fake intermediate values; might be hokey-sounding transition, but a lot better than the one-point fake mentioned.
[toc] | [prev] | [next] | [standalone]
| From | Martin Brown <|||newspam|||@nezumi.demon.co.uk> |
|---|---|
| Date | 2015-08-12 10:18 +0100 |
| Message-ID | <mqf31k$bsr$1@speranza.aioe.org> |
| In reply to | #372589 |
On 11/08/2015 21:30, Robert Baer wrote: > bitrex 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? You might be able to get away with nothing. Early CD players used mute if the CRC error was uncorrectable then smarter ones used last sample. You could easily see it on an oscilloscope but for a short glitch event it was all but inaudible. Without knowing the nature of the waveforms being manipulated it is impossible to choose the best way to do it. By comparison the burst of loud almost ultrasonic clicks or boiling mud when DAB/DTV sound goes haywire is really irritating. > With arbitrary point values, there is no "easy" solution,other than > the crude use of average of the 2 values (last of past points, first of > "jump" points). > If one had the time between "normal" samples, one could take the > previous (say) 5 points,and the "next" (to be used) points and calculate > previous slope, and calculate "next" after-"jump" slope. Then use slopes > and values to fake intermediate values; might be hokey-sounding > transition, but a lot better than the one-point fake mentioned. Nearest neighbour will be more than good enough on a potentially noisy signal. Derivatives of numeric data are pretty ropey to begin with. -- Regards, Martin Brown
[toc] | [prev] | [standalone]
Page 3 of 3 — ← Prev page 1 2 [3]
Back to top | Article view | sci.electronics.design
csiph-web