← Back to directory

Find seamless loop points in background music: loop start/end as sample position...

https://ton.halowerk.com/v1/loop-points

Overview

Find seamless loop points in background music: loop start/end as sample positions and seconds, with waveform and context similarity at the seam. Decodes up to 5 minutes (mono mix at the native rate, at most 48 kHz). A 26-band log-mel sequence (2048-point frames, 512 hop) gives a lag-similarity curve through per-band autocorrelation; its peaks between min_loop_s and max_loop_s are loop-length candidates.

Protocol x402 (POST)
Price $0.0050
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider ton
Source bazaar
Indexed 2026-11-21 08:10:21

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "audio_url": "https://ton.halowerk.com/beispiel/loop-points-audio.flac", "candidates": 1 }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Only loops inside the file are found; fades, reverb tails or one-off events can make a loop audible.", "Positions refer to the decoded mono mix at the reported sample_rate (the native rate up to 48 kHz)." ], "result": { "loops": [ { "context_similarity": 1, "end_s": 7.008, "end_sample": 112128, "lag_similarity": 1, "length_beats": 12, "length_s": 6, "seam_correlation": 1, "seam_jump": 0, "start_s": 1.008, "start_sample": 16128 } ], "method": "mel lag-similarity candidates, 1 s context match, sample-accurate NCC refinement", "sample_rate": 16000, "source": { "analysed_s": 9, "analysis_rate_hz": 16000, "bytes": 134499, "channels": 1, "codec": "flac", "container": "flac", "duration_s": 9, "sample_rate": 16000, "sha256": "53cbd8cdcef0c9a2a687563208c2eab3d7ff50d05a98090ee03adef8d468086d" }, "tempo_bpm": 119.97 }, "service": "loop-points", "status": "success" }, "type": "json" }