-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsShiftForBestMatch not working for whole waveforms #304
Comments
in which file is this edit: ahh ok - i see - it's called edit2: haha - just reading my old comment there, what else could be done "blablabla...it's a mess..." |
so - what shift-value does the function actually produce in this case? can you show me a pic of that? i assume, the "aligned" and "comparison" pics are the desired results? |
i have an idea: apparently, the function was made for aligning some signal chunks taken somewhere from the middle of two signals...right? i don't remember - what was the original use-case? anyway - as i see it, the function however - for whole signals, we should perhaps use no window at all (i.e. rectangular). or, if only initial sections of samples are used, maybe a one-sided window that tapers off only to the right. hmmm...looks like we need a more flexible interface that allows client code to specify the window function to be used. ...maybe about time to consider, if a class is more appropriate than a function for this |
I don't think I need this functionality after all, but I'd be willing to test if you want to work on it. here are two files you can use to attempt to align them |
mm actually I might still need it |
hmm - ok - allowing other windows is not a big change algorithm-wise, but i may need to rethink the API for that functionality...maybe a class rsCorrelator and/or rsSampleAligner or something would be convenient... |
For some reason, I don't think rsShiftForBestMatch is working to align waveforms on a macro level. Instead, it seems to give a small shift value just to get the cycles in phase.
unaligned:

aligned:

comparison:

The text was updated successfully, but these errors were encountered: