---------------------------- Original Message ---------------------------- Subject: Re: [music-dsp] Blend two audio From: "Nigel Redmon" <[email protected]> Date: Mon, June 18, 2018 7:14 pm To: [email protected] -------------------------------------------------------------------------- > Suggestions of crossfading techniques, but I’m not convinced that > solves the problem the OP posed: > > "given [two] identical audio inputs...A1 is ahead of A2 by t sec, when switch > from A1 to A2...it should be seamless” > > If the definition of “seamless” is glitch-free, crossfading will > solve it. But then why mention “identical" and “ahead”? > > I think he’s talking about synchronization. And it’s unclear > whether t is known. > > i might suggest cross-correlating A1 and A2 and find a peak in the cross-correlation that is a good peak closest to the given time "t" and use *that* time for t instead of the given. just put a little bit of jitter into the offset amount to line the two sounds up as good as possible, then do a crossfade. a few years ago, on this very mailing list, i posted a "theory" on how to go from "constant-power crossfade" (which is the most glitch-free when the correlation is zero) to "constant-voltage crossfade" (which is the best when the correlation is 100%) and everything in between.� Olli Niemitalo had some ideas in that thread.� dunno if there is a music-dsp archive anymore or not. � -- r b-j� � � � � � � � � � � � �[email protected] "Imagination is more important than knowledge." � � � �
_______________________________________________ dupswapdrop: music-dsp mailing list [email protected] https://lists.columbia.edu/mailman/listinfo/music-dsp
