Here’s the thing about the bariolage section, then: Bach goes ahead and uses all the wrong notes. They’re all surprising, but the most surprising one is E♭, the most dissonant possible note in the key of D minor. That would be a bold choice even now. In Bach’s more conservative context, it was unheard of. But the bariolage doesn’t sound wrong at all. Bach carefully organizes all those chromatic notes so they all sound perfectly logical and inevitable. They sound richly strange, but certainly not wrong.
As I mentioned before, streaming services ingest about 20,000 new songs every single day, and the classification of those songs is still a manual process. We can accurately classify all songs before they are ingested into a music catalog so that they can be part of the recommendation and discovery algorithms immediately. More importantly, we can identify duplicate songs, erroneous artist profiles, and many other things.