How to deal with distorted tracker bar spacings? #3
Replies: 1 comment
-
I have seen this very occasionally with the red Welte rolls (I think on the order of 1%), although different scanning/brands may have different probabilities). It sounds like a failure in the Fourier analysis within
Plotting the absolute value of the Fourier analysis might graphically demonstrate what the problem is. The roll/scan is very straight, so I do not think it is a problem with the image. There is a large gap between notes on the right side of the roll and the expression holes which might be a factor (but I don't think so). It would be good to plot the Fourier analysis to see what the problem is (where the problem is most likely happening).
They do not match perfectly: I calculate the spacing with a Fourier transform, but there was a problem using the phase of the transform to assign the absolute position on the paper, so I used linear regression (or similar) to find the best position for the tracker bar hole alignments. This will tend to favor the notes region, centering the incorrect spacings on the notes and showing errors in the expression track on the edges. Here is the tracker bar position for the right-most (highest?) note: Compare to about 30% from the left, where the center of the tracker bars was probably assigned: The top image shows the tracker line favoring the left side of the holes, while the bottom one is closer to the center (not exactly, so exactly at the offset position measured after determining the spacing from Fourier analysis. There are two functions that are run before roll-image-parser/src/RollImage.cpp Lines 179 to 187 in 1bd87ef So there are possible problems in the previously called functions If there is no code for detecting 1/2 subharmonic yet, then it could be added: if there are significant amounts of detected holes that are halfway between detected tracker lines, then the subharmonic was likely chosen, and the Fourier transform peak should be checked for at twice the detected frequency. |
Beta Was this translation helpful? Give feedback.
-
This is an extract from a scan of one of the rolls I received from Marc Widuch, marked up using the markholes program.
As you can see, the expression holes on the left and right sides, for whatever reason, do not align with the tracker bar lines: instead of being on the line, they are in between. The musical notes themselves, however, match perfectly with the tracker lines. This leads to incorrect track numbers being assigned.
Does anyone have an idea why this is happening (is it somethign common? Perhaps it's happening due to non-straight paper during the scanning process?) and how to best address it?
(
analyzeTrackerBarSpacing()
calculated theholeSeparation
to 19.179, which is half of what the actual spacing is. For the image above I forced it manually to 38.359 ...)Beta Was this translation helpful? Give feedback.
All reactions