753 points · by subtech · 3y ago · 427 comments
I just shipped a project I’ve been working on called Maroofy: https://maroofy.com
You can search for any song, and it’ll use the song’s audio to find other similar-sounding music.
Demo: https://twitter.com/subby_tech/status/1621293770779287554
How does it work?
I’ve indexed ~120M+ songs from the iTunes catalog with a custom AI audio model that I built for understanding music.
My model analyzes raw music audio as input and produces embedding vectors as output.
I then store the embedding vectors for all songs into a vector database, and use semantic search to find similar music!
Here are some examples you can try:
Fetish (Selena Gomez feat. Gucci Mane) — https://maroofy.com/songs/1563859943 The Medallion Calls (Pirates of the Caribbean) — https://maroofy.com/songs/1440649752
Hope you like it, and would love to hear any questions/feedback/comments! :D
Take Raga's Dance by Vanessa-Mae, A R Rahman, ... Royal Philharmonic https://maroofy.com/songs/476841571 . I put in this track expecting other fusion songs to pop up, and arguably some do, but much more often it feels like a 20 second section was used to define the original song and it misses the underlying concept. Like it got, in my subjective description, the epic violin in orchestral music, but it completely ignores the fusion between the distict styles of traditional indian singing/instrumentals and western ochestral and also ignores the call response structure between the violin and carnatic players, which is the what I actually care about. Other songs have the vocals but no epic backing. It feels like it's matching multiple samples from the song instead of the whole song.
This feels very promising since it clearly is picking up the styling of the specific songs across different genres and languages. I look forward to seeing where this goes.
I also think it would be interesting if there was a way to specify two different songs to find either only the common things and/or to find what the fusion of those two tracks produces.
Spotify on the other hand seems to want to send me to the same group of artists and tracks I've listened to before, following some Collatz conjecture type algorithm that eventually converges on the same tuned playlist for that genre, no matter what the starting parameters may be.
Era? Artist? Genre? Sound? Tempo?
Personally I spend my time finding similar-era music because I like to hear how sounds evolved.
What makes it different from a big "play me a random song" button then?
> it seems to identify similar tempo and melodic riff
But the model architecture I'm using is kinda outdated as well, gotta iterate on it more to improve it further!
I'm also thinking of letting users upvote/downvote results, which can also help improve quality on the ranking side.
Yes, it's hard to find a song I really really like, but 1-in-10 seem to be something I'd add to my eclectic "thumbs up" playlist. And almost none of them are by any artist that I've heard of before.
This is huge for me. Thanks.
If you need someone to test your model, you will never find one with more eclectic/strange taste than me ;)
I agree with the other commenter - this is huge for me. Please, do whatever you need to do to monetize this so it never goes away. I would love to pay you for this.
Rather than get back anything "acoustically similar" it simply returned a list of other songs on the same album (several of which are far from being acoustically similar).
No drama, you're attempting to cover a lot of ground, but I'm guessing there was no actual fingerprint there for that work and no sense of other songs that sounded similar.
ADDENDUM: Okay, I had to select the song <doh> .. but still "something went wrong" - perhaps hugged to death or not found to process. No matter :-)
If you listen to a music with a real intro, it gives strange results. For example: "Goodbye Blue Sky - Pink Floyd" (https://maroofy.com/songs/1065976153)
See this paper from https://everynoise.com/ : https://everynoise.com/EverynoiseIntro.pdf
IIRC they try to classify music on 17 different points/features. What you see on the web is an attenpt to visualise (and provide a guide to music based on) some of them
Echo nest was great for its time, but if they have kept up, they're not exposing their more modern learned features to users anymore.
I'm not at liberty to say what, sadly, as I work for Spotify.
I think I can say that one of the main challenges is running this analysis for users. It's prohibitively expensive (or was prohibitively expensive) to use this to keep track of and run recommendations for what users are listening for each user.
It can be used on smaller scales, but, well, it's probably NDA :)
Examples:
The Oblio Joes - "Captain of the Moon"
The Bondage Fairies - "Levenus Supremus"
... both chosen so "Just shove a bunch of recent pop-rock at the user" won't work.
I've been using your site for 10 minutes and already added song after song to my library. I'm sure you'll improve the matching algorithm over time. This is a great first step; I'm being exposed to songs I've never come across before.
Good job!
I love that it's working by sound. So often eg Spotify will insist I check out other bands in the same "scene" or from the same era as other artists I like, and in genres as broad as "70s rock" it can be really tiring.
One of the first tracks I tried was Natural Woman by Carole King. I love that it recommended other slow but rhythmic piano vamps with tender vocals by artists singing in other languages, some modern, some old, as well as some sung by men. It even recommended me more Carole King which is I guess shows it's picking up on something constant in her music.
What impressed me was that it recommended quite a lot of numbers in the same key! It was funny clicking through them and the tonal centre being unchanged. It was like they really were different but the same.
It definitely doesn't understand everything about tonality though! I tried some atonal music next, Naama for solo harpsichord by Iannis Xenakis, expecting to get more atonality back. Nope, first result was very firmly tonal: "Suite in E flat major" by Bach for solo harpsichord. It definitely got some essential aspects of the pieces down but completely missed the central concepts underpinning their musicality.
Very promising like I say, can't wait to try more things out!
Probably my favorite song of all time is Close to the Edge, by Yes. Spotify will happily provide me with tons of recommendations for 70s prog - much of which I love too, but some of it leaves me cold.
Maroofy came up with "Good Day" by Leigh Ashford, a song I had never heard of. It's very interesting to compare it to CttE - it's not a very similar song in most respects, but has a similarly prominent bouncy bassline. I like the song, and I don't think I'd have found it via spotify or any of my other usual music discovery sources.
Overall this is very cool, great project.
Where Spotify's Discover Weekly tried to connect you to music other people listen to {B, C, D, ...} because you've listened to a particular song {A} {B...->A}, your model quite literally tried to find other music {A₂} that sounds like what you're looking for {A₁} {A₂->A₁}.
Edit: OK, some of these are actually pretty dope...
What?
r/iamverysmart vibes… someone who has watched one Lex whatever his name was video on the maths of neural networks…
Your project is extremely motivational .. how long did it take you? What did you train on? I do DL for work and just play with things like cifar. This is so inspired.
120M songs would take approximately 1000 years to listen to in normal time and is way beyond normal usage.
I honestly didn't expect this project to get this much traffic -- I really can't express my emotions via text rn lol.
I'm working on an improved AI model that should address a lot of the shortcomings of the current one, along with a lot of other features people have mentioned (playlists, deduplicating results, volume control, better search UX, etc.).
Got a lot of updates coming, time to ship! :D
Other than that, however, this seems neat. I've been trying to listen to new music lately, so this'll definitely come in handy.
There’s no way today’s Apple would allow such a collaboration. They’d just keep the feature and market it as part of Apple Music.
The top three responses were "La Raya" by Los Islenos [2], "Days of Our Love" by Deepa Dremata [3], and "Flying Home" by Michelle Mack [4].
While I didn't hate any of them, and they all featured a piano, I wouldn't say any of them sound like Keith Jarrett, either.
[1] https://music.apple.com/us/album/poinciana/1446740946?i=1446...
[2] https://music.apple.com/us/album/la-raya-feat-ben-murphy/154...
[3] https://music.apple.com/us/album/days-of-our-love/1608767255...
[4] https://music.apple.com/us/album/flying-home/1577716851?i=15...
it doesn't seem to understand anything about the style of the music
seems to find stuff which is sonically similar rather than musically similar, and even then I'm being generous
no useful recommendations
I have a human-powered recommendation service that uses my own tags that I've added to my mp3 library over 25 years. I add instruments (not all, just the ones that stands out, like synth, flute, distortion, violin, piano), vocals (male/female, falsetto, spoken, rap), moods (happy, sad, angry, mellow, dramatic, chillout) and genre (I don't go too deep here, because I hate getting recommendations stuck within some obscure sub-genre). And that's it. I get it to play a random highly rated track with a keyword or two, and then use the tags from the first 10 songs to generate the next. But since, for me, music is a somewhat interactive experience, every 10 songs or so, I'll think of something that I want on the list (maybe reminded of it by another one that just played).
Other things I think might be useful for recommendation is Last.FM histories. Think about it, the are hundreds of thousands of active listeners "scrobbling" their listening history. You could easily parse that and group songs together that have been played within 5 songs of each other as long as they're not by the same artist and the time between the songs is around zero (ie: listened to in order, no pauses). Similarity is higher for songs that were next to each other and score drops.
Follow the troi-bot user with a ListenBrainz account, and we'll generate you a daily playlist: https://listenbrainz.org/user/troi-bot
This is still very much work-in-progress, but we're doing as much as possible out in the open to solicit feedback from people.
For an extreme example of that, see the boorus. Some machine learning people have become interested in those, since they are huge dataset of extensively tagged material ... or maybe it's the booru people who have become more interested in machine learning. Either way, I'm sure they're great, if you're into waifu anime, porn, or waifu anime porn. Both types, country AND western, as they said in the Blues Brothers movie. Any tag remotely subjective (such as "beautiful", God help you) is going to be extremely coloured by the tastes of an extreme fringe.
At least, relying on fanatics to do the work for them, I assume they've got a handle on simple spam on the boorus. Commercial recommender service tagging systems don't have that luxury, and that's probably why they end up eventually removing them.
The later has generated more similar music for me so far. But I welcome every additional project improving the search for music which has been so neglected by most services.
This is so interesting out of the gate that criticisms seem rather foolish. But I’ll just say what I tried.
I tried pop songs, jazz tunes, and even rather strange, unique recordings like “One Step Beyond” by Madness. And every time I got something with similar aspects.
I also like that all cultures were represented.
Would I use this to find music? Maybe? It kind of underscores that we don’t always listen just for a particular sound, but for what that artist represents to us. I may really like a band and absolutely hate a band that’s pretty much a copy of them (maybe done a few decades later) precisely because they are too much a copy.
I don’t think I could build playlists (in this current offering) because the songs are _too_ similar. Maybe if I want an exercise playlist with a particular bpm and vibe?
I think if I were looking for music for TV or advertising this would be an absolute winner. If I feel like I want a song like Daft Punk here, but I can’t afford to license it, I can use your tool to find a lot of tracks with similar vibes that I can afford or that I haven’t heard of.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote
resource at https://cdn.segment.com/v1/projects/F4GFNelOpRsgUJc6iwTuiXr2t6AH5LCY/settings.
(Reason: CORS request did not succeed). Status code: (null).
NetworkError when attempting to fetch resource -- _app-f73fb5ecceb5fc1e.js:1:82295
PS. It looks like your code has some hard dependency on segment.com and/or panelbear.com tracking services. These are blocked by default by uBlock. Turning uBlock off seems to resolve the issue.Edit: Turned off privacy badger and then it started making requests on Firefox.
//Edit: Just read the edit regarding ublock origin. So this website definitely needs a Privacy Policy then.
I am not sure if intentional, but the loading animation on the play buttons feels like it is in sync with when the music starts playing. Makes for a responsive feedback.
EDIT: It's working on my desktop. Above was on mobile Firefox/Chrome.
> but much more often it feels like a 20 second section was used to define the original song and it misses the underlying concept
https://itunes.apple.com/us/lookup?id=1023678453 (https://www.chrisjmendez.com/2017/06/19/working-with-itunes-...)
So probably all that is required is a couple threads downloading and a proxy service with a large pool of IP addresses randomly rotating on every request. Maybe OP also found an undocumented API endpoint somewhere that was not rate limited.
Most other services try to find matches by seeing what other songs the people who like the searched song like, and finding trends amongst those. This site finds songs with similar sounds and rhythms by looking in the vector space. Awesome! Congrats on the finished site!
As others said, it would be a nice option to export it as a playlist for Spotify/Apple/Youtube or a .txt file with "Artist - Track name" in each line. Then you can import the txt file into a playlist converter tool like www.tunemymusic.com and play it in your favorite music service. Mine is discoverquickly.com where you can listen Spotify playlists fast with mouseover, and discover related songs/artists.
An autoplay x seconds of every track, where you can choose the number of seconds, would be a nice addition too. This way you can discover music while doing other things.
All the AI model seems to understand is the opening 5 seconds piano. Listen to the actual song it just opens like that because it's from a play.
I think this will struggle with any song that has build up, it's very promising, though you need a sample of entire songs not the sample Itunes gives you.
I actually think this is largely in part due to how the current model + training process is designed.
I have some ideas for improving things on this front, will give it a try and push an update soon! :)
Feels a little bit like fortune telling, I guess it is, in the sense that I am listening closely to what makes the songs similar, not just listening, but actively trying to find the similarities, so even a couple notes in progression, or drum-beats and I'll say oh, yes, that matches.
Finds very different music, not necessarily what I'd listen to in many cases, but kudos for getting me clicking through a decent pile before going wait, that's a nope, you're grasping AI-type-being.
A comment: for classical music, it would be necessary to see the name of the composer. Currently, it's only the performing artist that's displayed in the interface.
One thing that stuck out for me is that for some genres (not jazz, not classic) the singing really matters. Covet, for example, is instrumental music, no singer at all. I wonder if you'd get better results by separately training on the vocals and the rest. (I think I've read that vocal extraction works these days, though I confess it's a lot more work.)
And a quick suggestion – all my top results when searching for popular songs were songs that were either different versions of it or those that had heavily sampled the original. While the algorithm is spot on, that isn't exactly what I am looking for. Maybe have a filter to exclude results that are too close a match?
For example, any time I hear music I like in a Disney movie and want to hear similar music, all I can get recommendations for is movie soundtracks or whatever the guest artist is known for.
The example that covers up for me on occasion is the soundtrack to The Road To El Dorado, specifically the instrumental tracks (Cheldorado, The Brig, Wonders of the New World); Chosic.com gives me a ton of other soundtracks, mostly orchestral scores, for things like Kung Fu Panda, LOTR, Assassin's Creed, Angry Birds, POTC, etc. While it's nice to be able to tweak the algorithm on chosic to pick quiet movie scores for background music, that's not what I'm looking for. And gnoosic is entirely useless for that.
Seems like you are dodging the question of data access and I am not sure why. Even running an intelligent scraper to download 120M song previews sounds too complex and might take days to months as you have to rotate IPs and not bombard the server all the time. If you manage to do that, kudos. That itself is a great achievement. If not, can you let us know how did you get the data access? You might help other devs who want to try something similar
If not and he found an unauthorized source of retrieving information, this reveals a serious security breach in iTunes API and it’s my valid concern as a paid customer.
120M is a huge number and it’s not even text. It’s media
I can certainly see what the model is getting at each time, and I've not hated any of its suggestions so far, but I've also not stumbled over any new favourites yet. I don't know what kind of features the model is able to learn, I think it might miss one of the things I like most in music, which is not just dynamics, but something that builds tension over time and then blows up. If there are no longer range features like that I'd certainly experiment with them.
I've had a lot of success with Apple's own suggestions (which are admittedly extremely hit or miss), and I've probably grown my collection 1000% in my 30s and 40s after letting music drift away from me in my 20s. There's nothing better than the feeling of a new suggestion and you click through, and there's no artist profile because they're unknown, and they've got like 300 Twitter followers but you love them like a 15 year old. At least once on here I clicked through and found that I was listening to the only song ever recorded by someone, which seemed quite special.
It seems most forms of EDM work great with this setup! One funny thing is for heavily remixed tracks, all the remixes pop up as suggestions. :)
The current model does tend to do well with EDM, but got a new model in the works that should hopefully address a lot of the shortcomings of the current one!
I tried an obscure(?) Japanese rock band "9 Ball" and they were extremely high on the search results. I can't even find the album by using Apple Music.
Searching for 9 Ball in Maroofy shows them in spots 2-6, easily: https://maroofy.com/songs/185487468
When I try to search for the same band in Apple Music, I get this jumbled mess of results: https://music.apple.com/us/search?term=9%20ball
Even searching for a specific song of the band, the correct artist is 5th on the list: https://music.apple.com/us/search?term=9%20ball%2024%20hours and doesn't even link to any of their songs: https://music.apple.com/us/artist/9-ball/28599994
I literally cannot use Apple Music search to get to the page to buy Sound Seeds by 9 Ball, without going through Maroofy first. I had thought Apple removed that album years ago due to some kind of licensing issue. Strangley enough, even though there is an option to "Buy for $7.99" clicking on the button in Apple Music doesn't seem to initate any kind of prompt. Maybe this is old data, but the previews are still available? Who knows. Either way, the search for that information was excellent.
e.g. I'm sometimes seeing several essentially identical tracks at the top of recommendations (also mentioned in a comment by rayshan). You probably want to penalise tracks like that so they're pushed well down the list, i.e. penalise matches by metadata similarity (artist, title, etc).
OTOH I think it should boost results from more popular songs/artists, so the top result is less likely to be an obscure result that happens to sound similar. Some might argue it's a good thing to discover/highlight obscure artists, but for most users, it's more practical to recommend results that are already "proven" to be appealing. More obscure results could still be blended in if highlighting them is seen as a goal of the project.
I'd also add that it's usually a good idea to incorporate this setting into the URL, regardless of the UI, so that a specific order can be bookmarked and shared.
Even for those who are using a music platform, this project still has its unique algorithm that’s likely to surface distinct results. Partly because the developer can do their own innovation and partly because the platforms influence the algorithm in ways that aren’t necessarily aligned with users’ interests. e.g. promoting artists they have favorable relationships with.
The developer can also offer features that Apple et al aren’t offering, perhaps because it would complicate their app too much or isn’t high priority, but makes sense for a specialized tool like this. e.g. fine grained settings to filter and sort results.
Feature request: allow me to auth Spotify and click a button next to each track to add a track to a "Maroofy Recs" playlist
IMO my idea for making something like this really cool is to give the user more explainability (why are these two songs similar? according to which factors?), and then more control over search results (brainstorming here, but stuff like an obscurity slider, importance of beat similarity slider, etc.). You can try to extract explainable factors from your embeddings with something like NMF.
(PS—I like the esoteric results. This is cool, good job.)
I was looking at Islands in the Stream by Dolly Parton and Kenny Rogers and it had some Latin neighbors that make some sense to me from the synths in IitS.
I picked a Three 6 Mafia song I used to listen to in my younger years, the particular song I chose has everything in the soundtrack from high hats, to trumpets, several rappers with varying styles of exerting their voices, and a lot of the resultant songs have either high hats or similar sounding trumpets, or similar sounding drums, and in other cases, something about how the artists rap reminds me slightly of Three 6 Mafia's own style. I don't recognize any of the artists suggested, which is a good thing, it basically did what it was supposed to.
Next I picked a song by Bullet For My Valentine, not all the songs are quite nu-metal but that's because the song I chose isn't typical nu-metal (or whatever genre they were...) unlike some other metal bands they dont spend the whole song screaming, they actually do normal singing, so it picked up what to me sound like old school metal bands like Dio, Iron Maiden and so on... So it picks up on how some parts of the song are, which can get you mixed results, so if you want to find a similar artist down to the musical style, pick the most "metal" song you can find by them. This isn't an issue for me since I like some of those artists too, but I would rather get more bands that are more like Bullet For My Valentine, though it seemingly did catch one or two I had not heard of before.
Also tried another metal band Killswitch Engage with the song "My Curse" and it recommended another Killswitch Engage song titled "For You" which honestly, is weirdly close in style and I never noticed that before. Again this one's another metal band, I just wanted to see how it would do.
Lastly, I tried a Spanish reggaeton song, and I was not disappointed. You really did a hell of a job on this.
My only wish is that Apple would hire you / buy out your efforts because I wish this was part of Apple Music, their "suggested music" is awful, and the genre discovery type of thing doesn't always yield artists I remotely care for, I feel more inclined to listen to some of the suggested songs but it sucks you can only give samples and link to the song directly, if you could generate playlists from the results it would be good, this isn't a you issue, its moreso an Apple limitation.
Some suggestions:
- Have a relevant/irrelevant button, so users can tag useful music and suggestions that were irrelevant. Save that data and use it to make your model better, either in realtime or incrementally.
- Allow some other options for sorting tracks also. Have the most relevant but also the most popular (as in charting) on top. Or maybe sort by the user rankings (how relevant they think a track is).
But of course I tried it with 2 very difficult songs I never could find anything like it: Desert Rose by Sting and Zoolook by Jarre. For Desert Rose it found some similarish things (but of course failed to capture the essence, what makes Desert Rose so unique) but for Zoolook it completely fell apart.
You could provide discovery services to these users in exchange for model updates and feedback. Couple thoughts on this:
- there are modern techniques to update an ML model at many edge locations, then combine the learnings without violating user privacy. One common application is type-ahead models.
- People who have large local music collections tend to care about music, and would take the time to provide high quality labels for you.
- computers used as media servers often have unused compute cycles because music playback is not that intense and most folks don’t have music on 24/7. You could harness these to reduce training costs for your model
- These libraries would give you access to the long tail of the music catalog, including many things that aren’t on iTunes or other streaming services
- This would also put you in a position to run an open music catalog. Your embedding index would be a key differentiator from existing options.
1. Please add match score
2. Group and fold duplicates
3. Add the year with the sort feature - to identify rip offs
But for now, ended up using plain old FAISS.
My only request is to please let me multiselect some or all of the songs the algorithm finds and automatically create a playlist from them on Apple Music. The very first search I tried, for a song that Spotify always creates the same limited mix from, brought up a ton of music I want to check out.
Edit: on that note, it would also be neat to request a combined playlist that mixes together multiple searches. This might help provide feedback for the AI as well about what artists/songs people consider 'similar' to each other.
Say, to figure out what are The Pixies ('measured') musical references (y)
For instance I picked a song with a very strong snare drum line. All the suggestions also had a strong snare drum line but wildly different melodies, genre's, tone, etc.
Got some stuff in the works for an improved model, hopefully will be able to ship it soon!
Love your application! Great job. Found some very surprising similarities to many songs that I tested.
Here's the link: https://maroofy.com/songs/1159778217
Really cool project.
But a lot of this should go away with a better, improved model!
If you ever write a blog post about the process of making this, I'd love to read it.
To me, it's fascinating that not only can you:
-represent things like words as vectors,
-map them in a multi-dimensional space, and
-use that space to find the "closest" neighbors (i.e. the most similar words)…
…but you can actually perform "mathematical" operations on them.
The canonical example is that, if you represent "king", "queen", "man", and "woman" as vectors in your embedding space, then you can ask your model "What is king - man + woman?" and (provided it's trained appropriately) it will return "queen".
I look forward to the day when we can ask something like "What is 'Bohemian Rhapsody' - 'Queen' + 'Velvet Underground'?". Which, if OP's model were to be trained on whole songs instead of previews, would probably be a reality!
Also this song, Shangri-La Is Calling, is bugging out: https://maroofy.com/songs/1632142336
The similar songs for Anaal Nathrakh - Endarkenment [0] have Annal Nathrakh with エンダーケンメント at the top. So a misspelling of the band, and apparently (according to google translate) a Japanese transliteration of the song title (Endākenmento, enderkenment). The song itself is literally the same one, others listed are their other songs, or more Japanese transliterations of their songs. The weird versions can be played, but the linked page does not exist on Apple Music [1]
[0]: https://maroofy.com/songs/1522388463
[1]: https://music.apple.com/album/%E3%82%A8%E3%83%B3%E3%83%80%E3...
It recommended "Buzz Cazon - Sentimental Attitude".
I have trouble putting into words how bad that recommendation was. Seriously, just compare those two pieces, do they have ANYTHING in common besides maybe vaguely the tempo?
This happened to me before, I'd point out that for example Reckoning Song and Counting Stars are the same song, but people would swear they have nothing in common. Or Sail vs Believer, why was the second one even made. Is it that people focus mostly on the manner/vibe of a song, and don't notice what it actually sounds like?
Because I tried another song: "Sam Sweeney - The King of Prussia's March", and the second recommendation was "Polsk Nr. 48" by Rasmus Storm.
The wild thing? Well, first of all, Rasmus Storm isn't strictly speaking the artist. He was the composer. He was a 17th century Danish fiddler, who - rarely for his time and social standing - knew music notation, and wrote down his tunes in a book.
The crazy thing is that in that same book, "Murchy nr. 14" is the tune better known in England as "The King of Prussia's March"!
The odds of that happening by chance has to be absolutely tiny. "Obscure" doesn't even begin to describe it when it comes to Rasmus Storm's notebook.
Still really excited to see updates on this, especially recommendations based on a playlist, since the big 2 (Apple Music, Spotify) haven't figured out recommendation for a all-over-the-place music taste yet.
I wonder if this app has more potential for the record companies and songwriters in terms of finding copyright infringement than it does for the consumer finding new music they like?
Currently, the website seems down though?
EDIT: the results are ... not what I expected. They are similar in some sense, but I wouldn't consider them "musically" similar. It's like each of the recommendations has something similar, whether the drums, the baseline or the voice. But none of them feel similar in the whole.
It's as if similarity is measured with an L2-norm in a high-dimensional embedding space, instead of cosine similarity? Did you experiment with different scoring metrics in semantic search? I would recommend cosine similarity, if this is an embedding space trained with neural networks, whether with a contrastive loss or with a gaussian prior.
This would also explain why people love and cherish songs that would objectively speaking be considered bad.
The feelings that people feel when they listen to the song, the environment that surrounds us and the situations that we're in.
But it is an interesting discovery tool!
Is this AI or machine learning?
I tried Glass Animals - Heat Waves, and after clicking through the recommended songs it's eerie how similar they sound to each other. As I would let the preview play and start the next song I sometimes thought my click didn't register because of just how similar one song would be to the last (https://maroofy.com/songs/1508562516 for those who want to see for themselves).
They had some similarities in the tonal range, but not in style or quality and were sometimes completely different musical genre.
I can see some value in this kind of recommendation system, but this is a lot of work and it should probably be flexible enough to learn from the user, not with a single track but a complete collection.
I also think that automatic playlist management is rarely well done.
In practice I am often disappointed by simple shuffle algorithms, the critical part, again, is that we all have different taste a good software should be able to somewhat match those.
Probe 1: Birdland. First hit was the canonical Weather Report recording. 2nd or third was a popular Man Tran version. Then I saw a Maynard Ferguson track — ok that was a discovery as I haven’t listened to Maynard much for a few years. Didn’t like his version much, but still your software gets full points for discovery.
Probe 2: Minor Swing. First hit was obscure, and it linked off to a bunch of totally unrelated stuff. Django nowhere to be found.
One awesome use-case I can see for this though is finding alternatives to copyrighted songs. Let's say you make a sports video, and you have this fantastic song in your head, but you can't secure permission. It would be cool if this could find something similar to that song. Same style, tempo, etc. Even better if it's royalty free.
Does anything similar exist that lists possible genres for a given track?
I’m a big fan of things like Ishkur’s Guide to Electronic Music and everynoise.com. It would be cool to be able to list out the genre(s) and show similar tracks.
I used Chrome. Cheers!
Edit: also, clicking away from the text input field shouldn't clear the value, in my opinion. The element which displays the results can still be hidden though. It would also be nice to control the volume of the played song.
https://www.plex.tv/blog/super-sonic-get-closer-to-your-musi...
It's true though, there is nothing else quite like Crimson and Clover. I'm pretty sure when I was 5 years old and first heard that song it caused me to trip. Strawberry Fields Forever is like that too, you get high just listening to it. ;-)
Will definitely work to improve the current model!
Still, this is a really cool project and I'm sure there's a lot of potential for building stuff with it.
It ends up recommending piano songs, many Korean ones.
There's some interesting ones like Ghost - Cirice, where it finds other songs with similar riffs. I like Ghost's music in general, just not the Satanic themes, so this is a great tool for finding similar music.
I'm somewhat amused that it doesn't match Under Pressure with Ice Ice Baby.
What would be a good NN architecture for the first step?
We'll likely see a lot of first generation products tackle these low hanging fruit like "I dumped data into AI/ML and here's the output". But the next generation will likely be people who can handle data better - interpret it, clean out bad samples, and so on.
When I was a teenager, I thought no band was as cool as Rainer Maria.
Does this mean I was right?
:D
Nice app! I tried it for another fave https://maroofy.com/songs/1578598760 and will give those a listen.
Curious what sort of metrics are taken into account, and if any supervision is provided.
https://maroofy.com/songs/1485025897
The one of "similar-sounding" is:
"Смели Граничари Димитър Коларов & Стоянка Колева"
or
"The Brave Border Guards"
It's a very Soviet song from such a different world that if you send "Man Man" to it in a time machine, the group will immediately end up in the Gulag.
So, it's all about the "similarity" definition. But it's fun of course.
It kind of matches genre, but has no grasp of musicianship or why I might like a track.
And this is a fundamental problem. See Avery Pennarun's brilliant explanation of tracking users, data analysis, and recommendation systems to understand why:
Also, other comments have suggested that this was trained on 120MM of the audio previews instead of the full songs. That might explain why the recommendations seem a little off for some people.
I tried two of my all-time favorite songs:
The Gaslight Anthem - Handwritten
Thrice - The Artist in the Ambulance
On the first, I would say it was a total swing and miss - the recommendations had similar elements to Handwritten like strummed power chords, but the vibe was completely off. With Thrice, same thing. The first match was a remaster of the song itself by the band, so of course despite being a "different" track it was the closest possible match. The rest of the recommendations had a similar tempo and more heavy metal riffs (as are common in Thrice's songs), but none of them were songs I would voluntarily listen to.
This is a cool idea and I hope OP if you read this you take the criticsm as it's intended - I'm not trashing the implementation or anything. This just feels like it truly is a robot that can't feel the emotion of a song making me recommendations.
The current model I have isn't as good as I want it to be, and I'm working on a newer one with a different training process as well. This should address some of the shortcomings people have mentioned.
I was really nervous of shipping my v1 with the current model, but thought I might as well share what I have so far with the world, in case someone finds it useful lol.
Please, add some filters:
- By language
- By year (between, above, below)
- By fame (so the user can filter out famous musics or unknown ones)
Thank you!
Now, it would be awesome is it could generate playlists I could play directly in Apple Music.
Also if it's not a trade secret can you expand "My model analyzes raw music audio as input and produces embedding vectors as output." What kind of analysis are you doing? What is the criteria for picking recommendations? I always find this area of music analysis intersting.
The first track I searched for was "Hazmat Modine - Bahamut" (https://maroofy.com/songs/253108933), it seems to recommend things with some similar instruments (e.g. brass and sax) but not really similar taste or style.
how Spotify does this is matching songs that have been human added to the same playlists - hence matching tastes.
https://cdn.segment.com/v1/projects/F4GFNelOpRsgUJc6iwTuiXr2...
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
Crazy idea: what if you used a dimensionality reduction like t-SNE instead of learning a vector representation? Would you expect similar results?
I personally found that vector representations performed significantly better than other approaches.
And the results will actually be a lot better once I ship a better model (the current one can definitely be improved upon).
Also, you note "I’ve indexed ~120M+ songs from the iTunes catalog" -- could you share some of the libraries/tools you used and which you did or didnt like?
EDIT: doesn't work for https://maroofy.com/songs/1640070887
Good luck!
There's an API endpoint called audio_features[0] that tells you things about the song (tempo, danceability, acousticness, major/minor key...), so while you can't get full versions of every song, you can approximate how they sound like based on Spotify's audio analysis of them.
So, build a database of audio_features while respecting API limits, find the most similar ones based on about a dozen variables, and you're good to go.
[0] https://developer.spotify.com/documentation/web-api/referenc...
On the main question, I think we'll be waiting for Getty v whoever (Dall-E?) lawsuit to see what courts think.
A useful indicator might be have any major corporation's released AIs trained on public data - because they will be the prime targets for people looking to sue and walk away with lots of money. You can get plugins for Photoshop to do AI imagery, but I don't think Adobe sell any?
I chose 'Let it be me' by the Everly Brothers. 8 or so of the top 10 were foreign songs, and sounded much older even.
https://maroofy.com/songs/1634824510
Server error is:
Unexpected token < in JSON at position 0
Your AI is processing the tempo and beat of the music, its not looking at the lyrics and what the lyrics mean, its not processing any accompanying music videos and its not really factoring in emotion, the mood and events of the day in the locale it comes from.
Another factor, is its not taking into account the limitation instruments had on music before the introduction of the synthesizer and the tech we have available today in order to make music.
There are other websites which also make suggestions and doesn't factor in the above points, so your website is not alone in not really grasping the mood of the song. I'm sure its a limitation of the AI models available to people like yourself today, along with time constraints and other factors including access to data. Just how far do you read into things?
When you see an AI suggest the likes of the Sex Pistol's God Save the Queen with this song, you are then looking at an AI which is intelligent. Quantify the mood of the music, the mood of the country or region during that period of time. Thats a very hard thing to do, and masters of that would be the BBC, simply because as national broadcasters, an extension of the British Military aka MI7, arguably global broadcasters with their world service, you'll realise there are songs which just wont be played when certain events are happening on the ground in regions which would be featured in the news and thus considered inciteful. Its very subtle how manipulation at a national or global level takes place, but it takes place.
However it is also a very difficult song to quantify, as this youtube reaction video sums up nicely. https://youtu.be/5vK1FZO1ybE?t=296
If you know anything about the band, they span many genres, and yet they also their own genre. Truly Prodigious.
I don’t know about that, I tried a number of songs with 3/4 and 6/8 measure, and none of the suggestions were, so it doesn’t seem to pick up on that.
For example, by searching Gold Panda I found Major Dynamic https://majordynamic.bandcamp.com/
One little problem: if you press play and wander off after it stopped playing it can be rather hard to find what you played.
Also, as I improve the model & add user accounts, recommendations should hopefully get much better and more personalized!
One outcome I found interesting is that I gave it Ante Bijou Up but it didn't find any of the original versions of Ante Up based off of it and its first recommendation was some hideous pop song.
However, based off the success of the Cicatraz ESP recommendation I am a massive fan of your work! <3
Unfortunately failed quite spectacularly for the song I selected. I chose "Why Hide" by Mark Ronson and it somehow managed to pick the exact music I tend to dislike.
Apple might as well buy your project for iTunes since they are extremely behind in anything AI.
It’s like feeding Apple Music through Shazam - wonder why Shazam doesn’t do what you’ve done here
I don’t really understand the features your model has learned but I’d start by trying to understand those features.
Music is highly structured and reasonably well organized already. Understanding if your model learned any features that map to metrics used by humans is an important question. If the answer is “no” then I’d wonder if it’s actually achieving anything beyond random number generation.
—-edit—- I went back and tried modern pop. Which I believe it has learned better, although all of the music there sounds so similar maybe that is just a result of the small sample I tried.
I don't think I could've done the UI as clean, though, very nice!
I hope the mainstream platforms start implementing stuff like this soon
I personally think I need to improve the UI a lot, but maybe that's because I've spent way too many hours staring at it lmao.
There is also something to read
like, i'll select couple of the songs and then it gets converted into a spotify playlist.
I need spotify btw, not apple music.
Things should become much more reliable and better soon!
Also, sometimes there's a delay between when a song is available in the text search bar, and when it has been indexed with my AI model (which can also cause this error).
This will also be fixed!
Beautiful Strangers (Kevin Morby) Elephant Woman (Blonde Redhead)
But not sure if the song I input and the songs I get back are similar. Going to try them out further.
What things are they supposed to be similar at? beats? melody?
-> returns christmas music
yeah I think your model missed the mark lol
It needs to go off the bulk of the song, not the first 20 second preview of the song...
I am not sure if thats quite what i am looking for.
Covers of this song would be great! But probably worthwhile to exclude anything with the same name by the same artist.
When i enter something in the search box i see "Loading..." and nothing happens.
I tried both Firefox and Safari.
Rhythm Is Gonna Get You Gloria Estefan
So my approach is intentionally a bit fuzzier than something like Shazam, since apart from exact matches, you also ideally want a continuous representation for music similarity (so you can find songs that are 80-90% similar, for example).
That is hard to do for approaches optimized at exact matches (which usually use something like audio fingerprinting, etc.)
could you make an "auto playlist mode" that blends one song into another seamlessly?
usecase - party where we just want to set and forget one "vibe"
Could you add links to play songs on Spotify?
I'm glad it includes the examples at the bottom so I can see what it does though.
It basically overfits on the similarity, which is kinda neat in a way. It could be extremely useful in scoring video, you want something "like" this song, it gives you lots of things to choose from. Or if I wanted to make a set list on a theme.
We should do a better job of supporting creators here.
You can do that by commenting on the things you liked about the project! But without the meta because that just begets more meta and ends up detracting from the thing being showhn.
It's not because it does the opposite of what you want. Write good comments, downvote or flag the bad ones, email the mods about egregious stuff. Inveighing against the snapshot state of the thread almost always ends up wrong (it's pretty much already wrong about this thread) and generates noise of its own which works directly against your intended goal - people showcasing their work and getting feedback about it.
Google/DeepMind might have an RL-based chatbot equal to or even better than ChatGPT, but OpenAI has achieved the most due to its ability to ship.
Gonna ship a better, improved model soon!
This seems to absolutely NAIL my case of listening, I'm loving this. Thank you!
(Sorry... I'm being a jerk here. This is a cool thing that you built. I only wish iTunes had a greater variety of music.)