Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread STEFFAN DIEDRICHSEN
If an update on a zero-crossing is enough, you might want to take a look at the wave guide oscillator: https://ccrma.stanford.edu/~jos/pasp/Digital_Waveguide_Oscillator.html It does like updates at zero-crossings, but needs some history corrections. The coupled-form oscillator, as discussed in

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Ethan Fenn
You probably won't need to correct the amplitude every sample because the error introduced every tick should be tiny. You can do it every N samples and just see what value of N introduces an acceptable amount of noise. Or just fold the amplitude management in as Robert suggests, that way you get

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread robert bristow-johnson
Original Message Subject: Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator From: "Andrew Simper" Date: Wed, February 20, 2019 9:20 pm To: "Robert Bristow-Johnson" "A discussion list for music-related DSP"

[music-dsp] Perceptual test on synthesizer sounds

2019-02-21 Thread Fanny Roche
[Apologies for cross postings] Hi all, As part my PhD thesis, I am currently launching an online perceptual test of a duration of about 20 minutes, and I am looking for subjects. The perceptual test consists in listening to synthesizer sounds of about 2 seconds and describing them verbally

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Dario Sanfilippo
Thanks everyone for your answers. Ian: I'll look into that. My uni library doesn't seem to have access to that paper but I'll see what I can find about the topic. Ethan: would that be a complex oscillator if taking both outputs? Perhaps I could keep the system stable by using the following lines

[music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Martin Vicanek
/Ian wrote: Every time you modify the filter coefficients, modify the state of the//filter so that it will produce the output you are expecting. Easy to do. /Ethan wrote: A very simple oscillator recipe is [the coupled form]. However, it's not stable as is, so you periodically have to make an

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Phil Burk
Another approach is to use a Taylor Expansion. It's pretty accurate in the first quadrant. One advantage over the resonator is that it does not drift. Another advantage is that you can do FM without paying the penalty of recalculating the coefficients. Here is some free Java source.

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread robert bristow-johnson
� yup.� that's a good way to do it, too.� i've done this with a 5th-order odd-symmetry polynomial (so there were only 3 non-zero coefficients) and had harmonics suppressed down 70 dB below the fundamental. first generate sawtooth (at your fundamental frequency) with limits of -1 and +1 using

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Dario Sanfilippo
This looks great. Thanks, Martin. Dario On Thu, 21 Feb 2019 at 19:33, Martin Vicanek wrote: > *Ian wrote: > Every time you modify the filter coefficients, modify the state of the > **filter so that it will produce the output you are expecting. Easy to

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread robert bristow-johnson
Original Message Subject: [music-dsp] Time-variant 2nd-order sinusoidal resonator From: "Martin Vicanek" Date: Thu, February 21, 2019 10:33 am To: music-dsp@music.columbia.edu

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Olli Niemitalo
On Fri, Feb 22, 2019 at 9:08 AM robert bristow-johnson < r...@audioimagination.com> wrote: > i just got in touch with Olli, and this "triangle wave to sine wave" > shaper polynomial is discussed at this Stack Exchange: > > > >

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread Andrew Simper
Thanks Robert, much appreciated for adding this to my code :) With double precision I've noticed that even when undergoing drastic frequency modulation it all works pretty accurately still, so any correction term could probably be applied with a very long time constant and linear interpolation to

Re: [music-dsp] Time-variant 2nd-order sinusoidal resonator

2019-02-21 Thread robert bristow-johnson
� i just got in touch with Olli, and this "triangle wave to sine wave" shaper polynomial is discussed at this Stack Exchange: https://dsp.stackexchange.com/questions/46629/finding-polynomial-approximations-of-a-sine-wave/46761#46761 Original Message