Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
T
Tidal
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PLN
  • Tidal
  • Repository

Switch branch/tag
  • Tidal
  • tools
  • foundry
  • engine
  • loops.py
Find file
BlameHistoryPermalink
  • PLN (Algolia)'s avatar
    fix(foundry): pocket-zc rotation junction + DC-free loop exports · 1bb7c4fa
    Two refinements from measuring the first rotated re-cuts of the real kits:
    
    1. Junction in the pre-attack pocket. The rotation point was zc-snapped
       ±symmetrically around the downbeat, which could land the loop wrap
       mid-transient (rotated hammer drums read seam 0.50 / click_db −0.03:
       physically continuous, but the junction sat in busy material and a
       re-trigger clipped into the groove). _pocket_zc() searches
       [−25 ms, +2 ms] around the target and picks the zero crossing with
       the smallest local 2 ms RMS — the natural cut point in the quiet dip
       before the hit. Re-trigger catches the full attack; hammer drums
       grade recovered A 0.808 → S 0.988, bass 0.861 → S 0.916.
    
    2. Exports ship DC-free (B2), mirroring vox._finish_clip (4a74213c):
       the demucs stems' ~1e-4 DC bias was flowing into every exported loop
       (all three OLD superfreak kit files flag dc-offset on re-grade
       today). Mean-subtract after mono-sum, before write; shifts the
       zc-snapped edges by ≤1e-4 — inaudible, still effectively zero.
    
    86 tests green.
    PLN (Algolia) authored Jul 11, 2026
    1bb7c4fa
loops.py 33.3 KB
EditWeb IDE
×

Replace loops.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.