The Problem with Manual Trimming
When you need a 30-second clip from a 3-minute track, you face several challenges:- Where to start? Random starting points often land mid-phrase or off-beat
- Where to end? Abrupt endings sound amateurish
- How to align peaks? Getting the big hit to land at the right moment requires manual editing
- Time consuming — Multiply this by 100 videos and it’s a full workday
How It Works
When you request a clip withduration_seconds, Trackyard:
Analyzes the waveform
The algorithm scans the entire track for:
- Musical phrases — Where melodies start and end
- Energy peaks — Drops, hits, crescendos
- Beat alignment — Downbeats and measure boundaries
- Tonal consistency — Segments with clear harmonic structure
Scores possible segments
Every potential clip is scored based on:
- Musical coherence — Does it feel like a complete idea?
- Energy distribution — Is there a natural arc (build → peak → resolve)?
- Start/end quality — Clean entry and exit points
- Hit point placement — Dominant energy peak location (if specified)
Usage Examples
Basic Trimming
Request a 30-second clip:- The algorithm finds the best 30-second segment
- Clean start and end (aligned to musical phrases)
- No manual editing required
Hit Point Alignment
The killer feature: choreograph musical peaks to specific offsets.The Use Case
You’re editing a product video:- The product appears on screen at 12 seconds
- You want the music to hit its peak exactly when the product appears
- Traditional music libraries make you do this manually
How to Use It
- The algorithm finds the dominant energy peak in the track (the biggest drop/hit/crescendo)
- It selects a 22-second segment where that peak lands at the 12-second mark
- You get a clip perfectly timed to your video edit
Real-World Examples
Instagram Reel: Product Reveal
Instagram Reel: Product Reveal
Scenario: 15-second Reel, product appears at 8 secondsRequest:Result: Music peaks right when the product enters the frame. Zero manual editing.
YouTube Ad: Logo Drop
YouTube Ad: Logo Drop
Scenario: 30-second ad, logo reveals at 22 secondsRequest:Result: The musical peak aligns with the logo reveal for maximum impact.
App Trailer: Title Card
App Trailer: Title Card
Scenario: 45-second trailer, title card at 35 secondsRequest:Result: Music builds throughout, then hits the peak right as the title appears.
When to Use Smart Trimming
- Use It
- Skip It
✅ Short-form content — Instagram Reels, TikToks, YouTube Shorts✅ Ads — Pre-roll, mid-roll, social media ads✅ Product demos — SaaS walkthrough videos, unboxing videos✅ Trailers — App, game, or film trailers✅ Batch processing — Auto-scoring 100+ videos with consistent durations
Tips for Best Results
Choose tracks with clear peaks
Choose tracks with clear peaks
Tracks with obvious drops, hits, or crescendos work best for hit point alignment.Good candidates:
- Electronic music with drops
- Orchestral music with crescendos
- Hip hop with bass hits
- Ambient/drone (no clear peaks)
- Minimalist classical (subtle dynamics)
Align hit points to visual moments
Align hit points to visual moments
Place the hit point where you want maximum impact:
- Product reveals
- Logo drops
- Title cards
- Character entrances
- Scene transitions
Test different durations
Test different durations
If a 30-second clip doesn’t sound quite right, try 28 or 32 seconds. Sometimes a slightly different duration gives the algorithm more flexibility to find a better segment.
Preview before downloading
Preview before downloading
Use the
preview_url from search results to audition tracks before spending a credit on /download-track.Limitations
API Parameters
| Parameter | Type | Description |
|---|---|---|
track_id | string | Required. The track ID from search results |
duration_seconds | number | Optional. Clip length in seconds. Omit for full track. |
hit_point_seconds | number | Optional. Offset (in seconds) where the musical peak should land. Requires duration_seconds. |