Category Archives: Searching for Music

Posts that are about searching for songs, excluding those about special occasions

New Feature: Improved Text Searching

I’ve always been a bit dissatisfied with how I set up the Artist field in music4dance.  A free text field for the artist generally works, but it doesn’t capture everything I’d like.  But since the core functionality of music4dance is to associate songs with dance styles, keeping the rest of the system simple is a sound decision, and I stand by it.

However, something comes up every few years that makes me want to at least incrementally improve the text search part of the system.  When Prince left us, I broke down and created artist pages based on the text of the artist field.  This was a significant improvement, and I returned to that when writing my DWTS Taylor Swift/Whitney Houston post.  In that post, I listed a few things that I thought could be improved with artist search and then let things rattle around in my brain for a few months.

Last week, I decided to spend a little while seeing what I could do to make a worthwhile improvement in a short time.  What came out was a pair of changes.  The more visible change is an addition to the advanced search page

I’ve added some additional controls to explicitly search each of the three primary text fields in the music4dance database – Title, Artist, and Albums.  This enables a more direct way to get to all of the songs by an artist.  It also allows the inverse.  While adding the artist page let you get to all of the songs by “Prince,” it didn’t let you find all of the songs with “Prince” in the Title without also seeing the Prince and Prince Royce songs or, for that matter, songs with Prince in album names.  That is, if you can find one song with Prince as the artist you can click on the link to get to the artist page.

One side effect of this change is that if you search for Prince in the artist field, you also get Prince Royce songs, although they end up at the end of the list.  While that’s not great in the case of Prince, you now have a fast way to get to a link that will send you to the Prince artist page, which does only list Prince songs.  The good part of this quirk is that if you’re looking for songs by Benny Goodman, you’ll get a list containing not just songs with exactly “Benny Goodman” in the artist field.  You also get songs by “Benny Goodman Sextet,” “Benny Goodman Quartet,” “Benny Goodman and Charlie Christian,” “Peggy Lee and Benny Goodman,” etc.

The other more subtle improvement is that I dug into how the underlying database ranks the results of a search.  With my new understanding, I decided to weight the Title and Artist fields considerably higher than the other fields, including the Albums fields.  This helps more than one would think because I grab as many albums as I can associate with a song, and there may be a word in several of those album titles that doesn’t show up in the title or artist. Since the database uses the frequency of a word in the text as part of the weighting, those songs will show up high in the ranking, while it’s not obvious why that song showed up at all since you have to click through to the song details page to see the album names.

Give it a whirl and tell me what you think.  I will probably still do an artist index and possibly figure out a way to do some cleaning up of the database.  There are still songs where the title contains a featured artist, and that artist isn’t represented in the artist field at all, for instance.

As always, I’m very interested in your feedback, so please share any thoughts and ideas about this post or the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way makes sense for you.

What are your favorite Prince songs for partner dancing?

I, like many, am mourning and listening to Prince’s music. Over and over again. Since I’ve been thinking a lot about music and partner dancing recently, this lead me to think about what I would dance to each song.  Especially when Leader of the Band popped up in my playlist and screamed Cha-Cha at me. …

Keep reading

Ballroom Dancing to Whitney Houston and Taylor Swift

The recent Dancing With the Stars episodes featuring Whitney Houston and Taylor Swift’s music caused a significant spike in traffic at music4dance.net, with dancers looking for music by those artists. I find this exciting for many reasons.  There’s the obvious reason that more traffic means more people showing interest in this project.  It also reinforces…

Keep reading

Ballroom Dancing to Whitney Houston and Taylor Swift

The recent Dancing With the Stars episodes featuring Whitney Houston and Taylor Swift‘s music caused a significant spike in traffic at music4dance.net, with dancers looking for music by those artists.

I find this exciting for many reasons.  There’s the obvious reason that more traffic means more people showing interest in this project.  It also reinforces the idea that dancing to music you enjoy is good, even if it’s not exactly the music that co-evolved with the dance.  This is one of the reasons I started music4dance in the first place and one of the reasons that I continue to spend time on the site. Another reason I’m excited is that even without doing a push, as of this writing, 58 Taylor Swift and 37 Whitney Houston songs are tagged with some kind of dance in the music4dance catalog.

It also made me realize that I haven’t checked in on how well the site handles searching by artist in years.

Here’s a quick overview of what the site currently provides.

  • Do a general search for an artist’s name either from the search control in the title bar or from the main song library page
  • This will result in a list of songs, many of which have the artist you searched for listed in the artist field.
  • At that point, clicking on the artist’s name will take you to a list of songs that we’ve cataloged by that artist.

This generally works1, and a significant number of people are landing on the Taylor Swift and Whitney Houston pages, so I have to count that as a success.

There are also some significant drawbacks that I can see and likely plenty that I can’t.  So, I will generate a quick list here for your perusal.  Please respond with feedback if you find any of these particularly onerous or if there are issues not on this list that you find more annoying.

  • There is no way to get to a list of artists cataloged on music4dance, so you have to do a general search for artists to get to a link that will take you to the artist page.
  • The artist field is a general text field, so typos and variations creep in2.
  • The artist page is pretty sparse; it’s just a list of songs that contain the artist’s name in the artist field. There are probably other things that we could include on the page.

What do you think? Are these your top issues with how I’m handling artists? Or are there other things that you find more pressing? Let me know, either way.

As always, I’m very interested in your feedback and read every comment and email. So please share any thoughts and ideas about this post or about the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way makes sense for you.

P.S. I’m working on getting out my annual holiday music post. Meanwhile, if you’re looking to put together a holiday playlist or searching for the perfect song for that holiday party exhibition piece, the posts from previous years should give you something to start with. Or you can just head to the holiday music page and see what you find.

Related Posts

What are your favorite Prince songs for partner dancing?

I, like many, am mourning and listening to Prince’s music. Over and over again. Since I’ve been thinking a lot about music and partner dancing recently, this lead me to think about what I would dance to each song.  Especially when Leader of the Band popped up in my playlist and screamed Cha-Cha at me. …

The Pink Martini Solution

Not all artists are created equal when it comes to creating dance-able music.  For instance, one of my favorite artists of all time is John Coltrane.  Do you see him well represented in the music4dance catalog?  Absolutely not.   Because a consistent tempo just isn’t a core part of his music.  Which is part of the…

  1. And – bonus – their names correctly autocomplete when you type them in the search box.  This seems like a simple thing that one would expect in any search box on any site, but it’s a pretty heavy lift to get working correctly. ↩︎
  2.  I intentionally de-emphasized the artist in my original site design.  The artist field is just a free text field that can contain anything.  That ends up being somewhat random, between what I’ve pulled from various sources and what users have entered.  In the case of Whitney Houston,  Hold Me is listed with Whitney Houston & Teddy Pendergrass as the artists.  This works all right since the Whitney Houston artist page is just a search for the keywords “Whitney Houston” in the artist field.  But in the case of Taylor Swift, there are several songs that are listed as “Feat. Taylor Swift” in the title and her name isn’t in the artist field at all.  So they wouldn’t show up on the Taylor Swift page.  The Joker and the Queen by Ed Sheeran is one example of this issue.  One fix to this is to do some cleaning up of the catalog and make sure that the featured artists show up in the artist field as well as (or instead of) the title field.  Another is to take a step back and build a more complex scheme, possibly leaning on something like musicbrainz.org to center more on artists. ↩︎

New Dance: Single Swing

I’ve added Single Swing as a dance style that can be searched on and voted for in the music4dance catalog. While I think of this dance as a short-cut to use when I want to dance East Coast Swing to faster Jive or Lindy-Hop music, I’ve received enough feedback from the community that it’s considered a unique dance in its own right that I am happy to add it. From some light searching on this dance, it has gone by several names in different regions and times. Some of the names I saw were “Sing-time Swing,” “Single rhythm swing,” and “East Coast Single Swing.” It’s also one of several dances that have been called the Jitterbug at some point in the twentieth century.

I set the initial tempo to 140-184 beats per minute (35-46 measures per minute), which I found listed in several places. Since, as far as I can tell, this isn’t a competition dance, I haven’t found an “official” tempo range and am happy to adjust if someone with more expertise in this particular dance would provide feedback. I also seeded this list of songs with publicly available lists that sounded reasonable. Please feel free to go through to vote up other swing songs that you think are good fits for this dance. You can do this by adding songs or by searching for Swing songs in the Single Swing tempo range and voting up the ones that sound like good Single Swings. I’m also happy to bulk upload lists if you’ve got a CSV file or Spotify playlist of single swings that you’d like me to include.

Over the past several years, I’ve been moving the site in a direction where I hope to be able to handle more different dance styles and add them more easily. I’m getting closer to being able to add dances quickly. However, to add a lot of different dances, I’ll have to replace the underlying search engine (or wait for it to add some new features – it will be interesting to see which comes first). Some of the things I’ve done are to make lists of dances somewhat flatter and allowing search by name in most places where dances are listed. I’ve loosened the tie between types of dances (e.g., Sing, Waltz, Latin) and dance style, so that dance styles don’t have to be as strictly categorized as before. I’ve also added synonyms to dance styles, so in most places where you see the name of a dance style, other names of the dance are shown in parenthesis.

In any case, I’m always interested in what you think would be most helpful. I’m sure there are plenty of dance styles I’m not cataloging that fit into the broad category of partner dances that are danced to a specific tempo range or style of music. If you have a dance style suggestion or other comments, please feel free to reply to this post or contact me here. In addition, if you enjoy the site or the blog (or both), please consider helping by adding to the Single Swing catalog or contributing in whatever other way makes sense for you.

New Feature: Searching for only the songs that someone has voted for

Arne pointed out the other day that it would be useful to be able to build a playlist for just the songs that he had voted for dancing Cha Cha. I scratched my head a bit because I thought this was already possible. I even added a feature last year to make it easier to see who has voted on dance styles for songs so that you could look for other songs that a user voted on.

I should have noticed that you can search for a dance and that someone has tagged it in some way. But you can’t specify that someone has voted for a particular dance. They might have voted against the dance or just tagged the song with another kind of tag, and someone else voted for the song, so it still shows up in the search.

This wasn’t too bad when the catalog was relatively small and when you’re just looking at search results to find ideas for songs to dance to. 

However, things have gotten worse over time for a couple of reasons.

In Arne’s case, he wanted to export a playlist to Spotify of songs that he explicitly voted for Cha Cha. Using advanced search, he can choose Cha Cha then search “By User” and “Include all songs arne has tagged.” This search resulted in 50 songs, only 26 of which he had voted for Cha Cha. On that list were songs that he had explicitly voted against and a number that he had just voted for other dances.

The new feature is to add an option to the “By User” section of advanced search to “Include all songs [user] has voted for [dance].” In this case, choosing “Include all songs arne has voted for Cha Cha” yields the correct 26 songs he voted for.

The other case this feature solves is that as the catalog grows, there is more variety in how people vote on songs, so there is more noise. For instance, searching for the songs that DWTS (Dancing With the Stars) has tagged that someone has also voted for Cha Cha results in 305 songs, while searching specifically for the songs that DWTS has voted for Cha Cha results in only 130 songs.

Thanks, Arne, for pointing this out and helping to make music4dance more useful for everyone.

As always, I’m very interested in your feedback, so please share any thoughts and ideas about this post or the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way makes sense for you.

P.S. The DWTS list is a list I maintain, and any mistakes in are mine. I use a semi-automated method of scraping the published information about the dances each week to populate the information in muic4dance. DWTS, in particular, is challenging because the music they dance to is generally covers performed by their house bands, so they don’t always match the tempo of the available recordings. Please let me know about any mistakes you see.

New Feature: Filter by Song Length

If you’re trying to get a playlist together for a social dance, it would be nice for the songs to be a reasonable length for your audience. 

I realize that DJ tools will let you manage this in multiple ways, but sometimes it’s just easier to start with songs in the length range you’d like. There are probably other good reasons to be able to filter on the duration of a song; let me know if you think of any.

Again at Arne’s prompting, I implemented the ability to filter on song length using the advanced search page. My quick and dirty implementation is to filter on a range of seconds. This implementation will let you do things like get all the Salsa songs in the catalog between 90 and 180 seconds between 150-180 beats per minute. Or any other variations that you come up with.

I already store the duration values for songs, so this wasn’t a heavy lift. But I did take some shortcuts to get this feature out quickly. I’d prefer a slicker control to choose the length, and it would be awfully nice if when you searched or sorted on the length that the length showed up in the results. Neither of these would be particularly hard to do. Still, I’d like to hear if others are using this feature and how they’re using it before I invest more into it.

As always, I’m very interested in your feedback, so please share any thoughts and ideas you have about this post or the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way that makes sense for you.

New Feature: General Search

I’ve finally added a feature that should really be a part of any good website. A general search of the entire site is available by typing one or more keywords in the search box in the upper right and clicking search. Try it out, and let me know what you think.

As I continue to improve music4dance, I find myself torn between making things easier for new or casual members of the site and deeper features that may only be used by more dedicated members. I tend to lean towards the latter because they are often the features that I use or the features based on feedback from members who have been using the site a lot. But I would love to get more people involved, which means making the initial experience as seamless as possible.

Search is pretty much the core feature of this site. The idea is, after all, to try to help partner dancers find music that inspires them to dance. I’ve invested a lot in the search engine that lets you search for songs and made a big push to make the core search work better. But in the meantime, I’ve written many blogs posts, some help pages, and added other content to the site that isn’t directly embedded in the song catalog.

So how do you search for any of the other information? And for that matter, if you’re a first-time user of the site, shouldn’t you be able to search the whole site easily without clicking through to a search page from the home page?

Some technical issues made this a bit more challenging than it would appear. Not the least of which is that the blog and help system are actually an entirely different site using a different technology that I have less control over. But after going down a few different paths, I think I’ve got something that I’m happy with. It could still use some work, and a couple of things about it feel a little kludgy. But I feel like it’s a significant improvement, especially for a first-time user. It also enables a full-text search of the core site, which will let me invest more in content that isn’t directly part of the song catalog. I’ve got a bunch of things I’ve been thinking about along those lines that I haven’t implemented because I was worried they’d be buried without a generalized search.

So as I mentioned at the beginning of this post. You should be able to just type a keyword or two into the search control in the header (or under the hamburger menu if you’re on a smaller device), and you’ll be taken to a search results page. That page is a little more complicated than I’d like but hopefully pretty effective.

As always, I’m very interested in your feedback, so please share any thoughts and ideas you have about this post or the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way that makes sense for you.

New Feature: Searching for a song from Spotify or iTunes

A new member of the music4dance community, Arne, pointed out that he expected to be able to search by Spotify Id. Furthermore, he figured out how to do that by going to the Add Song by Id and dragging the song from Spotify into the edit field on that page.

This is a case of programmer myopia on my part. I wrote all of the code to look up a song in the Spotify and iTunes catalog with the idea of (a) being able to link back to those catalogs and then (b) to make it easier to add songs to the music4dance catalog. I didn’t really think that someone would want to look for a song they were playing in Spotify or Apple Music in the music4dance catalog. Actually – I did, but the way I was thinking about that was a much bigger feature that I may never get around to implementing.

What clicked in my slow programmer brain when I saw Arne’s question was that I had most of the code for a really cool feature but hadn’t seen the opportunity to implement it since I had this much more grandiose feature in my head. After the obligatory forehead slap and exclamation of “Duh!” I set about seeing how easy it would be to use what I had already written to implement a reasonably smooth version of what our Arne was doing.

It was definitely straightforward – a bit of refactoring and a few dozen lines of new code, and I’ve got something that I think is pretty slick. But I’ll let you judge:

When listening to a song in Spotify or  Apple Music, drag the song from the player and drop it into the text box on the top of either the Song Library page or the Advanced Search page. If the song is in the music4dance catalog, we’ll take you directly to the song page and show you what others have voted on to dance to that song. If it’s not already in the library, we’ll give you the option to add the song yourself.

As always, I’m very interested in your feedback. As should be obvious from this post, your feedback is essential to making music4dance better. In addition, I read every piece of feedback that comes through and respond to as much as I can. So please share any thoughts and ideas you have about this post or the site by commenting below or using other feedback mechanisms listed here. In addition, if you enjoy the site or the blog (or both), please consider contributing in whatever way that makes sense for you.

Ask Music4Dance: How do I find a “Pop Rock” song to dance a Slow Foxtrot to?

This is another question that I’ve seen a bunch of variations on over the years.  It’s one of the reasons that I started music4dance.  I love Big Band music and grew up playing Basie and Goodman in Jazz bands.  And my dad was a big fan of Buddy Rich.  On top of that Foxtrot and Swing co-evolved with this kind of music, so there is no problem finding plenty of music of that style to dance to.

But I’m also pretty eclectic in my musical tastes and some of the most fun I’ve had as a dancer is choreographing an exhibition dance to music that wasn’t written to be danced to – or at least not a traditional ballroom style dance.  There are obviously limits to this, but you see it all the time on shows like Dancing With the Stars and So You Think You Can Dance.

When I received a variation on this question again recently, I checked and realized that in my big rewrite of the site, I had broken the easiest way to do this kind of search.  This is now fixed,  so you can go to the info page for the dance style you’re interested in by choosing “Dances” from the Music menu. Pick the dance style you’re interested in (in this case Slow Foxtrot). Scroll down to the bottom of the page and you’ll see a tags section.  This is a tag cloud that includes all of the tags (other than dance style tags) that people have associated with songs that someone has also tagged as danceable to Slow Foxtrot.  From there you can explore all the unusual songs and musical styles that someone at some point has attempted to dance the Slow Foxtrot to.

I have to admit, going through some of these, that there are plenty that are a stretch – even with a choreographed set piece.  But still a lot of fun to think about.  If you go down this road and find things that stretch your ability to imagine dancing a particular style to and feel that they’re a mistake rather than a fun (but out there) variation, please feel free to vote them down.  Remember all of this content is crowd-sourced, so you’ve got a vote if you choose to use it.

One thing that I realized as I was writing this is that there isn’t an easy way to go the other direction.  You can use Advanced Search or the main Tag Cloud to list all of the songs associated with any tag.  But that doesn’t give you a direct list of all of the dance styles, you have to scroll through all the songs and figure that out yourself.  Let me know if that would be interesting to you and I’ll increase the priority of that feature. 

And as always I love to hear from you – so please send me feedback about the site or with questions about this post.  I may even feature your question in a future post.

Quick Tip:

If you want to be able to listen to a Spotify Playlist of all of the songs that you find in a search like the one above (or any other search on the site), you can do so by signing up for a premium subscription. I took the liberty of generating a playlist for the example above here in case you want to check it out – while you’re on Spotify, please “like” the music4dance account and any of the other playlists that you enjoy.

Ask music4dance: Why don’t you have info about musical genres like you do about dance styles?

One of the main reasons that I love working on the music4dance project is that I get to hear from dancers and musicians that find the site useful. 

Here is a question that a user recently asked:

I searched on your webpage, I could not find info about genre Pop. Can you show me info about genre Pop, please? Will you update/make info about genre Pop like the genre Bolero (https://www.music4dance.net/dances/bolero)

Which is perfectly fair.  I have certainly biased towards more information about dance than about music, and have kept the music details to those that specifically apply to partner dancing.  The way the site is set up, I have a primary “index” of the various partner dances.  Then I think about refining that search on things like musical genre or tempo.

That said, it is still possible to start from musical genre and go from there.  The full list of genres that are available on music4dance can been seen on the tags page.  The genres are the green tags.  And now that I look at it from this perspective, it would be nice to be able to filter on just genre tags – I’ll see if I can get that feature implemented soon.  You can click on the Pop tag on that page and see a list of all of the pop songs in the music4dance catalog.

What I don’t give you in this context is a description of the “Pop” genre the way I do with a dance style.  While I think that’s an interesting idea, I feel like it’s been covered elsewhere in more detail than I would be able to manage.  For instance, there is a site called rateyourmusic.com that does something pretty close to what I’m doing, but specifically for musical genres rather than dance styles.  Check out their Pop page.  And of course wikipedia is always a great source for information like this.

I’m always happy to answer questions and would like to get enough questions to make this a regular part of the blog.  So please feel free to submit questions via our feedback form or by emailing directly to info@music4dance.net.

Music for Dance Through the Decades

One of the ways that I like to search for music is by era.  At least as far as twentieth century American music goes, this tends to be categorized by decade.

Early on, I tried some experiments around pulling publication date for a song to help with this kind of search.  But the sources I had generally listed release date as whatever the most recent release of the song was, which was often on a compilation album and had nothing to do with when the song was first published.  Even more importantly, when we think of music associated with a particular decade it’s a very loose definition and involves a judgement call about style as much as any technicality around original the release date.

But since I’ve been grabbing information from a bunch of different places and a few of them have been tagging music by decade, I’ve got a decent catalog of songs that have decade tags.  You can take a look by going to the tags page and clicking on any of the decades like the 1970s  or 2000s

If you’re interested in finding songs for a particular dance style from a specific decade, that’s exactly what the Advanced Search functionality is for.  You can go to the form, choose Rumba from the “dance style” chooser and go to the “Other” tags under “Include Tags”  (the brown pencil).  Choose 1980s from the list of tags and click include.  Then click search, and you will get a list of songs from the 80’s that you should be able to dance a Rumba to.  If you’ve got particular tempo needs, for instance, if you’re looking for a slower or faster Rumba, you can always restrict the tempo in the advanced search form as well. If you don’t have a good handle on dance tempi for dances, check out our tempi tool.

Speaking of searching for specific tempos.  One of the features that we’ve recently added is the ability to find songs by tempo even if we haven’t identified a specific partner dance for the song.  As of this writing, we are trying this out as a premium feature.  If you have purchased a premium subscription, you can check the box on the Advanced Search page to include the “Not categorized by dance” bonus content, specify your tempo range and get a larger list of songs that meet those criteria.  (Check out more details on my bonus content blog post.) This should be useful for people that are looking for music of a specific tempo for dances that we haven’t categorized yet or for exercise that isn’t dancing.

As always, I’m interested in your feedback. Let me know how you use this feature, or what would make it better.