Lurker News
Hey HN!

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

Comments (427) 231 threads

Earlier comments
freetime21 reply#
I searched for "Poinciana" by Keith Jarrett[1] (one of my all-time favorites).

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...

anentropic#
I had similar experience

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

raffraffraff3 replies#
I'm wondering if anyone has done something similar, but instead of trying to find similarities in the raw audio, they use tags available from sources like Last.FM, Musicbrainz, Discogs etc? And the ultimate answer to that is probably "those sources kinda suck". Discogs is like a trainspotter on the spectrum, fascinated by release IDs. Musicbrainz is kinda similar (each song will have a dozen matches of wildly different quality). Last.FM tags are used-generated which make some of them amazingly useful, and others amazingly detrimental.

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.

nxpnsv1 reply#
Discogs is great, it just doesn't concern it self with how the music sounds...
raffraffraff2 replies#
Which is unfortunate because it has (on a tiny number of releases) instruments and vocal tags. It's just so unreliable. AllMusic is another decent source for tags, but not instruments. It's the age-old problem with ML/AI: data quality. Garbage in, garbage out. If only we could crowd-sourcev listeners and get them to tag music from a list of available moods, instruments etc. Oh wait .. that's exactly the feature that recommendations services have been removing for the last 10 years.
class4behavior1 reply#
rateyourmusic.com is an alternative to allmusic.com while chosic.com focuses on finding music.

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.

Continue this thread — 1 reply

vintermann1 reply#
User tagging isn't a panacea either, because people tag inconsistently, and people who tag a lot are probably not very representative.

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.

Continue this thread — 1 reply

macrolime2 replies#
I've tried with Discogs and found it to work pretty well. Kinda similar to what OP did just the "embedding" vectors was created by the Genre/Styles on Discogs. I didn't have a Vector database though, so it was kinda very slow. On Discogs those tags are per album and not per track. To create a playlist of say 10 songs similar to a song, I'd find the ten closest albums, then search for them on last.fm and pick the most popular track on each to add to the playlist.
alastairp#
A similar embeddings model based on Discogs genre/style data is the Effnet-Discogs model made at the Music Technology Group at Universitat Pompeu Fabra: https://replicate.com/mtg/effnet-discogs
raffraffraff#
Per-album metadata is useless for a lot of stuff that I like. It's even useless for a lot of The Beatles stuff because they tend to have a range of styles on an album and tended to bring in weird instruments on individual tracks.
alastairp#
In fact, ListenBrainz (partner project to MusicBrainz) is doing some stuff similar to what you mention about listening histories. We're using the data to generate similarity based on when songs are listened to each other in "listening sessions" along with other songs.

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.

neilk#
Quite impressive given you’re working with tiny snippets of songs. Kudos.

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.

huhtenberg7 replies#
Search doesn't work in a recent Firefox on Windows - typing anything in the search box shows the "Loading..." dropout below it and then nothing happens. This generates no network activity and the console shows:

    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.
MrGilbert#
Same goes for Vivaldi... I thought it might have received the famous "hn-hug-of-death".

//Edit: Just read the edit regarding ublock origin. So this website definitely needs a Privacy Policy then.

iopq#
Turned off uBlock, still the same issue
addandsubtract#
Weird, I'm using Firefox with uBO and it's working fine.
SketchySeaBeast#
I've tried in both Firefox and Chrome and getting the same issue. I assume settings holds that magic that makes the network requests because right now none are being made.

Edit: Turned off privacy badger and then it started making requests on Firefox.

Toutouxc#
Getting the same error on macOS, both Safari and Firefox.
achairapart#
Same. Get stuck on an infinite loading. Even without uBlock and similar. Too bad sounded cool. :(
efreak#
Stuck on my mobile device. Disabled both ublock and Firefox enhanced tracking restrictions. Tried brave, chrome, Samsung internet, and regular Firefox (usually use Mull). Nothing works.

Load more comments