{"uid":"cap_aruAHIK3rUEwDkYN1DPpc","slug":"halowerk-music-interval-n-gram-jaccard-similarity-a83dc36c","name":"Halowerk Music Interval N-gram Jaccard Similarity","description":"Converts caller-supplied MIDI-note sequences to adjacent pitch intervals, forms fixed-length interval n-gram sets and reports Jaccard overlap. It does not analyze rhythm, harmony, timbre, recordings, access to prior work or legal substantial similarity, and cannot determine plagiarism.","url":"https://creator.halowerk.com/v1/plagiarism-music","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"interval_ngram_size":{"type":"integer","maximum":8,"minimum":1},"candidate_midi_notes":{"type":"array","items":{"type":"integer","maximum":127,"minimum":0},"maxItems":2000,"minItems":3},"reference_midi_notes":{"type":"array","items":{"type":"integer","maximum":127,"minimum":0},"maxItems":2000,"minItems":3}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N_w1cP0kKWK1wGbz0PuAI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts two MIDI note sequences to pitch-interval n-grams and computes their Jaccard similarity score","exampleAgentPrompt":"Compare these two melodies for pitch interval similarity using trigrams (n-gram size 3): reference MIDI notes [60, 62, 64, 65, 67] and candidate MIDI notes [60, 62, 64, 67, 69], and tell me the Jaccard overlap score.","exampleUseCases":[{"title":"Melody similarity check for composers","prompt":"I wrote a melody and want to know if it accidentally shares too many interval patterns with a reference tune — reference MIDI notes are [60,62,64,65,67,69,71,72] and my candidate notes are [62,64,66,67,69,71,73,74], use an n-gram size of 3."},{"title":"Music copyright analysis tool pre-screening","prompt":"Before sending this to our legal team, can you run a quick interval n-gram comparison between the original track's MIDI notes [55,57,59,60,62,64,65,67] and the allegedly copied melody [55,57,59,62,64,65,67,69] with n-gram size 4 and give me the Jaccard similarity?"},{"title":"Algorithmic music plagiarism triage pipeline","prompt":"I need to triage a batch — start with these two: reference MIDI sequence [48,50,52,53,55,57,59,60] and candidate [50,52,54,55,57,59,61,62], n-gram size of 2, and report the Jaccard overlap so I can decide which pairs need deeper review."}],"resultDescription":"Returns the Jaccard similarity score between the reference and candidate melody's interval n-gram sets — a value between 0 (no shared interval patterns) and 1 (identical interval n-gram sets). Also returns the computed interval n-gram sets derived from both MIDI note sequences.","failureModes":["Fewer than 3 MIDI notes provided for either sequence — minimum input size not met","MIDI note values outside 0–127 range — validation error","n-gram size exceeds 8 or is less than 1 — parameter out of bounds","Either sequence has more than 2000 notes — exceeds maximum item count","Payment not included or insufficient — x402 payment required error","Empty array or missing required field — request body validation failure"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, purely melodic interval-pattern comparison between two MIDI note sequences expressed as pitch integers. It is ideal for pre-screening melodies for interval similarity before deeper legal or harmonic analysis, or for building melody-matching pipelines. Do not use it for rhythm analysis, harmonic analysis, audio recordings, timbre comparison, or legal determinations of plagiarism — it only measures pitch interval n-gram overlap.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:52.490Z","isFirstParty":false}