app.nzapp
AppsProjectsReposPullsChatIntegrationsGatewayModelsEvalsToolsDatasetsMCPDeploysPricingBlogDocsAssistantsCharactersArtMusic
Sign inStart building
Agent stack
Cloud coding agentAgents SDKIntegrationsBrowser agentMonitors & auto-agentsSchedulersAgent skillsMCP serversDeep research
Models & API
AI GatewayModel catalogModel evalsModel spacesPlaygroundText to imageImage to 3DText to 3DMusic & SFXAudio editorMedia optimizerAI art & libraryChatAPI referenceSchemaBecome a provider
Compute & hosting
DeploysAddonsPostgres hostinggobed vector searchSite hostingAnalyticsCog GPU hostingRL trainingBuilds & CIWorkersTask queuesDomainsGit hosting
Tools
AI toolsDrawDiffusion canvasLive DrawWriteSheetsArtifactsVideo studioNotebooksDatasets
Learn
DocsBlogEval guidesPrompt libraryCLIAlternativesPapersAI charactersArt gallerySecurityConsulting
Company
PricingEnterpriseSettingsBillingStatusInvestorsCreate accountTerms of ServicePrivacy Policy
app.nzapp.nz

AI agent cloud for coding, deploys, model routing, and research. Built for teams shipping software.

Built in New Zealand by App AI NZ.

Social
X / TwitterGitHubYouTube
The app.nz network
GpuBrainPapersReading TimemojojojoNetwrckText-Generator.ioCodex InfinityOpenPathsCuteDSLAI Art GeneratorAIArt-Generator.artSiteSimSimplexGenDictatorFlowWebFiddleRing.nzChatGibidyBitBankExperimentFlowEvangelerHires.nzHow.nzV5 GamesAddicting Word GamesBig Multiplayer ChessWord SmashingreWord GameMultiplication Master
© 2026 App AI NZ Ltd. All rights reserved.All systems normalTermsPrivacy
Blog
July 22, 2026·8 min read·app.nz

ComfyUI lab 2: Build loopable music beds

Separate musical role, tempo, instrumentation, density, and ending behavior instead of prompting by genre alone.

Listen to this article

On-device voice

Uses the voice built into your browser; no article text leaves this page.

Audio narration is not supported by this browser.

Music generation becomes controllable when you describe function before genre. A “lo-fi track” could be foreground listening, a dialogue bed, a menu loop, or a transition sting. Those jobs require different density, dynamics, and endings.

Specify the musical contract

Start with role, duration, tempo, meter, instrumentation, density, arc, vocals, ending. “Dialogue bed, 30 seconds, 92 BPM, 4/4, warm bass and restrained drums, sparse midrange, no vocals, clean loop ending” is an actual brief. Genre can come afterward as a texture hint.

Tempo connects sound to every reactive or editorial graph downstream. At 120 BPM, one beat is 0.5 seconds. At 24 fps that is twelve frames per beat. Declaring both numbers lets animation, cuts, and transitions land deliberately.

Test the seam

Do not trust a “loop” prompt by sight. Duplicate the audio end-to-end and listen across the join. Inspect waveform offset, reverb tails, and rhythmic phase. A short equal-power crossfade can hide small texture discontinuities but cannot fix a chord progression that resolves at the end. Ask for a sustained, cyclic harmonic motion when the asset must loop indefinitely.

Keep stems in mind even when the generator returns stereo. Sparse arrangements are easier to duck under dialogue and easier to drive reactive visuals without every frequency band moving at once.

Run the lab

  • Open this graph in Comfy Studio
  • Download the exact API-format workflow
  • CLI: app comfy download appnz-music-bed

Record the graph JSON, input assets, seed where relevant, model or service version, custom-node commit, and final artifact together. That bundle—not a screenshot—is the reproducible creative unit.

Open-source map

  • Open app.nz audio nodes — MIT hosted-audio bridge
  • AudioCraft — Open research code for MusicGen and AudioGen

Creative Systems Labs: 2 of 12. Previous: Design sound effects from first principles Next: Create clean narration and reusable voices

Build what you just read

Ship agents, models, and apps on one cloud.

Start with free credits, then use the same platform from the web app, CLI, desktop app, or MCP.

Start building freeRead the docs

Keep reading

ComfyUI lab 6: Build style as a system

Separate content, composition, light, palette, and finish; compare prompt, LoRA, IPAdapter, and deterministic transforms.

ComfyUI lab 4: Build a talking character pipeline

Generate a portrait and voice, then drive an open LiveAvatar deployment while keeping consent and identity provenance explicit.

ComfyUI lab 5: Turn sound into reactive motion

Window a waveform, measure local energy or spectrum, map it to frames, and preserve synchronization at a declared FPS.