API - Track recommendation from seed

charlie's Avatar

charlie

05 Feb, 2023 09:04 PM

Hi

I'm evaluating Beatunes and noticed the API. Is there an API call to pass a track to BeaTunes and for it to respond with recommended tracks that match a certain filter or criteria? Are there any examples of this? Would it be best as a plugin or BeaTlet?

Thanks in advance

  1. Support Staff 1 Posted by hendrik on 09 Feb, 2023 03:08 PM

    hendrik's Avatar

    Hey Charlie,

    the class you should use is SimilarityMatcher. More specifically, findMatchingSongs(). You should probably pass null as syncBPM and false as playMatchesAtSyncTempo. Unfortunately, I cannot point you to a great example right this moment, but please let me know, if you have any concrete questions.

    plugin vs. beaTlet: Creating a Java plugin may be easier, simply because tool support (e.g. IntelliJIDEA) is much better (you can point your IDE to the api docs, code completion etc.). On the other hand, beaTlets can be quicker to write. If you choose the beaTlet route, I recommend to use Groovy as language.

    Sorry for the late answer...

    -hendrik

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac