As part of another project, I stumbled upon the fact that Spotify and Apple Music both support International Standard Recording Codes (ISRC). This threw me down a rabbit hole of what I’m treating as unique songs in music4dance.
So what is a song?
I’ve had conversations with a number of people in the community about this very question over the years, and I’ve never been incredibly consistent in my definition. At the core of the musci4dance catalog is a list of songs indexed by dance styles they can be danced to. But that raises all kinds of questions about what counts as a “song”.
- Should a remastered version be grouped in with the original?
- How about a live version?
- What about vocal vs. instrumental?
- What if someone covers the song, or if there is a karaoke version floating out there?
- What if someone reorchestrated the song to be 3/4 when the original is 4/4 (this happens, really — take a listen to From Russia with Love (Count Basie) vs. From Russia with Love (Gerdi Padar)
- More generally, what if an artist creates a different version of the same song that works better for a dance — the catalog contains a number of specific “Bachata,” “Samba,” and “Salsa” versions of the same song — some by the same artist, some by different artists.
- What if there is an extended version? I know some DJs in the community specifically look for a shorter version of a song, since that’s what their audience prefers, but in terms of what styles they can be danced to, the longer version is almost always the same as the shorter one.
The ISRC Answer
One answer that wasn’t available when I designed the system is: if the same ISRC identifies it, it’s the same song; otherwise, it’s different.
But that is very nearly the tightest definition we can give. And it has a couple of very significant pitfalls. First, many of the lists I seeded musi4dance with (and some I continue to pull from) identify songs by Title and Artist only, so I don’t know which ISRC version that source meant. Another is that music4dance’s indexing by dance is weighted. If several community members or sources vote for the same dance on a song, it floats up higher in the results. Should I penalize songs that are effectively the same to a dancer when some dance votes fall on one version and some on another? I don’t think so?
I could go on, since as I mentioned already, this is a dilemma that I’ve been struggling with for the entire history of music4dance. But I’m trying (unsuccessfully) to keep these posts relatively bite-sized, so I’ll start with the current definition I’ve refined and a question. If there is enough interest, I’ll expand this topic into a series similar to the fun rhythms posts (which, BTW, I have at least one more pending and am open to other suggestions).
Current definition
The code matches by three things:
- Title. “Song Name”, “Song Name – Remastered 2011” and “Song Name (199 Remaster)” count as the same title. Remaster and single-version notes are ignored.
- Artist. Spelling and branding differences count as the same artist: “Pink” and “P!nk”, “Lady Antebellum” and “Lady A” – although I am currently doing this by keeping a small list of names and their equivalents, so it is far from complete. A band named after its leader does too: “Benny Goodman and His Orchestra” is Benny Goodman, which is more general but sitll has holes – there are too many versions of group names just in English, and there are similar patterns in other languages.
- Length. Two recordings must be within 15 seconds of each other. A longer album edit or a live take usually runs well past that, so it stays separate.
If any of these differ in a meaningful way, the songs stay separate.
But two recordings that differ only in a dash-suffix or parenthetical, such as “Song – Radio Edit” against “Song”, may or may not match.
So today, the code treats a remastered song as the same song. Live versions with different titles, or remixes, are treated as different. I also have some specific code that checks if any of this kind of suffix contains the name of a dance, in which case it’s treated as a different song.
But I often review songs that are close, and my personal bar is a bit lower for things like live versions and remixes. If they still feel about the same to me from a dancability perspective, I lump them together. I assume folks will generally want to go with studio-recorded versions, so they can pick that one from their collection or streaming service.
Why am I telling you this?
As with many aspects of music4dance (and software in general), the way I’m defining a song is a compromise. One that I decided on over a decade ago when I was rushing to get music4dance up and running. And one that I’ve refined over the years but am still not thrilled with. And I’m not alone in being a bit dissatisfied with this specific compromise — all of the feedback has been constructive, but it’s definitely been feedback.
I’m taking a two-pronged approach. First, as part of the ISRC improvements, I’ve finally set up a system that lets me see the close matches and decide on them individually. I’ve also set things up so it’s relatively easy for me to reverse a decision, so I’ll feel freer to play around with things.
Second, I’m rolling around ideas on how to improve this feature more fundamentally without starting completely from scratch. Should I implement some kind of two-tiered system? Or should I invest more in splitting out songs that are in any way different to a dancer and allowing for some other kind of indexing that would avoid the penalization by doing some kind of soft mirroring of votes across sufficiently similar versions. Or something entirely different?
I’m always interested in your ideas. Even if I don’t run with every one, having other brains pipe in about how the site works is an important part of making it better.
Step of the Month
The “Step of the Month” for November is to please spread the word – let a fellow dancer or DJ know how much you get out of music4dance and encourage them to give it a try. Or pass along your favorite post (hopefully one about a feature or something fun rather than this one).
Battle of the Bots Update
Feel free to stop reading if you’re not interested, but before you do, please consider purchasing a premium subscription, as the easiest answer to many of these issues is to pay for additional services that help mitigate them, which I could do if more of you supported the site.
I am going to try to avoid allocating full posts like last month’s to the struggles I’m going through to keep the site up and functional. But I’m still spending most of my time on music4dance hardening the site against attacks, both intentional and oblivious. So I’m going to try a compromise: occasionally dropping in a few words at the end of the post, both to get it out of my system and to let the few of you who might actually be interested know how things are progressing.
The main thing that’s happened since I wrote my last post (some of it was actually happening as it was going live) is that the kinds of things affecting music4dance are also happening in much broader contexts. The small patch at the core of my last outage was to the OS/libraries that music4dance runs on, and was likely similar to the kinds of patches at the root of the Outlook, iCloud, and other highly publicized outages. Things like this will likely continue to happen both because the systems code that music4dance runs on is constantly being patched and because I have to move faster than I’m comfortable with to patch the music4dance code.
From the perspective of mitigating the bot attacks, my focus since last time has been to continue tuning my code to work effectively with Cloudflare’s bot-fighting and proxy capabilities. This has taken a significant amount of load off of my server, to the point that I can probably scale back down to the less expensive size – but things are moving so fast that I’m not quite ready to do that, especially with another holiday coming up fast. I’m still using Cloudflare’s free version, so I don’t have access to their best bot-fighting tools and have to manually keep an eye out for sneakier bots and put mitigation in place. But even in these cases, the results have been a temporary slowdown rather than a full denial of service, as we saw in October.
Thanks to everyone who has reached out, and especially those who have helped with bug reports and by purchasing subscriptions.
What Happens When a Song is Danced at Different Tempos?
Sometimes, a song can be a perfectly good Bolero when heard one way but a Salsa when counting the music differently. Another example is Slow Dance (Castle Foxtrot) vs. Lindy Hop. Generally, this phenomenon is because, with some music, it’s easy to count what the musicians see as either a half note or a quarter…
Fun Rhythms: Half-time/Double-time – Dancing a Jive and a Slow Foxtrot to the same song
In the first post in this series, I talked about the 12/8 meter. And how, at certain tempos, that allows dancers to legitimately hear a very slow Foxtrot rhythm while someone else (or the same person tuning their ear a little bit differently) can hear and dance to a fast Viennese Waltz. This is one…
Fun Rhythms: 12/8 meter- Slow Foxtrot + Viennese Waltz?
Since I’ve added the ability to set the tempo of a dance for a song independently of the tempo of the song itself, I’ve found some renewed energy to go through and clean up some of the inconsistencies that have crept into the music4dance catalog. As I promised (or threatened) when I blogged about the…
Battle of the Bands – no, I mean Battle of the Bots :-(
If you visited music4dance.net in the last week of October (between about October 23rd and 26th), you probably noticed it was very sluggish, possibly even completely unresponsive. I’m very sorry if that affected you. The timing was particularly unfortunate for a couple of reasons. First, this happened while I was on vacation overseas, traveling with…





