From 6939dccbf0a4040a32f24539de6c316b646bdba9 Mon Sep 17 00:00:00 2001 From: Reactorcoremeltdown Date: Tue, 17 Nov 2026 11:43:23 +0100 Subject: [PATCH] samplepack-builder: slice one WAV (e.g. a GarageBand export) across pads by beats Tempo (default 120 BPM) and beats per pad (default 4); the file is cut from 0:00 into equal slices filling pads 1..16, silent slices at the end are dropped and slices past 16 reported. Boundaries are rounded per slice, so odd tempos don't drift. Co-Authored-By: Claude Opus 5.5 --- tools/samplepack-builder.html | 99 ++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git a/tools/samplepack-builder.html b/tools/samplepack-builder.html index 6f34d3f..ccc5b98 100644 --- a/tools/samplepack-builder.html +++ b/tools/samplepack-builder.html @@ -20,9 +20,12 @@ .bar{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end; background:var(--surface);border:1px solid var(--grid);padding:12px;margin-bottom:16px} label{display:block;font-size:10px;color:var(--dim);margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px} - input[type=text]{background:var(--bg);border:1px solid var(--grid);color:var(--text); + input[type=text],input[type=number]{background:var(--bg);border:1px solid var(--grid);color:var(--text); font-family:inherit;font-size:14px;padding:8px 10px;width:220px;outline:none} - input[type=text]:focus{border-color:var(--accent)} + input[type=number]{width:96px} + input[type=text]:focus,input[type=number]:focus{border-color:var(--accent)} + .bar .note{font-size:11px;color:var(--dim);align-self:center;max-width:300px;line-height:1.4} + button.over{border-color:var(--play);color:var(--play)} button{font-family:inherit;font-size:12px;background:var(--surface);color:var(--text); border:1px solid var(--grid);padding:9px 14px;cursor:pointer;letter-spacing:.5px} button:hover{border-color:var(--accent);color:var(--accent)} @@ -78,6 +81,21 @@ + +
+
+ + +
+
+ + +
+ +
+ +
+
@@ -88,8 +106,16 @@ Pads holding the same sample as another pad are tinted red (matched by audio content, not file name). Import the downloaded zip via the Sampler's preset toolbar (Import).

+

+ Slicing one file: export the song from GarageBand as one WAV (Share › Export Song to Disk, WAV), + set its tempo and how many beats each pad gets, then drop the file on ✂ Slice one WAV (or click it). + The file is cut at those beat boundaries from its very start (bar 1 must be at 0:00) and the slices fill pads + 1, 2, 3… replacing what's there. Silent slices at the end (the export's tail) are left out; a file longer than + 16 slices keeps the first 16. Turn on ONE-SHOT in the Sampler so each pad plays its whole slice. +

+