Repository navigation
Conversation
…and through-the-effect send; tests Co-authored-by: David Querg <Que2039@users.noreply.github.com>
…o, level, mute) in place of the loop chips; placeholder track from the synthesized loops Co-authored-by: David Querg <Que2039@users.noreply.github.com>
Co-authored-by: David Querg <Que2039@users.noreply.github.com>
68 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workstream 2 of the UX plan ("Loops and the multi-layer mini mix"), review issue 4: effects had no before/after.
Effect pages no longer play one loop at a time, always fully through the effect. They now play a whole track of 7 layers in sync. Each layer has a strip: its name mutes it, FX sends it through the effect, S solos it, and a slider sets its level. Switching a single layer through and back is the before/after.
Placeholder. The track ("Groove in A minor") is made of the loops
scripts/samples.mjsalready synthesizes: drums, bass, keys, pad, pluck, lead voice and spoken vocal. They were always parts of one 4-bar, 120 BPM piece. A yellow "Placeholder" badge shows in the player. Real community-track stems replace it later; the options doc covers how to render them per mixer channel from Audiotool projects. The per-layer levels are first guesses and need tuning by ear.Changes
player/layered-track.js(new): the audio engine. All layers start at one shared moment. Every buffer is cut or padded to exactly the track's length, so AAC padding can't make the layers drift. Layers that load late join in phase. Each layer has level, mute, solo and a through/dry send, with 15 ms ramps so nothing clicks. The effect gets one summed input, so it runs only once.setThroughDest(null)plays everything dry (for an effect On/Off switch, or for instruments).player/tracks.js(new): the track definition.player/mini-mix.js(new): the UI, self-contained.main.jscreates it and puts it in the existing strip above the device, in place of the loop chips. The single-loop code is gone.loopslist. The first loop goes through; the rest of the list plus drums, bass and keys play dry beside it; the other layers start muted. "mix" means drums + bass + keys.npm test: 10 unit tests for the engine (Node's built-in runner with a fake audio context). They cover defaults, routing, solo and mute, exact loop length and in-phase joining.site/is regenerated with a pages-only build. Only the cache hashes, the player strings and the player bundle change.Not changed: "Open in Audiotool" and the templates still put each effect's three loops into the Studio project.
Coordination with workstream 1 (control bar below the device). That PR didn't exist when this was built, so the UI is isolated. When both merge, move
loopCtl(Play plusmix.el) into the new bar, and wire the effect On/Off switch tomix.setThroughDest(on ? loopIn : null), or keep bypassing atloopIn. Either works.How it was verified.
npm testpasses. The site build isnode scripts/build.mjs --pages --no-share-imageswithA_PLUGINS_DATE=2026-11-30.native-nxsisn't available here, so I applied PR #2's build fallback temporarily and didn't commit it. With that fallback, unmodifiedmainrebuilds byte for byte, so the regenerated diff contains only this PR's changes. I didn't click through it in a browser.Human checklist
/tape/, a reverb like Quasar/quasar/, Vocoder/vocoder/), press Play track. All audible layers start together and stay in step over several loops.