Retrieving Similar Tracks from your Library

After importing data into your cyanite database (see Integrating InDepthAnalysis), you can retreive similar tracks for any given track.

Use the similarLibraryTracks field on the the InDepthAnalysisResult type. It will return a connection with similar tracks from your database.

The similarLibraryTracks is an experimental feature, that must be activated by contacting the Cyanite Staff. You can contact use via mail@cyanite.ai.

GraphiQL
Query Variables
Please enter your integration access token

Filtering results

It is also possible to filter the similarLibraryTracks connection to only include tracks with a specific tag. Here you can learn how to add tags to your tracks.

The similarLibraryTracks accepts a tagFilter argument, which can be used for filtering.

Example Operation

query inDepthAnalysis($id: ID!, $filter: [String!]) {
inDepthAnalysis(recordId: $id) {
__typename
... on Error {
message
}
... on InDepthAnalysis {
result {
similarLibraryTracks {
__typename
... on Error {
message
}
... on SimilarLibraryTrackConnection {
pageInfo {
hasNextPage
}
edges {
cursor
node {
distance
sort
inDepthAnalysisId
}
}
}
}
}
}
}
}

Variables

{
"id": "10",
"filter": ["testing"]
}