There has been a recent additional HCD case, line 4, see
https://forum.kitz.co.uk/index.php/topic,27118.0.html and the HCD detector sometimes did successfully detect and report HCD, sometimes not, as the fine details kept shifting and this was a shape not seen before (see above link).
To handle this new shape, I added a
third chord test, one with a right-hand (max x) end value of 70 in addition to the earlier chord 1 test that had a rhs at around tone 80. The tone range of this chord then is
4x - 70, where 4x is a bit greater than 40m adjusted for stalactite detection. I have not yet put in stalactite detection at the rhs tone 70 end, as there does not seem to be much of a problem yet. I will probably have to add that further enhancement / tweak for increased robustness.
So this gives us
algorithm V.0 which now has a
triple test: is_hollow_chord1 || is_hollow_chord2 || is_hollow_chord3.
With this new chord, the algorithm V.0 picks up the HCD nicely. It’s because the rhs endpoint is now on the rh mound, local maximum, so just nicely to the right of the local minimum that we’re interested in finding, the drop below the chord’ midpoint-y.
This is the problem picture.
[Moderator edited to fix a typo in a markup tag.]