Open source CapCut alternative.
TypeScript
feat(site): add the Music tab with a generator and sample library
David Le2fcde3727c6b
diff --git a/site/public/cut-stock-music/acoustic-folk-warm.mp3 b/site/public/cut-stock-music/acoustic-folk-warm.mp3new file mode 100644index 00000000..88a0b213Binary files /dev/null and b/site/public/cut-stock-music/acoustic-folk-warm.mp3 differdiff --git a/site/public/cut-stock-music/acoustic-guitar-calm.mp3 b/site/public/cut-stock-music/acoustic-guitar-calm.mp3new file mode 100644index 00000000..e61c447bBinary files /dev/null and b/site/public/cut-stock-music/acoustic-guitar-calm.mp3 differdiff --git a/site/public/cut-stock-music/acoustic-sunny-morning.mp3 b/site/public/cut-stock-music/acoustic-sunny-morning.mp3new file mode 100644index 00000000..fa603de7Binary files /dev/null and b/site/public/cut-stock-music/acoustic-sunny-morning.mp3 differdiff --git a/site/public/cut-stock-music/acoustic-ukulele-happy.mp3 b/site/public/cut-stock-music/acoustic-ukulele-happy.mp3new file mode 100644index 00000000..9a3342b4Binary files /dev/null and b/site/public/cut-stock-music/acoustic-ukulele-happy.mp3 differdiff --git a/site/public/cut-stock-music/ambient-deep-space.mp3 b/site/public/cut-stock-music/ambient-deep-space.mp3new file mode 100644index 00000000..727c9712Binary files /dev/null and b/site/public/cut-stock-music/ambient-deep-space.mp3 differdiff --git a/site/public/cut-stock-music/ambient-ethereal.mp3 b/site/public/cut-stock-music/ambient-ethereal.mp3new file mode 100644index 00000000..1e0f7ca3Binary files /dev/null and b/site/public/cut-stock-music/ambient-ethereal.mp3 differdiff --git a/site/public/cut-stock-music/ambient-soothing.mp3 b/site/public/cut-stock-music/ambient-soothing.mp3new file mode 100644index 00000000..cfd30fb0Binary files /dev/null and b/site/public/cut-stock-music/ambient-soothing.mp3 differdiff --git a/site/public/cut-stock-music/ambient-warm-pad.mp3 b/site/public/cut-stock-music/ambient-warm-pad.mp3new file mode 100644index 00000000..f3440d5bBinary files /dev/null and b/site/public/cut-stock-music/ambient-warm-pad.mp3 differdiff --git a/site/public/cut-stock-music/chill-lounge.mp3 b/site/public/cut-stock-music/chill-lounge.mp3new file mode 100644index 00000000..57921fa4Binary files /dev/null and b/site/public/cut-stock-music/chill-lounge.mp3 differdiff --git a/site/public/cut-stock-music/chill-mellow-keys.mp3 b/site/public/cut-stock-music/chill-mellow-keys.mp3new file mode 100644index 00000000..234ef274Binary files /dev/null and b/site/public/cut-stock-music/chill-mellow-keys.mp3 differdiff --git a/site/public/cut-stock-music/chill-study.mp3 b/site/public/cut-stock-music/chill-study.mp3new file mode 100644index 00000000..87077f42Binary files /dev/null and b/site/public/cut-stock-music/chill-study.mp3 differdiff --git a/site/public/cut-stock-music/chill-sunset.mp3 b/site/public/cut-stock-music/chill-sunset.mp3new file mode 100644index 00000000..e531a24aBinary files /dev/null and b/site/public/cut-stock-music/chill-sunset.mp3 differdiff --git a/site/public/cut-stock-music/cinematic-heroic-brass.mp3 b/site/public/cut-stock-music/cinematic-heroic-brass.mp3new file mode 100644index 00000000..9593ee59Binary files /dev/null and b/site/public/cut-stock-music/cinematic-heroic-brass.mp3 differdiff --git a/site/public/cut-stock-music/cinematic-hopeful-piano.mp3 b/site/public/cut-stock-music/cinematic-hopeful-piano.mp3new file mode 100644index 00000000..f764d942Binary files /dev/null and b/site/public/cut-stock-music/cinematic-hopeful-piano.mp3 differdiff --git a/site/public/cut-stock-music/cinematic-melancholy-cello.mp3 b/site/public/cut-stock-music/cinematic-melancholy-cello.mp3new file mode 100644index 00000000..d91a2978Binary files /dev/null and b/site/public/cut-stock-music/cinematic-melancholy-cello.mp3 differdiff --git a/site/public/cut-stock-music/cinematic-rising-strings.mp3 b/site/public/cut-stock-music/cinematic-rising-strings.mp3new file mode 100644index 00000000..9cd0ff73Binary files /dev/null and b/site/public/cut-stock-music/cinematic-rising-strings.mp3 differdiff --git a/site/public/cut-stock-music/cinematic-tension.mp3 b/site/public/cut-stock-music/cinematic-tension.mp3new file mode 100644index 00000000..47414b58Binary files /dev/null and b/site/public/cut-stock-music/cinematic-tension.mp3 differdiff --git a/site/public/cut-stock-music/corporate-clean.mp3 b/site/public/cut-stock-music/corporate-clean.mp3new file mode 100644index 00000000..dac19e09Binary files /dev/null and b/site/public/cut-stock-music/corporate-clean.mp3 differdiff --git a/site/public/cut-stock-music/corporate-confident.mp3 b/site/public/cut-stock-music/corporate-confident.mp3new file mode 100644index 00000000..55feac54Binary files /dev/null and b/site/public/cut-stock-music/corporate-confident.mp3 differdiff --git a/site/public/cut-stock-music/corporate-inspiring.mp3 b/site/public/cut-stock-music/corporate-inspiring.mp3new file mode 100644index 00000000..6d94f54fBinary files /dev/null and b/site/public/cut-stock-music/corporate-inspiring.mp3 differdiff --git a/site/public/cut-stock-music/corporate-tech.mp3 b/site/public/cut-stock-music/corporate-tech.mp3new file mode 100644index 00000000..04486dcaBinary files /dev/null and b/site/public/cut-stock-music/corporate-tech.mp3 differdiff --git a/site/public/cut-stock-music/electronic-downtempo.mp3 b/site/public/cut-stock-music/electronic-downtempo.mp3new file mode 100644index 00000000..e59a4c4fBinary files /dev/null and b/site/public/cut-stock-music/electronic-downtempo.mp3 differdiff --git a/site/public/cut-stock-music/electronic-driving-synth.mp3 b/site/public/cut-stock-music/electronic-driving-synth.mp3new file mode 100644index 00000000..14224f1fBinary files /dev/null and b/site/public/cut-stock-music/electronic-driving-synth.mp3 differdiff --git a/site/public/cut-stock-music/electronic-glow.mp3 b/site/public/cut-stock-music/electronic-glow.mp3new file mode 100644index 00000000..c6289ba9Binary files /dev/null and b/site/public/cut-stock-music/electronic-glow.mp3 differdiff --git a/site/public/cut-stock-music/electronic-retro-wave.mp3 b/site/public/cut-stock-music/electronic-retro-wave.mp3new file mode 100644index 00000000..fd239e5bBinary files /dev/null and b/site/public/cut-stock-music/electronic-retro-wave.mp3 differdiff --git a/site/public/cut-stock-music/piano-bright-flowing.mp3 b/site/public/cut-stock-music/piano-bright-flowing.mp3new file mode 100644index 00000000..4b782e93Binary files /dev/null and b/site/public/cut-stock-music/piano-bright-flowing.mp3 differdiff --git a/site/public/cut-stock-music/piano-emotional.mp3 b/site/public/cut-stock-music/piano-emotional.mp3new file mode 100644index 00000000..4a2f7a9eBinary files /dev/null and b/site/public/cut-stock-music/piano-emotional.mp3 differdiff --git a/site/public/cut-stock-music/piano-gentle-solo.mp3 b/site/public/cut-stock-music/piano-gentle-solo.mp3new file mode 100644index 00000000..d43ae1a8Binary files /dev/null and b/site/public/cut-stock-music/piano-gentle-solo.mp3 differdiff --git a/site/public/cut-stock-music/piano-quiet-nocturne.mp3 b/site/public/cut-stock-music/piano-quiet-nocturne.mp3new file mode 100644index 00000000..943743d4Binary files /dev/null and b/site/public/cut-stock-music/piano-quiet-nocturne.mp3 differdiff --git a/site/public/cut-stock-music/songs-city-lights.mp3 b/site/public/cut-stock-music/songs-city-lights.mp3new file mode 100644index 00000000..fd765a73Binary files /dev/null and b/site/public/cut-stock-music/songs-city-lights.mp3 differdiff --git a/site/public/cut-stock-music/songs-indie-dream.mp3 b/site/public/cut-stock-music/songs-indie-dream.mp3new file mode 100644index 00000000..719e154aBinary files /dev/null and b/site/public/cut-stock-music/songs-indie-dream.mp3 differdiff --git a/site/public/cut-stock-music/songs-new-morning.mp3 b/site/public/cut-stock-music/songs-new-morning.mp3new file mode 100644index 00000000..59aa3548Binary files /dev/null and b/site/public/cut-stock-music/songs-new-morning.mp3 differdiff --git a/site/public/cut-stock-music/songs-open-road.mp3 b/site/public/cut-stock-music/songs-open-road.mp3new file mode 100644index 00000000..0b3cf885Binary files /dev/null and b/site/public/cut-stock-music/songs-open-road.mp3 differdiff --git a/site/public/cut-stock-music/songs-quiet-evening.mp3 b/site/public/cut-stock-music/songs-quiet-evening.mp3new file mode 100644index 00000000..ff090669Binary files /dev/null and b/site/public/cut-stock-music/songs-quiet-evening.mp3 differdiff --git a/site/public/cut-stock-music/songs-soft-ballad.mp3 b/site/public/cut-stock-music/songs-soft-ballad.mp3new file mode 100644index 00000000..d3b9acd3Binary files /dev/null and b/site/public/cut-stock-music/songs-soft-ballad.mp3 differdiff --git a/site/public/cut-stock-music/songs-summer-night.mp3 b/site/public/cut-stock-music/songs-summer-night.mp3new file mode 100644index 00000000..588b08ceBinary files /dev/null and b/site/public/cut-stock-music/songs-summer-night.mp3 differdiff --git a/site/public/cut-stock-music/songs-sunny-folk.mp3 b/site/public/cut-stock-music/songs-sunny-folk.mp3new file mode 100644index 00000000..680e345aBinary files /dev/null and b/site/public/cut-stock-music/songs-sunny-folk.mp3 differdiff --git a/site/public/cut-stock-music/upbeat-claps-pop.mp3 b/site/public/cut-stock-music/upbeat-claps-pop.mp3new file mode 100644index 00000000..8bcc49bdBinary files /dev/null and b/site/public/cut-stock-music/upbeat-claps-pop.mp3 differdiff --git a/site/public/cut-stock-music/upbeat-funky-bass.mp3 b/site/public/cut-stock-music/upbeat-funky-bass.mp3new file mode 100644index 00000000..6e4fc4aaBinary files /dev/null and b/site/public/cut-stock-music/upbeat-funky-bass.mp3 differdiff --git a/site/public/cut-stock-music/upbeat-motivational.mp3 b/site/public/cut-stock-music/upbeat-motivational.mp3new file mode 100644index 00000000..e0e11dcfBinary files /dev/null and b/site/public/cut-stock-music/upbeat-motivational.mp3 differdiff --git a/site/public/cut-stock-music/upbeat-summer.mp3 b/site/public/cut-stock-music/upbeat-summer.mp3new file mode 100644index 00000000..7caa422eBinary files /dev/null and b/site/public/cut-stock-music/upbeat-summer.mp3 differdiff --git a/site/scripts/generate-stock-music.ts b/site/scripts/generate-stock-music.tsnew file mode 100644index 00000000..bd4c0a77--- /dev/null+++ b/site/scripts/generate-stock-music.ts@@ -0,0 +1,276 @@+// Generates the bundled Cut stock-music catalog with the same Lyria renderer the+// app uses, then writes the typed manifest the editor imports. Idempotent: items+// whose mp3 already exists are skipped, so re-running fills gaps or picks up new+// catalog entries only.+//+// cd site && ./node_modules/.bin/bun scripts/generate-stock-music.ts+//+// Needs GOOGLE_APPLICATION_CREDENTIALS_JSON (bun auto-loads site/.env) and ffmpeg+// on PATH (for duration + waveform peaks). Each bed renders as a ~30s mp3 under+// public/cut-stock-music. Lyria takes no response_format and rejects background+// interactions, so the create call blocks until the clip is ready; it also+// filters prompts strictly, so a blocked prompt is logged and skipped (not+// retried — it would block every time).++import { spawnSync } from "node:child_process";+import { existsSync } from "node:fs";+import { mkdir, writeFile } from "node:fs/promises";+import path from "node:path";+import { GoogleGenAI } from "@google/genai";+import { JWT } from "google-auth-library";++import { geminiMusicModels } from "../src/lib/inference/gemini-models";+import type { StockMusicCategory } from "../src/cut/lib/stock";++interface CatalogItem {+ id: string;+ category: StockMusicCategory;+ prompt: string;+ tags: string[];+}++const MODEL = geminiMusicModels.clip;+const OUT_DIR = path.join(import.meta.dirname, "..", "public", "cut-stock-music");+const MANIFEST = path.join(import.meta.dirname, "..", "src", "cut", "lib", "stockMusicManifest.ts");+// Clips render in ~10-15s each; a small fan-out keeps well under quota.+const CONCURRENCY = 3;+const POLL_MS = 4_000;+const PEAKS = 56;++const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));++// Prompts describe instruments, mood, and tempo in plain words — Lyria blocks+// genre labels and artist-adjacent phrasing, so none of those appear here. The+// Songs are described so the model writes and sings its own lyrics; every other+// entry ends "instrumental background music" so no vocals sneak in.+const CATALOG: CatalogItem[] = [+ // Songs — full tracks with sung vocals (the model writes the lyrics).+ { id: "songs-sunny-folk", category: "Songs", prompt: "A warm cheerful acoustic folk song with guitar and harmonica and gentle sung vocals, about a bright sunny morning walk.", tags: ["song", "vocals", "folk", "acoustic", "guitar", "cheerful"] },+ { id: "songs-indie-dream", category: "Songs", prompt: "An upbeat indie pop song with bright jangly guitars, a catchy chorus, and warm sung vocals about chasing a dream.", tags: ["song", "vocals", "indie", "pop", "upbeat", "guitar"] },+ { id: "songs-soft-ballad", category: "Songs", prompt: "A tender slow ballad with piano, soft strings, and heartfelt sung vocals about missing someone far away.", tags: ["song", "vocals", "ballad", "piano", "emotional", "slow"] },+ { id: "songs-summer-night", category: "Songs", prompt: "An energetic feel-good song with bright synths, handclaps, and confident sung vocals about a fun night out with friends.", tags: ["song", "vocals", "upbeat", "synth", "energetic", "fun"] },+ { id: "songs-open-road", category: "Songs", prompt: "A laid-back country-style song with acoustic guitar, light drums, and warm sung vocals about a long drive down an open road.", tags: ["song", "vocals", "country", "acoustic", "guitar", "laidback"] },+ { id: "songs-city-lights", category: "Songs", prompt: "A smooth mellow song with soft electric piano, a gentle groove, and silky sung vocals about a quiet late-night city walk.", tags: ["song", "vocals", "smooth", "mellow", "keys", "night"] },+ { id: "songs-new-morning", category: "Songs", prompt: "An uplifting anthem with piano, warm layered harmonies, and joyful sung vocals about hope and new beginnings.", tags: ["song", "vocals", "uplifting", "anthem", "piano", "hopeful"] },+ { id: "songs-quiet-evening", category: "Songs", prompt: "A tender acoustic love song with fingerpicked guitar and soft sung vocals about a calm quiet evening together.", tags: ["song", "vocals", "love", "acoustic", "guitar", "tender"] },++ // Cinematic+ { id: "cinematic-rising-strings", category: "Cinematic", prompt: "Sweeping orchestral strings building to a triumphant swell, epic and emotional, instrumental film score.", tags: ["orchestral", "strings", "epic", "emotional", "trailer", "dramatic"] },+ { id: "cinematic-tension", category: "Cinematic", prompt: "Tense low strings and a slow pulsing drum, dark and suspenseful, instrumental film score.", tags: ["tension", "suspense", "dark", "strings", "drums", "dramatic"] },+ { id: "cinematic-hopeful-piano", category: "Cinematic", prompt: "Hopeful piano melody with warm strings underneath, uplifting and inspiring, instrumental film score.", tags: ["piano", "strings", "hopeful", "uplifting", "inspiring", "warm"] },+ { id: "cinematic-heroic-brass", category: "Cinematic", prompt: "Powerful cinematic drums and bold brass, heroic and grand, instrumental trailer music.", tags: ["brass", "drums", "heroic", "epic", "grand", "trailer"] },+ { id: "cinematic-melancholy-cello", category: "Cinematic", prompt: "Slow melancholic cello and soft piano, reflective and emotional, instrumental film score.", tags: ["cello", "piano", "melancholy", "sad", "reflective", "emotional"] },++ // Ambient+ { id: "ambient-warm-pad", category: "Ambient", prompt: "Warm soft synth pads drifting slowly, calm and spacious, instrumental ambient background music.", tags: ["pads", "warm", "calm", "spacious", "drone", "soft"] },+ { id: "ambient-ethereal", category: "Ambient", prompt: "Ethereal shimmering textures and gentle drones, dreamy and weightless, instrumental ambient background music.", tags: ["ethereal", "dreamy", "textures", "drone", "shimmer", "airy"] },+ { id: "ambient-deep-space", category: "Ambient", prompt: "Deep evolving drones and distant tones, vast and meditative, instrumental ambient background music.", tags: ["deep", "drone", "meditative", "vast", "space", "calm"] },+ { id: "ambient-soothing", category: "Ambient", prompt: "Soft gentle pads with a peaceful mood, soothing and quiet, instrumental ambient background music.", tags: ["soothing", "peaceful", "quiet", "soft", "pads", "calm"] },++ // Acoustic+ { id: "acoustic-guitar-calm", category: "Acoustic", prompt: "Gentle fingerpicked acoustic guitar, calm and peaceful, instrumental background music.", tags: ["acoustic", "guitar", "calm", "peaceful", "fingerpicked", "gentle"] },+ { id: "acoustic-folk-warm", category: "Acoustic", prompt: "Warm acoustic guitar and soft strings, cozy and heartfelt, instrumental background music.", tags: ["acoustic", "guitar", "strings", "warm", "cozy", "folk"] },+ { id: "acoustic-sunny-morning", category: "Acoustic", prompt: "Bright acoustic guitar with a light cheerful feel, fresh and sunny, instrumental background music.", tags: ["acoustic", "guitar", "bright", "cheerful", "sunny", "fresh"] },+ { id: "acoustic-ukulele-happy", category: "Acoustic", prompt: "Playful ukulele and light hand percussion, happy and carefree, instrumental background music.", tags: ["ukulele", "percussion", "happy", "carefree", "playful", "light"] },++ // Electronic+ { id: "electronic-driving-synth", category: "Electronic", prompt: "Driving synth arpeggios over a steady beat, energetic and modern, instrumental background music.", tags: ["synth", "arpeggio", "energetic", "modern", "beat", "driving"] },+ { id: "electronic-glow", category: "Electronic", prompt: "Glowing synth melody with a smooth pulse, bright and futuristic, instrumental background music.", tags: ["synth", "bright", "futuristic", "glow", "smooth", "pulse"] },+ { id: "electronic-downtempo", category: "Electronic", prompt: "Smooth downtempo beat with mellow synths, relaxed and cool, instrumental background music.", tags: ["downtempo", "synth", "relaxed", "cool", "beat", "mellow"] },+ { id: "electronic-retro-wave", category: "Electronic", prompt: "Dreamy retro synths with a slow steady groove, nostalgic and atmospheric, instrumental background music.", tags: ["synth", "retro", "nostalgic", "atmospheric", "dreamy", "groove"] },++ // Upbeat+ { id: "upbeat-claps-pop", category: "Upbeat", prompt: "Upbeat groove with claps and bright synths, happy and energetic, instrumental background music.", tags: ["upbeat", "claps", "happy", "energetic", "bright", "synth"] },+ { id: "upbeat-funky-bass", category: "Upbeat", prompt: "Funky bass and rhythmic guitar, groovy and fun, instrumental background music.", tags: ["funk", "bass", "guitar", "groovy", "fun", "rhythmic"] },+ { id: "upbeat-summer", category: "Upbeat", prompt: "Bright summery melody with a bouncy rhythm, cheerful and lively, instrumental background music.", tags: ["summer", "bright", "bouncy", "cheerful", "lively", "happy"] },+ { id: "upbeat-motivational", category: "Upbeat", prompt: "Energetic beat with punchy drums and bright chords, confident and driving, instrumental background music.", tags: ["motivational", "drums", "confident", "driving", "energetic", "bright"] },++ // Chill+ { id: "chill-mellow-keys", category: "Chill", prompt: "Mellow electric piano over a soft laid-back beat, relaxed and smooth, instrumental background music.", tags: ["chill", "electric piano", "relaxed", "smooth", "laidback", "beat"] },+ { id: "chill-lounge", category: "Chill", prompt: "Smooth lounge groove with soft keys and light percussion, easy and calm, instrumental background music.", tags: ["lounge", "keys", "percussion", "easy", "calm", "smooth"] },+ { id: "chill-sunset", category: "Chill", prompt: "Warm mellow chords with a gentle slow groove, dreamy and relaxed, instrumental background music.", tags: ["chill", "warm", "dreamy", "relaxed", "groove", "mellow"] },+ { id: "chill-study", category: "Chill", prompt: "Soft calm keys and a light steady beat, focused and easygoing, instrumental background music.", tags: ["study", "focus", "calm", "keys", "easygoing", "soft"] },++ // Corporate+ { id: "corporate-clean", category: "Corporate", prompt: "Clean bright piano and light strings over a steady beat, professional and positive, instrumental background music.", tags: ["corporate", "piano", "strings", "professional", "positive", "clean"] },+ { id: "corporate-tech", category: "Corporate", prompt: "Modern minimal synths and a subtle beat, sleek and forward-looking, instrumental background music.", tags: ["corporate", "tech", "synth", "sleek", "modern", "minimal"] },+ { id: "corporate-inspiring", category: "Corporate", prompt: "Uplifting piano and warm strings building gently, optimistic and inspiring, instrumental background music.", tags: ["corporate", "piano", "strings", "inspiring", "optimistic", "uplifting"] },+ { id: "corporate-confident", category: "Corporate", prompt: "Confident steady rhythm with bright plucks and soft pads, professional and motivating, instrumental background music.", tags: ["corporate", "confident", "plucks", "pads", "professional", "motivating"] },++ // Piano+ { id: "piano-gentle-solo", category: "Piano", prompt: "Gentle solo piano, tender and reflective, instrumental background music.", tags: ["piano", "solo", "gentle", "tender", "reflective", "calm"] },+ { id: "piano-emotional", category: "Piano", prompt: "Expressive emotional piano with soft dynamics, moving and heartfelt, instrumental background music.", tags: ["piano", "emotional", "expressive", "heartfelt", "moving", "soft"] },+ { id: "piano-bright-flowing", category: "Piano", prompt: "Bright flowing piano melody, hopeful and warm, instrumental background music.", tags: ["piano", "bright", "flowing", "hopeful", "warm", "melodic"] },+ { id: "piano-quiet-nocturne", category: "Piano", prompt: "Slow contemplative piano in a quiet mood, calm and intimate, instrumental background music.", tags: ["piano", "slow", "contemplative", "quiet", "calm", "intimate"] },+];++function makeClient(): { client: GoogleGenAI; authClient: JWT; project: string } {+ const raw = process.env.GOOGLE_APPLICATION_CREDENTIALS_JSON?.trim();+ if (!raw) throw new Error("GOOGLE_APPLICATION_CREDENTIALS_JSON is not set (run from site/ so bun loads .env).");+ const creds = JSON.parse(raw) as { project_id?: string; client_email?: string; private_key?: string; private_key_id?: string };+ if (!creds.project_id || !creds.client_email || !creds.private_key) {+ throw new Error("Service account JSON is missing project_id/client_email/private_key.");+ }+ const authClient = new JWT({+ email: creds.client_email,+ key: creds.private_key,+ keyId: creds.private_key_id,+ scopes: ["https://www.googleapis.com/auth/cloud-platform"],+ });+ const client = new GoogleGenAI({+ vertexai: true,+ location: "global",+ project: creds.project_id,+ googleAuthOptions: { authClient },+ });+ return { client, authClient, project: creds.project_id };+}++class BlockedError extends Error {}++/** Renders one bed and resolves to its mp3 bytes. Lyria rejects background, so+ * create blocks to completion; a content block throws BlockedError (never+ * retried). */+async function generateOne(client: GoogleGenAI, authClient: JWT, item: CatalogItem): Promise<Buffer> {+ let ix;+ try {+ ix = await client.interactions.create({ model: MODEL, input: item.prompt });+ } catch (e) {+ const msg = e instanceof Error ? e.message : String(e);+ if (/block|policy|safety/i.test(msg)) throw new BlockedError(msg);+ throw e;+ }+ const t0 = Date.now();+ while (ix.status === "in_progress" || ix.status === "requires_action") {+ if (Date.now() - t0 > 180_000) throw new Error("music generation timed out");+ await sleep(POLL_MS);+ ix = await client.interactions.get(ix.id);+ }+ if (ix.status !== "completed") {+ const step = [...(ix.steps ?? [])].reverse().find((st) => (st as { error?: unknown }).error);+ const message = (step as { error?: { message?: string } } | undefined)?.error?.message;+ if (message && /block|policy|safety/i.test(message)) throw new BlockedError(message);+ throw new Error(message ?? `music generation ${ix.status}`);+ }+ const audio = ix.output_audio;+ if (audio?.data) return Buffer.from(audio.data, "base64");+ if (audio?.uri) {+ const token = await authClient.getAccessToken();+ const res = await fetch(audio.uri, { headers: { Authorization: `Bearer ${token.token}` } });+ if (!res.ok) throw new Error(`could not download the rendered music (${res.status})`);+ return Buffer.from(await res.arrayBuffer());+ }+ throw new Error("no audio in response");+}++/** The rendered mp3's real length via ffprobe. */+function probeDuration(id: string): number {+ const proc = spawnSync("ffprobe", [+ "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0",+ path.join(OUT_DIR, `${id}.mp3`),+ ]);+ const sec = Number.parseFloat(proc.stdout?.toString().trim() ?? "");+ if (proc.status !== 0 || !Number.isFinite(sec) || sec <= 0) {+ throw new Error(`ffprobe could not read ${id}.mp3's duration`);+ }+ return Math.round(sec * 10) / 10;+}++/** Normalized 0..1 waveform peaks for the browse card: decode to mono PCM with+ * ffmpeg, take the max magnitude per bucket, scale so the loudest bar fills. */+function computePeaks(id: string): number[] {+ const proc = spawnSync(+ "ffmpeg",+ ["-v", "error", "-i", path.join(OUT_DIR, `${id}.mp3`), "-f", "s16le", "-ac", "1", "-ar", "8000", "-"],+ { maxBuffer: 256 * 1024 * 1024 }+ );+ const buf = proc.stdout;+ if (proc.status !== 0 || !buf || buf.length < 2) throw new Error(`ffmpeg could not decode ${id}.mp3`);+ const samples = new Int16Array(buf.buffer, buf.byteOffset, Math.floor(buf.length / 2));+ const bucket = Math.max(1, Math.floor(samples.length / PEAKS));+ const raw: number[] = [];+ for (let i = 0; i < PEAKS; i++) {+ let m = 0;+ for (let j = i * bucket; j < Math.min(samples.length, (i + 1) * bucket); j++) {+ const a = Math.abs(samples[j]);+ if (a > m) m = a;+ }+ raw.push(m / 32768);+ }+ const max = Math.max(...raw, 0.0001);+ return raw.map((p) => Math.round((p / max) * 100) / 100);+}++async function writeManifest(results: Map<string, { duration: number; peaks: number[] }>) {+ const entries = CATALOG.filter((c) => results.has(c.id)).map((c) => ({+ id: c.id,+ category: c.category,+ prompt: c.prompt,+ tags: c.tags,+ file: `/cut-stock-music/${c.id}.mp3`,+ duration: results.get(c.id)!.duration,+ peaks: results.get(c.id)!.peaks,+ }));+ const body = `// Generated by scripts/generate-stock-music.ts — do not edit by hand.+import type { StockMusic } from "./stock";++export const STOCK_MUSIC: StockMusic[] = ${JSON.stringify(entries, null, 2)};+`;+ await writeFile(MANIFEST, body);+}++async function main() {+ const { client, authClient, project } = makeClient();+ await mkdir(OUT_DIR, { recursive: true });++ const results = new Map<string, { duration: number; peaks: number[] }>();+ // Adopt any clip already on disk (a resumed run) so its manifest row survives.+ for (const c of CATALOG) {+ if (existsSync(path.join(OUT_DIR, `${c.id}.mp3`))) {+ try {+ results.set(c.id, { duration: probeDuration(c.id), peaks: computePeaks(c.id) });+ } catch (e) {+ console.error(`✗ reprobe ${c.id}: ${e instanceof Error ? e.message : e}`);+ }+ }+ }+ const todo = CATALOG.filter((c) => !results.has(c.id));+ console.log(`model=${MODEL} project=${project} existing=${results.size} generating=${todo.length}`);++ let failed = 0;+ let blocked = 0;+ const queue = [...todo];+ const worker = async () => {+ for (let item = queue.shift(); item; item = queue.shift()) {+ for (let attempt = 1; ; attempt++) {+ try {+ const mp3 = await generateOne(client, authClient, item);+ await writeFile(path.join(OUT_DIR, `${item.id}.mp3`), mp3);+ results.set(item.id, { duration: probeDuration(item.id), peaks: computePeaks(item.id) });+ await writeManifest(results); // incremental: partial progress is usable+ console.log(`✓ ${item.id} (${results.get(item.id)!.duration}s)`);+ break;+ } catch (e) {+ if (e instanceof BlockedError) {+ blocked++;+ console.error(`⊘ ${item.id} blocked: ${e.message}`);+ break;+ }+ if (attempt >= 2) {+ failed++;+ console.error(`✗ ${item.id}: ${e instanceof Error ? e.message : e}`);+ break;+ }+ console.warn(`retrying ${item.id}…`);+ }+ }+ }+ };+ await Promise.all(Array.from({ length: CONCURRENCY }, worker));++ await writeManifest(results);+ console.log(`manifest: ${results.size}/${CATALOG.length} beds${blocked ? `, ${blocked} blocked` : ""}${failed ? `, ${failed} failed` : ""}`);+ if (failed) process.exitCode = 1;+}++await main();diff --git a/site/src/cut/components/AudioPanel.tsx b/site/src/cut/components/AudioPanel.tsxindex af7f660f..320bfc40 100644--- a/site/src/cut/components/AudioPanel.tsx+++ b/site/src/cut/components/AudioPanel.tsx@@ -14,6 +14,7 @@ import {ChevronDown,Info,Loader2,+ Music,Pause,Play,Plus,@@ -21,6 +22,7 @@ import {} from "lucide-react";import { Button } from "@/components/ui/button";import { DictationControl } from "@/cut/components/MicDictation";+import { PillSelect } from "@/cut/components/PillSelect";import { SectionTitle } from "@/cut/components/SectionTitle";import {DropdownMenu,@@ -36,13 +38,12 @@ import {TooltipTrigger,} from "@/components/ui/tooltip";import { LiveElapsed } from "@/cut/components/Elapsed";-import { clearAssetDrag, setAssetDragData, setLibraryDragData } from "@/cut/lib/assetDrag";-import {- addLibraryAssetToProject,- fetchLibrary,- libraryMediaUrl,- type LibraryAsset,-} from "@/cut/lib/library";+import { clearAssetDrag, setAssetDragData } from "@/cut/lib/assetDrag";+import { MUSIC_VARIANTS, synthesizeMusic, type MusicVariant } from "@/cut/lib/audioGen";+import { draggingRef, hasRefDrag } from "@/cut/lib/assetRef";+import { useMusicGen } from "@/cut/lib/musicGen";+import { STOCK_MUSIC } from "@/cut/lib/stockMusicManifest";+import { stockAssetInDoc } from "@/cut/lib/genvideo/docWriter";import { creditsUrl, signInUrl, useSignedIn } from "@/cut/lib/generate";import { genPulseOverlay, useGenNotify } from "@/cut/lib/genNotify";import { enrichAsset } from "@/cut/lib/media";@@ -50,6 +51,7 @@ import { usePreviewAudio } from "@/cut/lib/previewAudio";import { useEditor } from "@/cut/lib/store";import { formatTime } from "@/cut/lib/time";import { NoCreditsError, synthesizeSpeech } from "@/cut/lib/tts";+import { useLocalPref } from "@/cut/lib/uiState";import { DUCK_DEFAULT } from "@/cut/lib/voiceover";import { useSpeakerVoice, useSpeechLanguage, VoicePicker } from "@/cut/components/VoicePicker";import { GeneratedAssetMenu } from "@/cut/components/GeneratedAssetMenu";@@ -68,15 +70,22 @@ const DIRECTION_PRESETS: { label: string; text: string }[] = [{ label: "Bedtime story", text: "Read slowly and gently, like a bedtime story" },];-/** The Audio tab: AI voiceover on top, then the project's and library's audio- * as playable rows that drop onto the soundtrack at the playhead. Audio files- * come in through the Media tab or a drop onto the timeline. */+/** The Audio tab: Voice generates an AI voiceover, Music an instrumental bed;+ * each lists what it made as playable rows that drop onto the soundtrack at the+ * playhead, over the shared audio library. Audio files come in through the Media+ * tab or a drop onto the timeline. */export function AudioPanel({projectId,importing,+ sub,+ onSub,}: {projectId: string;importing: boolean;+ /** The active sub-tab, lifted to SidePanel so it can lay out the Music tab as+ * two columns (this panel + the sample library) like the Image/Video tabs. */+ sub: "voice" | "music";+ onSub: (v: "voice" | "music") => void;}) {// The app-wide preview player: starting a clip stops the last one, here or// on a chat audio card. Leaving the tab silences only this panel's own@@ -97,24 +106,271 @@ export function AudioPanel({return (<>- <div className="flex h-12 shrink-0 items-center pl-4">- <span className="text-sm font-semibold tracking-tight">Generate audio</span>+ <div className="shrink-0 px-3.5 pt-4 pb-3">+ <AudioSubTabs value={sub} onChange={onSub} /></div><div className="flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto px-3.5 pb-4">- <VoiceGenerator projectId={projectId} />- <ProjectAudio- projectId={projectId}- importing={importing}- onTogglePlay={togglePlay}- playingUrl={playingUrl}- />- <LibraryAudio projectId={projectId} onTogglePlay={togglePlay} playingUrl={playingUrl} />+ {sub === "voice" ? (+ <>+ <VoiceGenerator projectId={projectId} />+ <ProjectAudio+ projectId={projectId}+ importing={importing}+ onTogglePlay={togglePlay}+ playingUrl={playingUrl}+ />+ </>+ ) : (+ <>+ <MusicGenerator projectId={projectId} />+ <ProjectMusic projectId={projectId} onTogglePlay={togglePlay} playingUrl={playingUrl} />+ </>+ )}</div></>);}+/** Voice / Music segmented toggle at the top of the Audio tab. */+function AudioSubTabs({+ value,+ onChange,+}: {+ value: "voice" | "music";+ onChange: (v: "voice" | "music") => void;+}) {+ const tabs: { id: "voice" | "music"; label: string }[] = [+ { id: "voice", label: "Voice" },+ { id: "music", label: "Music" },+ ];+ return (+ <div className="flex rounded-lg bg-muted p-0.5 text-[11.5px]">+ {tabs.map((t) => (+ <button+ key={t.id}+ type="button"+ onClick={() => onChange(t.id)}+ className={cn(+ "flex-1 rounded-md px-3 py-0.5 font-medium transition-colors",+ value === t.id+ ? "bg-background text-foreground shadow-sm"+ : "text-muted-foreground hover:text-foreground"+ )}+ >+ {t.label}+ </button>+ ))}+ </div>+ );+}++/** The Music generator: describe a mood, pick a length and how many takes, and+ * each generated instrumental lands under "Generated music" to drag onto the+ * soundtrack. Mirrors VoiceGenerator's shape — several syntheses can run at+ * once, so the button stays live and a status row counts them. */+function MusicGenerator({ projectId }: { projectId: string }) {+ // Prompt + vocals mode live in a store so a dragged/clicked sample can seed+ // them for remixing (see musicGen.ts). Lyria sings by default; a bed under+ // narration usually wants no vocals, so the toggle defaults to instrumental.+ const prompt = useMusicGen((s) => s.prompt);+ const setPrompt = useMusicGen((s) => s.setPrompt);+ const instrumental = useMusicGen((s) => s.instrumental);+ const setInstrumental = useMusicGen((s) => s.setInstrumental);+ const [variant, setVariant] = useLocalPref<MusicVariant>(+ "cut-music-variant",+ "clip",+ (v) => v === "clip" || v === "song"+ );+ const [takes, setTakes] = useLocalPref<number>(+ "cut-music-takes",+ 1,+ (v) => typeof v === "number" && v >= 1 && v <= 4+ );+ const [pending, setPending] = useState(0);+ // A sample dragged from the library onto the prompt box loads its prompt.+ const [dropActive, setDropActive] = useState(false);+ const droppedSample = (e: React.DragEvent) => {+ if (!hasRefDrag(e)) return undefined;+ const ref = draggingRef();+ if (ref?.scope !== "stock" || ref.kind !== "audio") return undefined;+ return STOCK_MUSIC.find((s) => s.id === ref.id);+ };+ const [error, setError] = useState<{ text: string; credits?: boolean } | null>(null);+ const fail = (e: unknown, fallback: string) =>+ setError(+ e instanceof Error+ ? { text: e.message, credits: e instanceof NoCreditsError }+ : { text: fallback }+ );+ // Music runs on the user's Donkey account, like image/video/voiceover.+ const signedOut = useSignedIn() === false;++ /** Generate `takes` tracks at once; each registers as a generated audio asset+ * that lists below and drops onto the soundtrack. */+ const generate = async () => {+ const text = prompt.trim();+ if (!text) return;+ setError(null);+ const n = takes;+ setPending((p) => p + n);+ await Promise.all(+ Array.from({ length: n }, async () => {+ try {+ const asset = await synthesizeMusic(projectId, text, { variant, instrumental });+ // A render can outlast the open project — the user may switch away+ // while it's in flight. Stock it into the project it was made for, not+ // whatever is on screen now; only the open project touches the store.+ if (useEditor.getState().projectId !== projectId) {+ void stockAssetInDoc(projectId, asset).catch(() => {});+ return;+ }+ // The Audio tab badges its own rail icon when a track finishes while+ // the user stepped away (landed() no-ops while this tab is watched).+ useGenNotify.getState().landed("audio", asset.id);+ useEditor.getState().addAsset(asset);+ void enrichAsset(asset);+ } catch (e) {+ fail(e, "Music generation failed.");+ } finally {+ setPending((p) => p - 1);+ }+ })+ );+ };++ const variantLabel = MUSIC_VARIANTS.find((v) => v.id === variant) ?? MUSIC_VARIANTS[0];++ return (+ <div className="music-generator flex flex-col gap-3.5">+ <div className="flex flex-col gap-2">+ <SectionTitle>Describe the music</SectionTitle>+ <div+ className={cn(+ "relative rounded-lg border border-input focus-within:border-ring",+ dropActive && "border-[#0a84ff] ring-2 ring-[#0a84ff]/30 ring-inset"+ )}+ onDragOver={(e) => {+ if (!droppedSample(e)) return;+ e.preventDefault();+ e.dataTransfer.dropEffect = "copy";+ setDropActive(true);+ }}+ onDragLeave={(e) => {+ if (!e.currentTarget.contains(e.relatedTarget as Node | null)) setDropActive(false);+ }}+ onDrop={(e) => {+ const s = droppedSample(e);+ setDropActive(false);+ if (!s) return;+ e.preventDefault();+ useMusicGen.getState().load({ prompt: s.prompt, instrumental: s.category !== "Songs" });+ }}+ >+ <textarea+ className="music-prompt min-h-[88px] w-full resize-y rounded-lg bg-transparent px-2.5 py-2 pr-9 text-[12.5px] leading-relaxed outline-none"+ placeholder="Warm acoustic guitar and soft piano, calm and hopeful — or describe a song to sing"+ value={prompt}+ onChange={(e) => setPrompt(e.target.value)}+ />+ <DictationControl+ text={prompt}+ onResult={setPrompt}+ buttonClassName="absolute right-1.5 bottom-2 bg-background/70 backdrop-blur-sm"+ />+ </div>+ <div className="flex gap-2">+ <PillSelect+ className="h-7 flex-1"+ title="Length"+ value={variant}+ display={variantLabel.label}+ options={MUSIC_VARIANTS.map((v) => ({ value: v.id, label: `${v.label} · ${v.hint}` }))}+ onChange={setVariant}+ />+ <PillSelect+ className="h-7 flex-1"+ title="Takes"+ value={String(takes)}+ display={`${takes} take${takes > 1 ? "s" : ""}`}+ options={[1, 2, 3, 4].map((n) => ({+ value: String(n),+ label: `${n} take${n > 1 ? "s" : ""}`,+ }))}+ onChange={(v) => setTakes(Number(v))}+ />+ </div>+ <div className="flex rounded-lg bg-muted p-0.5 text-[11.5px]">+ {([["song", "Song"], ["instrumental", "Instrumental"]] as const).map(([val, label]) => {+ const active = (val === "instrumental") === instrumental;+ return (+ <button+ key={val}+ type="button"+ onClick={() => setInstrumental(val === "instrumental")}+ title={val === "song" ? "Let the model write and sing lyrics" : "No vocals — a background bed"}+ className={cn(+ "flex-1 rounded-md px-3 py-0.5 font-medium transition-colors",+ active+ ? "bg-background text-foreground shadow-sm"+ : "text-muted-foreground hover:text-foreground"+ )}+ >+ {label}+ </button>+ );+ })}+ </div>+ <Button+ className="music-generate w-full"+ disabled={!prompt.trim() || signedOut}+ title={!prompt.trim() ? "Describe the music above to generate" : undefined}+ onClick={() => void generate()}+ >+ <Music data-icon="inline-start" />+ Generate music+ </Button>+ {pending > 0 && (+ <div className="flex items-center gap-2 text-[11px] text-muted-foreground">+ <Loader2 className="size-3.5 shrink-0 animate-spin" />+ {pending === 1 ? "Generating…" : `Generating ${pending}…`}+ <LiveElapsed />+ </div>+ )}+ </div>++ {signedOut ? (+ <p className="music-signin text-[11px] leading-relaxed text-muted-foreground">+ Music runs on your Donkey account.{" "}+ <a className="font-medium text-blue-600 hover:underline dark:text-blue-400" href={signInUrl()}>+ Sign in+ </a>{" "}+ to continue.+ </p>+ ) : (+ error && (+ <p className="music-error text-[11px] leading-relaxed text-red-600">+ {error.text}+ {error.credits && (+ <>+ {" "}+ <a+ className="font-medium underline hover:no-underline"+ href={creditsUrl()}+ target="_blank"+ rel="noreferrer"+ >+ Add credits+ </a>+ </>+ )}+ </p>+ )+ )}+ </div>+ );+}+function VoiceGenerator({ projectId }: { projectId: string }) {const voice = useSpeakerVoice();const language = useSpeechLanguage();@@ -651,7 +907,7 @@ function ProjectAudio({);}-function LibraryAudio({+function ProjectMusic({projectId,onTogglePlay,playingUrl,@@ -660,34 +916,51 @@ function LibraryAudio({onTogglePlay: (url: string) => void;playingUrl: string | null;}) {- const [assets, setAssets] = useState<LibraryAsset[]>([]);- useEffect(() => {- let alive = true;- fetchLibrary()- .then((d) => alive && setAssets(d.assets.filter((a) => a.type === "audio")))- .catch(() => {});- return () => {- alive = false;- };- }, []);- if (assets.length === 0) return null;+ const assets = useEditor((s) => s.assets);+ // Generated instrumentals only — voiceovers list under the Voice tab, and any+ // non-null origin keeps them out of the Media panel.+ const audio = assets.filter((a) => a.type === "audio" && a.origin === "generated");+ const pulsing = useGenNotify((s) => s.pulsing.audio);return (<div className="flex flex-col gap-1.5">- <SectionTitle>Library</SectionTitle>+ <SectionTitle>Generated music</SectionTitle>+ {audio.length === 0 && (+ <p className="text-[11px] leading-relaxed text-muted-foreground">+ No generated music yet — describe a mood above and generate one.+ </p>+ )}<div className="flex flex-col gap-1.5">- {assets.map((a) => (+ {audio.map((a) => (<AudioRowkey={a.id}name={a.name}duration={a.duration}- url={libraryMediaUrl(a.fileName)}- playing={playingUrl === libraryMediaUrl(a.fileName)}+ url={a.url}+ peaks={a.peaks}+ playing={playingUrl === a.url}+ pulse={pulsing.includes(a.id)}onTogglePlay={onTogglePlay}- onAdd={() => void addLibraryAssetToProject(projectId, a)}- onDragStart={(e) => setLibraryDragData(e, a)}+ onAdd={() => useEditor.getState().addAudioFromAsset(a.id)}+ menu={+ <GeneratedAssetMenu+ asset={a}+ projectId={projectId}+ triggerClassName={scrimIconButton}+ after={+ <DropdownMenuItem+ variant="destructive"+ onClick={() => useEditor.getState().removeAsset(a.id)}+ >+ <Trash2 /> Delete+ </DropdownMenuItem>+ }+ />+ }+ onDragStart={(e) => setAssetDragData(e, a.id)}/>))}</div></div>);}+diff --git a/site/src/cut/components/SidePanel.tsx b/site/src/cut/components/SidePanel.tsxindex 6354b364..6f01454d 100644--- a/site/src/cut/components/SidePanel.tsx+++ b/site/src/cut/components/SidePanel.tsx@@ -66,7 +66,9 @@ import { TemplateCard } from "./TemplateCard";import { GenerateVideoPanel } from "./GeneratePanel";import { ImageGenPanel } from "./ImageGenPanel";import { StockImagesPanel } from "./StockImagesPanel";+import { SampleLibrary } from "./StockMusicPanel";import { StockVideosPanel } from "./StockVideosPanel";+import { STOCK_MUSIC } from "@/cut/lib/stockMusicManifest";import { STOCK_VIDEOS } from "@/cut/lib/stockVideoManifest";import { LibraryCard } from "./LibraryView";@@ -99,6 +101,13 @@ export function SidePanel({const [tab, setTab] = useLocalPref<Tab>("cut-side-tab", "media", (v) =>TABS.some((t) => t.id === v));+ // The Audio tab's Voice/Music sub-tab lives here so the Music sub-tab can lay+ // out as two columns — the generator plus the sample library — like Image/Video.+ const [audioSub, setAudioSub] = useLocalPref<"voice" | "music">(+ "cut-audio-subtab",+ "voice",+ (v) => v === "voice" || v === "music"+ );// Rail tiles as drop targets: a Library card (asset or template) dropped on// Media joins the project; a Media card dropped on Library saves it there.// Project media (cards and timeline clips) arrives through the ref zones@@ -249,13 +258,35 @@ export function SidePanel({{tab === "image" ? <StockImagesPanel /> : <StockVideosPanel />}</div></>+ ) : tab === "audio" ? (+ // Music is two columns like the generate tabs — the generator on the+ // left, the sample library on the right; Voice is a single column.+ <>+ <div+ className={cn(+ "flex w-[264px] min-h-0 shrink-0 flex-col",+ audioSub === "music" && STOCK_MUSIC.length > 0 && "border-r border-border"+ )}+ >+ <AudioPanel+ projectId={projectId}+ importing={importing}+ sub={audioSub}+ onSub={setAudioSub}+ />+ </div>+ {audioSub === "music" && STOCK_MUSIC.length > 0 && (+ <div className="flex w-[340px] min-h-0 shrink-0 flex-col">+ <SampleLibrary projectId={projectId} />+ </div>+ )}+ </>) : (<div className="flex w-[264px] min-h-0 shrink-0 flex-col">{tab === "media" && (<MediaPanel projectId={projectId} onImport={onImport} importing={importing} />)}{tab === "library" && <LibraryPanel projectId={projectId} />}- {tab === "audio" && <AudioPanel projectId={projectId} importing={importing} />}{tab === "subtitles" && <SubtitlesPanel />}{tab === "publish" && <PublishPanel />}</div>diff --git a/site/src/cut/components/StockMusicPanel.tsx b/site/src/cut/components/StockMusicPanel.tsxnew file mode 100644index 00000000..052d16c6--- /dev/null+++ b/site/src/cut/components/StockMusicPanel.tsx@@ -0,0 +1,188 @@+"use client";++import { useEffect, useRef, useState } from "react";+import { Pause, Play, Plus } from "lucide-react";+import { PeakStrip } from "@/cut/components/AudioPanel";+import { clearRefDrag, refFromStockMusic, setRefDragData } from "@/cut/lib/assetRef";+import { setCardDragImage } from "@/cut/lib/assetDrag";+import { importStockMusic } from "@/cut/lib/media";+import { useMusicGen } from "@/cut/lib/musicGen";+import { usePreviewAudio } from "@/cut/lib/previewAudio";+import { STOCK_MUSIC_CATEGORIES, stockTitle, type StockMusic, type StockMusicCategory } from "@/cut/lib/stock";+import { STOCK_MUSIC } from "@/cut/lib/stockMusicManifest";+import { useEditor } from "@/cut/lib/store";+import { formatTime } from "@/cut/lib/time";+import { cn } from "@/lib/utils";++/** The category header already names the genre, so drop the id's leading+ * category segment: "cinematic-rising-strings" → "Rising Strings". */+const sampleName = (id: string) => stockTitle(id.split("-").slice(1).join("-") || id);++/** Load a sample into the generator to remix — its prompt and vocals mode. */+const remix = (s: StockMusic) =>+ useMusicGen.getState().load({ prompt: s.prompt, instrumental: s.category !== "Songs" });++/** The bundled music sample library — the right column of the Music tab, beside+ * the generator (like the stock browser on the Image/Video tabs). Category chips+ * filter; samples are grouped into per-genre sections of playable cards. Each+ * card previews in the shared player, "+" imports it onto the soundtrack, click+ * loads its prompt into the generator, and it drags onto the timeline or the+ * prompt box. */+export function SampleLibrary({ projectId }: { projectId: string }) {+ // Its own handle on the app-wide preview player, so a sample and a generated+ // row never play at once; leaving the tab silences this column's preview.+ const playingUrl = usePreviewAudio((s) => s.url);+ const ownedUrl = useRef<string | null>(null);+ const togglePlay = (url: string) => {+ ownedUrl.current = url;+ usePreviewAudio.getState().toggle(url);+ };+ useEffect(+ () => () => {+ if (ownedUrl.current) usePreviewAudio.getState().stop(ownedUrl.current);+ },+ []+ );++ const [cat, setCat] = useState<StockMusicCategory | "all">("all");+ const sections = (cat === "all" ? STOCK_MUSIC_CATEGORIES : [cat])+ .map((c) => ({ category: c, items: STOCK_MUSIC.filter((s) => s.category === c) }))+ .filter((s) => s.items.length > 0);++ return (+ <>+ {/* Chips sit at the same top inset as the left column's Voice/Music tabs. */}+ <div className="shrink-0 px-3.5 pt-4 pb-3">+ <div className="flex flex-wrap gap-1.5">+ <Chip active={cat === "all"} onClick={() => setCat("all")}>+ All+ </Chip>+ {STOCK_MUSIC_CATEGORIES.map((c) => (+ <Chip key={c} active={cat === c} onClick={() => setCat(c)}>+ {c}+ </Chip>+ ))}+ </div>+ </div>+ <div className="flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-3.5 pb-4">+ {sections.map(({ category, items }) => (+ <div key={category} className="flex flex-col gap-2">+ <div className="text-[13px] font-semibold tracking-tight">{category}</div>+ <div className="grid grid-cols-2 gap-2">+ {items.map((s) => (+ <SampleCard+ key={s.id}+ sample={s}+ name={sampleName(s.id)}+ playing={playingUrl === s.file}+ onTogglePlay={() => togglePlay(s.file)}+ onAdd={() =>+ void importStockMusic(projectId, { url: s.file, name: sampleName(s.id) })+ .then((a) => useEditor.getState().addAudioFromAsset(a.id))+ .catch(() => {})+ }+ />+ ))}+ </div>+ </div>+ ))}+ </div>+ </>+ );+}++/** One sample: a soft card with a gray waveform, a play circle top-left, a+ * duration pill bottom-right, a hover "+" to add, and the name beneath. Click+ * loads its prompt into the generator; drag it onto the timeline (lands on the+ * soundtrack) or onto the prompt box (loads the prompt to remix). */+function SampleCard({+ sample,+ name,+ playing,+ onTogglePlay,+ onAdd,+}: {+ sample: StockMusic;+ name: string;+ playing: boolean;+ onTogglePlay: () => void;+ onAdd: () => void;+}) {+ return (+ <div+ className="group flex cursor-grab flex-col overflow-hidden rounded-xl border border-border bg-muted/40"+ draggable+ onDragStart={(e) => {+ setRefDragData(e, refFromStockMusic(sample));+ setCardDragImage(e, e.currentTarget);+ }}+ onDragEnd={clearRefDrag}+ onClick={() => remix(sample)}+ title="Click to load its prompt · drag onto the timeline or the prompt box"+ >+ <div className="relative h-14">+ <PeakStrip+ peaks={sample.peaks}+ className="absolute inset-x-2.5 top-1/2 mt-0 h-6 -translate-y-1/2 text-muted-foreground/50"+ />+ <button+ type="button"+ title={playing ? "Pause" : "Play"}+ aria-label={playing ? "Pause" : "Play"}+ onClick={(e) => {+ e.stopPropagation();+ onTogglePlay();+ }}+ className="absolute top-1.5 left-1.5 grid size-6 place-items-center rounded-full bg-background text-foreground shadow-sm ring-1 ring-border transition-transform hover:scale-105"+ >+ {playing ? <Pause className="size-3" /> : <Play className="size-3 translate-x-px" />}+ </button>+ <span className="absolute right-1.5 bottom-1.5 rounded-md border border-border bg-background px-1 py-0.5 font-mono text-[9px] text-foreground tabular-nums">+ {formatTime(sample.duration)}+ </span>+ <button+ type="button"+ title="Add at the playhead"+ aria-label="Add at the playhead"+ onClick={(e) => {+ e.stopPropagation();+ onAdd();+ }}+ className="absolute top-1.5 right-1.5 grid size-6 place-items-center rounded-full bg-foreground text-background opacity-0 shadow-sm transition-opacity group-hover:opacity-100 hover:brightness-110"+ >+ <Plus className="size-3" />+ </button>+ </div>+ <div className="border-t border-border px-2.5 py-1.5">+ <span className="block truncate text-[11.5px] font-medium" title={name}>+ {name}+ </span>+ </div>+ </div>+ );+}++function Chip({+ active,+ onClick,+ children,+}: {+ active: boolean;+ onClick: () => void;+ children: React.ReactNode;+}) {+ return (+ <button+ type="button"+ onClick={onClick}+ className={cn(+ "rounded-full border px-2.5 py-0.5 text-[11px] font-medium transition-colors",+ active+ ? "border-transparent bg-foreground text-background"+ : "border-input text-muted-foreground hover:text-foreground"+ )}+ >+ {children}+ </button>+ );+}diff --git a/site/src/cut/components/Timeline.tsx b/site/src/cut/components/Timeline.tsxindex 70a0afa9..7ad0da47 100644--- a/site/src/cut/components/Timeline.tsx+++ b/site/src/cut/components/Timeline.tsx@@ -31,7 +31,7 @@ import {} from "@/cut/lib/library";import { isDragActive, startDrag, subscribeDragActive } from "@/cut/lib/drag";import { CLIP_GAP, startLaneMove, startLaneTrim, type LaneDrag } from "@/cut/lib/laneTracks";-import { ensurePeaks, importImage, importStockVideo } from "@/cut/lib/media";+import { ensurePeaks, importImage, importStockMusic, importStockVideo } from "@/cut/lib/media";import { baseClips, clipLen, clipSpeed, getClipSpans, nextFreeStart, overlayLayers, projectDuration, TIMELINE_H_MAX, useEditor } from "@/cut/lib/store";import type { VideoTrackPlacement } from "@/cut/lib/store";import { subtitleLaneCount } from "@/cut/lib/subtitles";@@ -134,6 +134,14 @@ function draggingStockVideo(e: React.DragEvent): AssetRef | null {return ref?.scope === "stock" && ref.kind === "video" ? ref : null;}+/** The stock-music ref being dragged (a sample-library card), null otherwise. On+ * the soundtrack it imports into the project and lands as an audio clip. */+function draggingStockMusic(e: React.DragEvent): AssetRef | null {+ if (!hasRefDrag(e)) return null;+ const ref = draggingRef();+ return ref?.scope === "stock" && ref.kind === "audio" ? ref : null;+}+export function Timeline() {const clips = useEditor((s) => s.clips);const audioClips = useEditor((s) => s.audioClips);@@ -644,7 +652,8 @@ export function Timeline() {const isLib = hasLibraryDrag(e);const still = draggingStill(e);const stockVideo = draggingStockVideo(e);- if (!hasAssetDrag(e) && !isLib && !still && !stockVideo) return;+ const stockMusic = draggingStockMusic(e);+ if (!hasAssetDrag(e) && !isLib && !still && !stockVideo && !stockMusic) return;e.preventDefault();e.dataTransfer.dropEffect = "copy";// Preview where a video would land; audio drops free-form. Library and@@ -655,6 +664,9 @@ export function Timeline() {const lib = draggingLibrary();type = lib?.type;duration = lib?.duration ?? 0;+ } else if (stockMusic) {+ type = "audio";+ duration = stockMusic.duration ?? 0;} else if (stockVideo) {type = "video";duration = stockVideo.duration ?? 0;@@ -726,6 +738,7 @@ export function Timeline() {const libId = draggedLibraryId(e);const still = draggingStill(e);const stockVideo = draggingStockVideo(e);+ const stockMusic = draggingStockMusic(e);const tpl = draggingTemplate();const projectId = useEditor.getState().projectId;clearAssetDrag();@@ -751,6 +764,16 @@ export function Timeline() {return;}+ // A stock-music sample imports as an audio asset and lands on the+ // hovered soundtrack lane.+ if (stockMusic && projectId) {+ e.preventDefault();+ void importStockMusic(projectId, { url: stockMusic.url, name: stockMusic.name })+ .then((asset) => placeAssetAt(asset.id, "audio", t, audioRow))+ .catch(() => {});+ return;+ }+// A stock clip imports as footage, an image ref as a still, then each// lands in the resolved video slot.if (stockVideo && projectId) {diff --git a/site/src/cut/lib/assetRef.ts b/site/src/cut/lib/assetRef.tsindex 33d99027..c4adcfb5 100644--- a/site/src/cut/lib/assetRef.ts+++ b/site/src/cut/lib/assetRef.ts@@ -3,7 +3,7 @@import { useCallback, useEffect, useMemo, useRef, useState } from "react";import type React from "react";import { fetchLibrary, libraryMediaUrl, type LibraryAsset } from "./library";-import type { StockImage, StockVideo } from "./stock";+import { stockTitle, type StockImage, type StockMusic, type StockVideo } from "./stock";import { STOCK_IMAGES } from "./stockManifest";import { STOCK_VIDEOS } from "./stockVideoManifest";import { getClipSpans, useEditor } from "./store";@@ -83,6 +83,15 @@ export const refFromStockVideo = (v: StockVideo): AssetRef => ({duration: v.duration,});+export const refFromStockMusic = (m: StockMusic): AssetRef => ({+ scope: "stock",+ id: m.id,+ name: stockTitle(m.id),+ kind: "audio",+ url: m.file,+ duration: m.duration,+});+/** A ref for a text file dropped from the desktop: the contents ride inline* as a data: URL. The ref persists into the thread's saved messages, and a* data: URL still reads after a reload — an object URL would die with thediff --git a/site/src/cut/lib/audioGen.ts b/site/src/cut/lib/audioGen.tsnew file mode 100644index 00000000..606236fb--- /dev/null+++ b/site/src/cut/lib/audioGen.ts@@ -0,0 +1,116 @@+"use client";++import { bytesFromBase64 } from "./bytes";+import { hostedPost } from "./hosted";+import { importFileToProject } from "./media";+import { NoCreditsError } from "./tts";+import type { MediaAsset } from "./types";++// Client side of AI music generation: Gemini/Lyria on Donkey's hosted inference+// routes, with the user's Donkey sign-in and credits (same-origin on the cut+// hosts, like image/video/voiceover generation). The prompt describes the mood+// and genre; the model renders a track — a full song with sung vocals, or an+// instrumental bed when asked — that comes back inline and saves into the+// project through the local engine like any other media file.++export type MusicVariant = "clip" | "song";++/** The length choices the Music generator offers — the clip model renders a+ * short bed, the pro model a full-length track. */+export const MUSIC_VARIANTS: { id: MusicVariant; label: string; hint: string }[] = [+ { id: "clip", label: "Clip", hint: "~30 sec" },+ { id: "song", label: "Full track", hint: "~2 min" },+];++async function readError(res: Response, fallback: string): Promise<string> {+ if (res.status === 401) return "Sign in to Donkey to generate music.";+ const body = (await res.json().catch(() => null)) as {+ error?: unknown;+ message?: unknown;+ details?: { message?: unknown };+ } | null;+ const message = [body?.message, body?.error].find(+ (v): v is string => typeof v === "string" && v.length > 0+ );+ if (res.status === 402) return message ?? "Not enough Donkey credits — top up to continue.";+ // The provider's own error (`details.message`) names the actual rejection (a+ // filtered prompt, a timeout); the top-level message is generic.+ const detail = body?.details?.message;+ const full =+ message && typeof detail === "string" && detail && detail !== message+ ? `${message} (${detail})`+ : message;+ return full ?? fallback;+}++function slug(name: string) {+ return (+ name+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, "-")+ .replace(/^-+|-+$/g, "")+ .slice(0, 40) || "ai-music"+ );+}++/** Display name for the track: the prompt, tidied and capped. */+function musicName(prompt: string) {+ const line = prompt.trim().replace(/\s+/g, " ");+ return line.length > 60 ? `${line.slice(0, 57)}…` : line;+}++/** Generate one music track and save it into the project as a generated audio+ * asset. By default the model may sing (a full song); pass `instrumental` for a+ * vocal-free bed. Returns the asset (unplaced) — callers register it in the store+ * and decide placement, exactly like synthesizeSpeech. */+export async function synthesizeMusic(+ projectId: string,+ prompt: string,+ opts?: { variant?: MusicVariant; instrumental?: boolean; name?: string }+): Promise<MediaAsset> {+ // Lyria sings by default; the explicit clause is how you get an instrumental+ // bed (the model has no separate flag — it reads it from the prompt).+ const sent = opts?.instrumental ? `${prompt.trim()} Instrumental only, no vocals.` : prompt;+ const res = await hostedPost("/api/inference/assets", {+ kind: "music",+ prompt: sent,+ // Route to Lyria; the neutral `variant` picks the length (the model ids stay+ // server-side). Omit for the default clip.+ provider: "gemini-music",+ ...(opts?.variant === "song" ? { parameters: { variant: "song" } } : {}),+ });+ if (!res.ok) {+ const message = await readError(res, "Music generation failed.");+ throw res.status === 402 ? new NoCreditsError(message) : new Error(message);+ }+ const gen = (await res.json()) as {+ outputs?: { dataBase64?: string; url?: string; contentType?: string; filename?: string }[];+ };+ const out = gen.outputs?.find((o) => o.dataBase64) ?? gen.outputs?.find((o) => o.url);++ const label = opts?.name?.trim() || musicName(prompt);+ const fileName = `ai-${slug(label)}.mp3`;+ let file: File;+ if (out?.dataBase64) {+ file = new File([bytesFromBase64(out.dataBase64)], out.filename ?? fileName, {+ type: out.contentType ?? "audio/mpeg",+ });+ } else if (out?.url) {+ const dl = await fetch(out.url);+ if (!dl.ok) throw new Error("Could not download the generated music.");+ file = new File([await dl.arrayBuffer()], fileName, {+ type: out.contentType ?? "audio/mpeg",+ });+ } else {+ throw new Error("The provider returned no music.");+ }++ const asset = await importFileToProject(projectId, file);+ if (!asset) throw new Error("Could not save the generated music into the project.");+ asset.name = label;+ // Generated (not a user import): stays out of the Media panel and lists in the+ // Audio tab's Music generator. A chat-made track is re-tagged to its thread by+ // the caller (tagChatAsset), like every other generated asset.+ asset.origin = "generated";+ return asset;+}diff --git a/site/src/cut/lib/media.ts b/site/src/cut/lib/media.tsindex 534397ba..3e48d431 100644--- a/site/src/cut/lib/media.ts+++ b/site/src/cut/lib/media.ts@@ -142,7 +142,16 @@ export async function importFileToProject(asset.width = dims.width;asset.height = dims.height;} else {- asset.duration = await loadAudioDuration(url);+ // Decode for a sample-exact duration (HTMLAudioElement overestimates MP3s,+ // leaving a placed clip running past its real audio) and reuse the same+ // decode for the waveform, so enrichAsset has nothing left to do.+ const audio = await decodeAudio(url);+ if (audio && audio.duration > 0) {+ asset.duration = audio.duration;+ asset.peaks = peaksFromChannel(audio.getChannelData(0));+ } else {+ asset.duration = await loadAudioDuration(url);+ }}return asset;}@@ -208,6 +217,28 @@ export async function importStockVideo(return asset;}+/** Store a bundled stock-music bed in the project's media as a regular audio+ * asset and register it, without placing it on the timeline — callers choose+ * where it lands (the soundtrack). Tagged "stock" so it stays out of Media. */+export async function importStockMusic(+ projectId: string,+ music: { url: string; name: string }+): Promise<MediaAsset> {+ const dl = await fetch(music.url);+ if (!dl.ok) throw new Error("Could not read the music.");+ const blob = await dl.blob();+ const file = new File([blob], music.url.split("/").pop() || "music.mp3", {+ type: blob.type || "audio/mpeg",+ });+ const asset = await importFileToProject(projectId, file);+ if (!asset) throw new Error("Could not add the music.");+ asset.name = music.name;+ asset.origin = "stock";+ useEditor.getState().addAsset(asset);+ void enrichAsset(asset);+ return asset;+}+/** Download a media URL (TikTok, YouTube, a tweet, …) into the project* through the engine's bundled downloader and register what came back — one* asset for a video, one per photo for a photo tweet — without placing@@ -466,28 +497,45 @@ function seekTo(v: HTMLVideoElement, t: number): Promise<void> {const PEAK_BUCKETS = 1600;-async function makePeaks(url: string): Promise<number[]> {- const buf = await (await fetch(url)).arrayBuffer();- const AC: typeof AudioContext =- window.AudioContext ?? (window as unknown as { webkitAudioContext: typeof AudioContext }).webkitAudioContext;- const ctx = new AC();+/** Decode an audio URL to a buffer, or null on any failure (a bad/undecodable+ * file). The decoded buffer's duration is sample-exact — the source of truth for+ * an audio clip's length, unlike HTMLAudioElement.duration, which overestimates+ * MP3s and would leave a placed clip running past its real audio. */+async function decodeAudio(url: string): Promise<AudioBuffer | null> {try {- const audio = await ctx.decodeAudioData(buf);- const data = audio.getChannelData(0);- const bucketSize = Math.max(1, Math.floor(data.length / PEAK_BUCKETS));- const peaks: number[] = [];- for (let i = 0; i < PEAK_BUCKETS; i++) {- let max = 0;- const from = i * bucketSize;- const to = Math.min(data.length, from + bucketSize);- for (let j = from; j < to; j += 8) {- const v = Math.abs(data[j]);- if (v > max) max = v;- }- peaks.push(max);+ const buf = await (await fetch(url)).arrayBuffer();+ const AC: typeof AudioContext =+ window.AudioContext ??+ (window as unknown as { webkitAudioContext: typeof AudioContext }).webkitAudioContext;+ const ctx = new AC();+ try {+ return await ctx.decodeAudioData(buf);+ } finally {+ void ctx.close();+ }+ } catch {+ return null;+ }+}++/** Normalized 0..1 waveform peaks from a decoded buffer's first channel. */+function peaksFromChannel(data: Float32Array): number[] {+ const bucketSize = Math.max(1, Math.floor(data.length / PEAK_BUCKETS));+ const peaks: number[] = [];+ for (let i = 0; i < PEAK_BUCKETS; i++) {+ let max = 0;+ const from = i * bucketSize;+ const to = Math.min(data.length, from + bucketSize);+ for (let j = from; j < to; j += 8) {+ const v = Math.abs(data[j]);+ if (v > max) max = v;}- return peaks;- } finally {- void ctx.close();+ peaks.push(max);}+ return peaks;+}++async function makePeaks(url: string): Promise<number[]> {+ const audio = await decodeAudio(url);+ return audio ? peaksFromChannel(audio.getChannelData(0)) : [];}diff --git a/site/src/cut/lib/musicGen.ts b/site/src/cut/lib/musicGen.tsnew file mode 100644index 00000000..7af39de0--- /dev/null+++ b/site/src/cut/lib/musicGen.ts@@ -0,0 +1,26 @@+"use client";++import { create } from "zustand";++// The Music generator's prompt and vocals toggle live in a store (not local+// component state) so the sample library beside it can load a sample's prompt+// in for remixing — the same way the stock browsers seed the image/video panels.++interface MusicGenState {+ prompt: string;+ /** Whether to render a vocal-free bed (true) or let the model sing (false). */+ instrumental: boolean;+ setPrompt: (prompt: string) => void;+ setInstrumental: (instrumental: boolean) => void;+ /** Seed the generator from a sample: its prompt, and whether it was+ * instrumental so the toggle matches, ready for the user to tweak and render. */+ load: (opts: { prompt: string; instrumental: boolean }) => void;+}++export const useMusicGen = create<MusicGenState>((set) => ({+ prompt: "",+ instrumental: true,+ setPrompt: (prompt) => set({ prompt }),+ setInstrumental: (instrumental) => set({ instrumental }),+ load: ({ prompt, instrumental }) => set({ prompt, instrumental }),+}));diff --git a/site/src/cut/lib/stock.ts b/site/src/cut/lib/stock.tsindex 542a8392..e63eee55 100644--- a/site/src/cut/lib/stock.ts+++ b/site/src/cut/lib/stock.ts@@ -46,6 +46,38 @@ export interface StockVideo {duration: number;}+/** Pregenerated background-music beds (Gemini/Lyria), bundled under+ * public/cut-stock-music with the manifest in stockMusicManifest.ts. Regenerate+ * or extend the set with `bun scripts/generate-stock-music.ts`. */+export interface StockMusic {+ id: string;+ category: StockMusicCategory;+ /** The generation prompt, saved verbatim — the editable starting point. */+ prompt: string;+ /** Mood/genre/instrument keywords the search box matches beyond the prompt. */+ tags: string[];+ /** Site-relative mp3 URL (under /cut-stock-music/) — preview and timeline. */+ file: string;+ /** Rendered length in seconds. */+ duration: number;+ /** Normalized 0..1 waveform peaks for the card, precomputed at generation. */+ peaks: number[];+}++export const STOCK_MUSIC_CATEGORIES = [+ "Songs",+ "Cinematic",+ "Ambient",+ "Acoustic",+ "Electronic",+ "Upbeat",+ "Chill",+ "Corporate",+ "Piano",+] as const;++export type StockMusicCategory = (typeof STOCK_MUSIC_CATEGORIES)[number];+export const STOCK_CATEGORIES = ["Business","Nature",diff --git a/site/src/cut/lib/stockMusicManifest.ts b/site/src/cut/lib/stockMusicManifest.tsnew file mode 100644index 00000000..b41eb3fd--- /dev/null+++ b/site/src/cut/lib/stockMusicManifest.ts@@ -0,0 +1,2998 @@+// Generated by scripts/generate-stock-music.ts — do not edit by hand.+import type { StockMusic } from "./stock";++export const STOCK_MUSIC: StockMusic[] = [+ {+ "id": "songs-sunny-folk",+ "category": "Songs",+ "prompt": "A warm cheerful acoustic folk song with guitar and harmonica and gentle sung vocals, about a bright sunny morning walk.",+ "tags": [+ "song",+ "vocals",+ "folk",+ "acoustic",+ "guitar",+ "cheerful"+ ],+ "file": "/cut-stock-music/songs-sunny-folk.mp3",+ "duration": 30.8,+ "peaks": [+ 0.78,+ 0.89,+ 0.78,+ 0.71,+ 0.4,+ 0.78,+ 0.93,+ 0.83,+ 0.66,+ 0.41,+ 1,+ 0.85,+ 0.73,+ 0.56,+ 0.55,+ 0.94,+ 0.65,+ 0.78,+ 0.6,+ 0.59,+ 0.88,+ 0.62,+ 0.73,+ 0.58,+ 0.56,+ 0.87,+ 0.71,+ 0.62,+ 0.57,+ 0.87,+ 0.83,+ 0.81,+ 1,+ 0.66,+ 0.97,+ 0.64,+ 0.73,+ 0.78,+ 0.6,+ 0.71,+ 0.85,+ 0.95,+ 0.73,+ 0.69,+ 0.66,+ 0.97,+ 0.68,+ 0.73,+ 0.58,+ 0.72,+ 0.61,+ 0.76,+ 0.69,+ 0.61,+ 0.96,+ 0.69+ ]+ },+ {+ "id": "songs-indie-dream",+ "category": "Songs",+ "prompt": "An upbeat indie pop song with bright jangly guitars, a catchy chorus, and warm sung vocals about chasing a dream.",+ "tags": [+ "song",+ "vocals",+ "indie",+ "pop",+ "upbeat",+ "guitar"+ ],+ "file": "/cut-stock-music/songs-indie-dream.mp3",+ "duration": 30.8,+ "peaks": [+ 1,+ 0.86,+ 0.75,+ 0.74,+ 0.74,+ 0.75,+ 0.8,+ 0.69,+ 0.81,+ 0.76,+ 0.74,+ 0.96,+ 0.94,+ 0.97,+ 0.73,+ 0.88,+ 0.81,+ 0.76,+ 0.73,+ 0.99,+ 0.74,+ 0.78,+ 0.89,+ 0.73,+ 0.73,+ 0.85,+ 0.85,+ 0.77,+ 0.77,+ 0.79,+ 0.77,+ 0.97,+ 0.82,+ 0.88,+ 0.8,+ 0.84,+ 0.72,+ 0.97,+ 0.83,+ 0.78,+ 0.97,+ 0.72,+ 0.82,+ 0.67,+ 0.68,+ 0.8,+ 0.91,+ 0.72,+ 0.74,+ 0.7,+ 0.77,+ 0.56,+ 0.69,+ 0.66,+ 0.71,+ 0.61+ ]+ },+ {+ "id": "songs-soft-ballad",+ "category": "Songs",+ "prompt": "A tender slow ballad with piano, soft strings, and heartfelt sung vocals about missing someone far away.",+ "tags": [+ "song",+ "vocals",+ "ballad",+ "piano",+ "emotional",+ "slow"+ ],+ "file": "/cut-stock-music/songs-soft-ballad.mp3",+ "duration": 30.8,+ "peaks": [+ 0.79,+ 0.89,+ 0.68,+ 0.71,+ 0.61,+ 0.48,+ 0.34,+ 0.83,+ 0.71,+ 0.76,+ 0.62,+ 0.6,+ 0.47,+ 0.45,+ 0.92,+ 0.61,+ 0.67,+ 0.66,+ 0.56,+ 0.52,+ 0.87,+ 0.75,+ 0.73,+ 0.73,+ 0.75,+ 0.55,+ 0.34,+ 0.54,+ 1,+ 0.89,+ 0.91,+ 0.91,+ 0.83,+ 0.61,+ 0.98,+ 0.94,+ 0.73,+ 0.87,+ 0.87,+ 0.72,+ 0.54,+ 0.87,+ 0.72,+ 0.82,+ 0.67,+ 0.63,+ 0.57,+ 0.39,+ 0.73,+ 0.67,+ 0.6,+ 0.63,+ 0.55,+ 0.45,+ 0.29,+ 0.31+ ]+ },+ {+ "id": "songs-summer-night",+ "category": "Songs",+ "prompt": "An energetic feel-good song with bright synths, handclaps, and confident sung vocals about a fun night out with friends.",+ "tags": [+ "song",+ "vocals",+ "upbeat",+ "synth",+ "energetic",+ "fun"+ ],+ "file": "/cut-stock-music/songs-summer-night.mp3",+ "duration": 30.8,+ "peaks": [+ 0.79,+ 0.8,+ 0.8,+ 0.83,+ 0.75,+ 0.78,+ 0.72,+ 0.84,+ 0.74,+ 0.87,+ 0.88,+ 0.84,+ 0.71,+ 0.7,+ 0.88,+ 0.82,+ 0.84,+ 0.85,+ 0.94,+ 0.79,+ 0.88,+ 0.73,+ 0.74,+ 0.84,+ 0.72,+ 0.74,+ 0.87,+ 0.79,+ 0.82,+ 0.76,+ 0.79,+ 0.79,+ 0.78,+ 0.77,+ 1,+ 0.79,+ 0.81,+ 0.75,+ 0.76,+ 0.81,+ 0.79,+ 0.75,+ 0.82,+ 0.96,+ 0.83,+ 0.73,+ 0.9,+ 0.89,+ 0.83,+ 0.94,+ 0.77,+ 0.89,+ 0.91,+ 0.86,+ 0.79,+ 0.8+ ]+ },+ {+ "id": "songs-open-road",+ "category": "Songs",+ "prompt": "A laid-back country-style song with acoustic guitar, light drums, and warm sung vocals about a long drive down an open road.",+ "tags": [+ "song",+ "vocals",+ "country",+ "acoustic",+ "guitar",+ "laidback"+ ],+ "file": "/cut-stock-music/songs-open-road.mp3",+ "duration": 30.8,+ "peaks": [+ 0.9,+ 0.7,+ 0.79,+ 0.67,+ 0.85,+ 0.93,+ 0.66,+ 0.73,+ 0.8,+ 0.56,+ 0.82,+ 0.7,+ 0.84,+ 0.78,+ 0.58,+ 1,+ 0.85,+ 0.69,+ 0.75,+ 0.83,+ 0.72,+ 0.66,+ 0.57,+ 0.72,+ 0.81,+ 0.79,+ 0.72,+ 0.67,+ 0.7,+ 0.78,+ 1,+ 0.82,+ 0.73,+ 0.87,+ 0.9,+ 0.72,+ 0.72,+ 0.55,+ 0.96,+ 0.97,+ 0.89,+ 0.89,+ 0.91,+ 0.87,+ 0.91,+ 0.73,+ 0.99,+ 0.99,+ 0.82,+ 0.81,+ 0.93,+ 0.92,+ 0.76,+ 0.96,+ 0.72,+ 0.9+ ]+ },+ {+ "id": "songs-city-lights",+ "category": "Songs",+ "prompt": "A smooth mellow song with soft electric piano, a gentle groove, and silky sung vocals about a quiet late-night city walk.",+ "tags": [+ "song",+ "vocals",+ "smooth",+ "mellow",+ "keys",+ "night"+ ],+ "file": "/cut-stock-music/songs-city-lights.mp3",+ "duration": 30.6,+ "peaks": [+ 0.84,+ 0.94,+ 0.93,+ 0.63,+ 0.98,+ 0.82,+ 0.88,+ 0.97,+ 0.3,+ 0.98,+ 0.87,+ 1,+ 0.82,+ 0.91,+ 0.96,+ 0.81,+ 0.83,+ 0.71,+ 0.62,+ 0.89,+ 0.96,+ 0.98,+ 0.72,+ 0.43,+ 0.96,+ 0.88,+ 0.88,+ 0.76,+ 0.69,+ 0.87,+ 0.97,+ 0.96,+ 0.87,+ 0.71,+ 0.99,+ 0.99,+ 0.92,+ 0.97,+ 0.71,+ 0.99,+ 0.99,+ 0.87,+ 0.87,+ 0.65,+ 0.99,+ 0.98,+ 0.77,+ 0.83,+ 0.53,+ 0.77,+ 0.2,+ 0.4,+ 0.11,+ 0.07,+ 0.18,+ 0.03+ ]+ },+ {+ "id": "songs-new-morning",+ "category": "Songs",+ "prompt": "An uplifting anthem with piano, warm layered harmonies, and joyful sung vocals about hope and new beginnings.",+ "tags": [+ "song",+ "vocals",+ "uplifting",+ "anthem",+ "piano",+ "hopeful"+ ],+ "file": "/cut-stock-music/songs-new-morning.mp3",+ "duration": 30.7,+ "peaks": [+ 0.57,+ 0.6,+ 0.53,+ 0.71,+ 0.61,+ 0.68,+ 0.48,+ 0.53,+ 0.57,+ 0.42,+ 0.69,+ 0.61,+ 0.5,+ 0.72,+ 0.7,+ 0.76,+ 0.66,+ 0.76,+ 0.81,+ 0.75,+ 0.91,+ 0.87,+ 0.84,+ 0.77,+ 0.75,+ 0.78,+ 0.79,+ 0.98,+ 0.82,+ 0.74,+ 0.86,+ 0.93,+ 0.91,+ 0.88,+ 0.88,+ 0.94,+ 0.97,+ 0.88,+ 0.74,+ 0.64,+ 0.68,+ 0.72,+ 0.77,+ 1,+ 0.78,+ 0.85,+ 0.75,+ 0.74,+ 0.78,+ 0.8,+ 0.75,+ 0.88,+ 0.86,+ 0.78,+ 0.79,+ 0.7+ ]+ },+ {+ "id": "songs-quiet-evening",+ "category": "Songs",+ "prompt": "A tender acoustic love song with fingerpicked guitar and soft sung vocals about a calm quiet evening together.",+ "tags": [+ "song",+ "vocals",+ "love",+ "acoustic",+ "guitar",+ "tender"+ ],+ "file": "/cut-stock-music/songs-quiet-evening.mp3",+ "duration": 30.8,+ "peaks": [+ 0.7,+ 0.74,+ 0.86,+ 0.64,+ 0.64,+ 0.84,+ 0.87,+ 0.7,+ 0.78,+ 0.83,+ 0.82,+ 1,+ 0.78,+ 0.73,+ 0.9,+ 0.71,+ 0.84,+ 0.8,+ 0.76,+ 0.67,+ 0.81,+ 0.81,+ 0.75,+ 0.67,+ 0.78,+ 0.73,+ 0.75,+ 0.83,+ 0.74,+ 0.74,+ 0.85,+ 0.7,+ 0.66,+ 0.91,+ 0.55,+ 0.82,+ 0.57,+ 0.56,+ 0.82,+ 0.53,+ 0.46,+ 0.56,+ 0.59,+ 0.64,+ 0.51,+ 0.36,+ 0.49,+ 0.7,+ 0.49,+ 0.53,+ 0.52,+ 0.58,+ 0.6,+ 0.41,+ 0.46,+ 0.45+ ]+ },+ {+ "id": "cinematic-rising-strings",+ "category": "Cinematic",+ "prompt": "Sweeping orchestral strings building to a triumphant swell, epic and emotional, instrumental film score.",+ "tags": [+ "orchestral",+ "strings",+ "epic",+ "emotional",+ "trailer",+ "dramatic"+ ],+ "file": "/cut-stock-music/cinematic-rising-strings.mp3",+ "duration": 30,+ "peaks": [+ 0.39,+ 0.33,+ 0.35,+ 0.36,+ 0.41,+ 0.5,+ 0.49,+ 0.59,+ 0.65,+ 0.62,+ 0.51,+ 0.58,+ 0.56,+ 0.67,+ 0.56,+ 0.6,+ 0.55,+ 0.62,+ 0.56,+ 0.7,+ 0.66,+ 0.68,+ 0.87,+ 0.83,+ 0.74,+ 0.83,+ 0.8,+ 0.8,+ 0.79,+ 0.76,+ 0.87,+ 0.64,+ 1,+ 0.8,+ 0.94,+ 0.94,+ 0.72,+ 0.96,+ 0.9,+ 0.86,+ 0.82,+ 0.89,+ 0.85,+ 0.78,+ 0.71,+ 0.73,+ 0.84,+ 0.72,+ 0.65,+ 0.84,+ 0.92,+ 0.67,+ 0.23,+ 0.07,+ 0.01,+ 0+ ]+ },+ {+ "id": "cinematic-tension",+ "category": "Cinematic",+ "prompt": "Tense low strings and a slow pulsing drum, dark and suspenseful, instrumental film score.",+ "tags": [+ "tension",+ "suspense",+ "dark",+ "strings",+ "drums",+ "dramatic"+ ],+ "file": "/cut-stock-music/cinematic-tension.mp3",+ "duration": 30.8,+ "peaks": [+ 0.83,+ 0.62,+ 0.69,+ 0.99,+ 0.68,+ 0.57,+ 0.93,+ 0.61,+ 0.51,+ 0.49,+ 0.97,+ 0.44,+ 0.42,+ 0.73,+ 0.66,+ 0.41,+ 0.44,+ 0.97,+ 0.77,+ 0.51,+ 0.39,+ 0.93,+ 0.56,+ 0.52,+ 0.99,+ 0.68,+ 0.43,+ 0.39,+ 1,+ 0.32,+ 0.24,+ 0.21,+ 0.94,+ 0.26,+ 0.28,+ 0.86,+ 0.57,+ 0.56,+ 0.75,+ 0.91,+ 0.62,+ 0.61,+ 0.72,+ 0.92,+ 0.48,+ 0.43,+ 0.94,+ 0.61,+ 0.43,+ 0.4,+ 0.82,+ 0.51,+ 0.62,+ 0.86,+ 0.97,+ 0.51+ ]+ },+ {+ "id": "cinematic-hopeful-piano",+ "category": "Cinematic",+ "prompt": "Hopeful piano melody with warm strings underneath, uplifting and inspiring, instrumental film score.",+ "tags": [+ "piano",+ "strings",+ "hopeful",+ "uplifting",+ "inspiring",+ "warm"+ ],+ "file": "/cut-stock-music/cinematic-hopeful-piano.mp3",+ "duration": 30.8,+ "peaks": [+ 0.57,+ 0.47,+ 0.57,+ 0.64,+ 0.64,+ 0.86,+ 0.89,+ 0.79,+ 0.67,+ 0.78,+ 0.71,+ 0.71,+ 0.62,+ 0.7,+ 0.71,+ 0.64,+ 0.54,+ 0.59,+ 0.75,+ 0.83,+ 0.63,+ 0.79,+ 0.8,+ 0.67,+ 0.68,+ 0.83,+ 0.68,+ 1,+ 0.83,+ 0.79,+ 0.85,+ 0.65,+ 0.71,+ 0.71,+ 0.7,+ 0.75,+ 0.91,+ 0.91,+ 0.61,+ 0.77,+ 0.99,+ 0.94,+ 0.83,+ 0.83,+ 0.83,+ 0.74,+ 0.51,+ 0.49,+ 0.69,+ 0.63,+ 0.65,+ 0.49,+ 0.46,+ 0.46,+ 0.63,+ 0.36+ ]+ },+ {+ "id": "cinematic-heroic-brass",+ "category": "Cinematic",+ "prompt": "Powerful cinematic drums and bold brass, heroic and grand, instrumental trailer music.",+ "tags": [+ "brass",+ "drums",+ "heroic",+ "epic",+ "grand",+ "trailer"+ ],+ "file": "/cut-stock-music/cinematic-heroic-brass.mp3",+ "duration": 30.8,+ "peaks": [+ 0.81,+ 0.66,+ 0.66,+ 0.83,+ 0.83,+ 0.79,+ 0.6,+ 0.72,+ 0.77,+ 0.79,+ 0.79,+ 0.83,+ 0.71,+ 0.58,+ 0.7,+ 0.81,+ 0.84,+ 0.72,+ 0.82,+ 0.79,+ 0.74,+ 0.73,+ 0.71,+ 0.79,+ 0.81,+ 0.82,+ 0.85,+ 0.88,+ 0.92,+ 0.94,+ 0.81,+ 1,+ 0.75,+ 0.9,+ 0.98,+ 0.85,+ 0.92,+ 0.83,+ 0.9,+ 0.79,+ 0.71,+ 0.24,+ 0.1,+ 0.06,+ 0.08,+ 0.19,+ 0.37,+ 0.78,+ 0.68,+ 0.62,+ 0.68,+ 0.82,+ 0.63,+ 0.77,+ 0.76,+ 0.74+ ]+ },+ {+ "id": "cinematic-melancholy-cello",+ "category": "Cinematic",+ "prompt": "Slow melancholic cello and soft piano, reflective and emotional, instrumental film score.",+ "tags": [+ "cello",+ "piano",+ "melancholy",+ "sad",+ "reflective",+ "emotional"+ ],+ "file": "/cut-stock-music/cinematic-melancholy-cello.mp3",+ "duration": 30.8,+ "peaks": [+ 0.69,+ 0.29,+ 0.35,+ 0.14,+ 0.08,+ 0.41,+ 0.5,+ 0.59,+ 0.48,+ 0.58,+ 0.6,+ 0.7,+ 1,+ 0.69,+ 0.65,+ 0.81,+ 0.66,+ 0.61,+ 0.69,+ 0.52,+ 0.73,+ 0.82,+ 0.84,+ 0.73,+ 0.56,+ 0.4,+ 0.4,+ 0.59,+ 0.91,+ 0.81,+ 0.54,+ 0.62,+ 0.42,+ 0.34,+ 0.52,+ 0.63,+ 1,+ 1,+ 0.86,+ 0.71,+ 0.72,+ 0.71,+ 0.93,+ 0.49,+ 0.35,+ 0.48,+ 0.44,+ 0.24,+ 0.27,+ 0.6,+ 0.66,+ 0.63,+ 0.49,+ 0.49,+ 0.84,+ 0.82+ ]+ },+ {+ "id": "ambient-warm-pad",+ "category": "Ambient",+ "prompt": "Warm soft synth pads drifting slowly, calm and spacious, instrumental ambient background music.",+ "tags": [+ "pads",+ "warm",+ "calm",+ "spacious",+ "drone",+ "soft"+ ],+ "file": "/cut-stock-music/ambient-warm-pad.mp3",+ "duration": 30.8,+ "peaks": [+ 0.48,+ 0.54,+ 0.64,+ 0.55,+ 0.44,+ 0.5,+ 0.4,+ 0.51,+ 0.78,+ 0.53,+ 0.53,+ 0.7,+ 0.46,+ 0.55,+ 0.46,+ 0.55,+ 0.66,+ 0.71,+ 0.64,+ 0.79,+ 0.85,+ 0.84,+ 0.54,+ 0.49,+ 0.61,+ 0.88,+ 0.72,+ 0.75,+ 0.8,+ 1,+ 0.97,+ 0.79,+ 0.74,+ 0.67,+ 0.69,+ 0.66,+ 0.65,+ 0.89,+ 0.77,+ 0.79,+ 0.84,+ 0.53,+ 0.57,+ 0.76,+ 0.68,+ 0.83,+ 0.75,+ 0.79,+ 0.75,+ 0.64,+ 0.66,+ 0.77,+ 0.83,+ 0.74,+ 0.85,+ 0.55+ ]+ },+ {+ "id": "ambient-ethereal",+ "category": "Ambient",+ "prompt": "Ethereal shimmering textures and gentle drones, dreamy and weightless, instrumental ambient background music.",+ "tags": [+ "ethereal",+ "dreamy",+ "textures",+ "drone",+ "shimmer",+ "airy"+ ],+ "file": "/cut-stock-music/ambient-ethereal.mp3",+ "duration": 28.4,+ "peaks": [+ 0.56,+ 0.45,+ 0.54,+ 0.69,+ 0.71,+ 0.61,+ 0.65,+ 0.67,+ 0.57,+ 0.76,+ 0.81,+ 0.65,+ 0.68,+ 0.72,+ 0.58,+ 0.67,+ 0.71,+ 0.74,+ 0.84,+ 0.66,+ 0.66,+ 0.68,+ 0.88,+ 0.54,+ 0.43,+ 0.48,+ 0.54,+ 0.57,+ 0.65,+ 0.85,+ 0.71,+ 0.7,+ 0.68,+ 0.79,+ 0.75,+ 0.77,+ 0.67,+ 0.76,+ 0.66,+ 0.84,+ 0.9,+ 0.87,+ 0.67,+ 0.79,+ 0.87,+ 0.84,+ 0.87,+ 1,+ 0.75,+ 0.63,+ 0.33,+ 0.2,+ 0.07,+ 0.05,+ 0.02,+ 0.01+ ]+ },+ {+ "id": "ambient-deep-space",+ "category": "Ambient",+ "prompt": "Deep evolving drones and distant tones, vast and meditative, instrumental ambient background music.",+ "tags": [+ "deep",+ "drone",+ "meditative",+ "vast",+ "space",+ "calm"+ ],+ "file": "/cut-stock-music/ambient-deep-space.mp3",+ "duration": 30.8,+ "peaks": [+ 0.48,+ 0.56,+ 0.62,+ 0.67,+ 0.84,+ 0.92,+ 0.9,+ 0.86,+ 0.99,+ 0.99,+ 0.81,+ 0.88,+ 0.75,+ 0.6,+ 0.43,+ 0.52,+ 0.53,+ 0.66,+ 0.94,+ 0.74,+ 0.99,+ 0.98,+ 1,+ 0.76,+ 0.86,+ 0.83,+ 0.62,+ 0.49,+ 0.3,+ 0.25,+ 0.35,+ 0.46,+ 0.73,+ 0.61,+ 0.83,+ 0.48,+ 0.47,+ 0.45,+ 0.49,+ 0.58,+ 0.55,+ 0.5,+ 0.31,+ 0.13,+ 0.29,+ 0.5,+ 0.49,+ 0.87,+ 0.7,+ 0.81,+ 0.81,+ 0.82,+ 0.79,+ 0.49,+ 0.3,+ 0.24+ ]+ },+ {+ "id": "ambient-soothing",+ "category": "Ambient",+ "prompt": "Soft gentle pads with a peaceful mood, soothing and quiet, instrumental ambient background music.",+ "tags": [+ "soothing",+ "peaceful",+ "quiet",+ "soft",+ "pads",+ "calm"+ ],+ "file": "/cut-stock-music/ambient-soothing.mp3",+ "duration": 22.3,+ "peaks": [+ 0.94,+ 0.79,+ 0.82,+ 0.72,+ 0.9,+ 0.77,+ 0.73,+ 0.74,+ 0.61,+ 0.57,+ 0.65,+ 0.79,+ 0.93,+ 0.72,+ 0.62,+ 0.81,+ 0.67,+ 0.75,+ 0.69,+ 0.75,+ 0.82,+ 0.92,+ 0.98,+ 0.65,+ 0.76,+ 0.86,+ 0.68,+ 0.77,+ 0.7,+ 0.7,+ 1,+ 0.77,+ 0.79,+ 0.58,+ 0.45,+ 0.64,+ 0.69,+ 0.58,+ 0.47,+ 0.5,+ 0.56,+ 0.43,+ 0.45,+ 0.37,+ 0.39,+ 0.24,+ 0.28,+ 0.23,+ 0.15,+ 0.09,+ 0.05,+ 0.02,+ 0.02,+ 0.01,+ 0.01,+ 0.01+ ]+ },+ {+ "id": "acoustic-guitar-calm",+ "category": "Acoustic",+ "prompt": "Gentle fingerpicked acoustic guitar, calm and peaceful, instrumental background music.",+ "tags": [+ "acoustic",+ "guitar",+ "calm",+ "peaceful",+ "fingerpicked",+ "gentle"+ ],+ "file": "/cut-stock-music/acoustic-guitar-calm.mp3",+ "duration": 30.8,+ "peaks": [+ 0.78,+ 0.64,+ 0.62,+ 0.63,+ 0.74,+ 0.46,+ 0.63,+ 0.38,+ 0.47,+ 0.82,+ 0.71,+ 0.81,+ 0.64,+ 0.48,+ 0.83,+ 0.76,+ 0.81,+ 0.55,+ 0.58,+ 0.66,+ 0.74,+ 1,+ 0.92,+ 0.65,+ 0.82,+ 0.8,+ 0.57,+ 0.59,+ 0.73,+ 0.62,+ 0.8,+ 0.67,+ 0.69,+ 0.69,+ 0.57,+ 0.9,+ 0.77,+ 0.73,+ 0.5,+ 0.89,+ 0.95,+ 0.99,+ 0.89,+ 0.82,+ 0.79,+ 0.95,+ 0.79,+ 0.73,+ 0.74,+ 0.73,+ 0.92,+ 0.87,+ 0.75,+ 0.85,+ 0.87,+ 0.62+ ]+ },+ {+ "id": "acoustic-folk-warm",+ "category": "Acoustic",+ "prompt": "Warm acoustic guitar and soft strings, cozy and heartfelt, instrumental background music.",+ "tags": [+ "acoustic",+ "guitar",+ "strings",+ "warm",+ "cozy",+ "folk"+ ],+ "file": "/cut-stock-music/acoustic-folk-warm.mp3",+ "duration": 30.8,+ "peaks": [+ 0.63,+ 0.74,+ 0.7,+ 0.84,+ 0.54,+ 0.78,+ 0.66,+ 0.77,+ 0.63,+ 0.63,+ 0.74,+ 0.94,+ 0.68,+ 0.71,+ 0.71,+ 0.72,+ 0.75,+ 0.77,+ 0.86,+ 0.88,+ 0.71,+ 0.6,+ 1,+ 0.91,+ 0.81,+ 0.83,+ 0.82,+ 0.71,+ 1,+ 0.75,+ 0.73,+ 0.74,+ 0.96,+ 0.81,+ 0.68,+ 0.72,+ 0.72,+ 0.96,+ 0.79,+ 0.88,+ 0.72,+ 0.61,+ 0.86,+ 0.61,+ 0.74,+ 0.73,+ 0.79,+ 0.65,+ 0.68,+ 0.68,+ 0.68,+ 0.67,+ 0.61,+ 0.78,+ 0.64,+ 0.67+ ]+ },+ {+ "id": "acoustic-sunny-morning",+ "category": "Acoustic",+ "prompt": "Bright acoustic guitar with a light cheerful feel, fresh and sunny, instrumental background music.",+ "tags": [+ "acoustic",+ "guitar",+ "bright",+ "cheerful",+ "sunny",+ "fresh"+ ],+ "file": "/cut-stock-music/acoustic-sunny-morning.mp3",+ "duration": 29.6,+ "peaks": [+ 0.91,+ 0.86,+ 0.97,+ 0.93,+ 0.68,+ 0.76,+ 0.66,+ 0.95,+ 0.55,+ 0.85,+ 0.65,+ 0.84,+ 0.8,+ 0.62,+ 0.69,+ 0.99,+ 0.58,+ 0.74,+ 0.92,+ 0.84,+ 0.79,+ 0.62,+ 0.97,+ 0.72,+ 0.82,+ 0.63,+ 0.97,+ 0.89,+ 0.62,+ 0.67,+ 0.92,+ 0.77,+ 0.82,+ 0.91,+ 0.84,+ 0.79,+ 0.64,+ 0.95,+ 0.78,+ 0.82,+ 0.79,+ 0.77,+ 0.64,+ 0.57,+ 0.84,+ 1,+ 0.59,+ 0.28,+ 0.15,+ 0.1,+ 0.06,+ 0.04,+ 0.03,+ 0.02,+ 0.01,+ 0.01+ ]+ },+ {+ "id": "acoustic-ukulele-happy",+ "category": "Acoustic",+ "prompt": "Playful ukulele and light hand percussion, happy and carefree, instrumental background music.",+ "tags": [+ "ukulele",+ "percussion",+ "happy",+ "carefree",+ "playful",+ "light"+ ],+ "file": "/cut-stock-music/acoustic-ukulele-happy.mp3",+ "duration": 30.8,+ "peaks": [+ 0.87,+ 0.77,+ 0.99,+ 0.85,+ 0.71,+ 0.87,+ 0.86,+ 0.69,+ 0.7,+ 0.77,+ 0.77,+ 0.9,+ 1,+ 0.72,+ 0.76,+ 0.53,+ 0.82,+ 0.75,+ 0.75,+ 0.88,+ 0.68,+ 0.61,+ 0.81,+ 0.72,+ 0.76,+ 0.73,+ 0.95,+ 0.83,+ 0.94,+ 0.85,+ 0.71,+ 0.76,+ 0.83,+ 0.9,+ 0.68,+ 0.72,+ 0.8,+ 0.86,+ 0.71,+ 0.94,+ 0.66,+ 0.7,+ 0.7,+ 0.69,+ 1,+ 0.63,+ 0.8,+ 0.55,+ 0.47,+ 0.85,+ 0.93,+ 0.7,+ 0.36,+ 0.99,+ 0.59,+ 0.69+ ]+ },+ {+ "id": "electronic-driving-synth",+ "category": "Electronic",+ "prompt": "Driving synth arpeggios over a steady beat, energetic and modern, instrumental background music.",+ "tags": [+ "synth",+ "arpeggio",+ "energetic",+ "modern",+ "beat",+ "driving"+ ],+ "file": "/cut-stock-music/electronic-driving-synth.mp3",+ "duration": 30.8,+ "peaks": [+ 0.73,+ 0.83,+ 0.83,+ 0.81,+ 0.75,+ 0.69,+ 0.98,+ 0.86,+ 0.86,+ 0.75,+ 0.77,+ 0.83,+ 0.76,+ 0.81,+ 0.74,+ 0.82,+ 0.71,+ 0.86,+ 0.75,+ 0.76,+ 0.8,+ 0.91,+ 0.73,+ 0.74,+ 0.7,+ 1,+ 0.76,+ 0.76,+ 0.74,+ 0.79,+ 0.67,+ 0.68,+ 0.68,+ 0.76,+ 0.71,+ 0.64,+ 0.67,+ 0.63,+ 0.7,+ 0.57,+ 0.66,+ 0.71,+ 0.58,+ 0.68,+ 0.61,+ 0.73,+ 0.61,+ 0.68,+ 0.67,+ 0.63,+ 0.67,+ 0.6,+ 0.67,+ 0.59,+ 0.62,+ 0.9+ ]+ },+ {+ "id": "electronic-glow",+ "category": "Electronic",+ "prompt": "Glowing synth melody with a smooth pulse, bright and futuristic, instrumental background music.",+ "tags": [+ "synth",+ "bright",+ "futuristic",+ "glow",+ "smooth",+ "pulse"+ ],+ "file": "/cut-stock-music/electronic-glow.mp3",+ "duration": 30.4,+ "peaks": [+ 0.95,+ 0.91,+ 0.89,+ 0.78,+ 0.98,+ 1,+ 0.85,+ 0.93,+ 0.96,+ 0.91,+ 0.96,+ 0.99,+ 0.91,+ 0.93,+ 0.93,+ 0.88,+ 0.94,+ 0.89,+ 0.93,+ 0.7,+ 0.47,+ 0.46,+ 0.79,+ 0.45,+ 0.81,+ 0.41,+ 0.82,+ 0.52,+ 0.72,+ 0.53,+ 0.67,+ 0.49,+ 0.62,+ 0.89,+ 0.5,+ 0.66,+ 0.69,+ 0.71,+ 0.53,+ 0.69,+ 0.49,+ 0.78,+ 0.63,+ 0.5,+ 0.6,+ 0.48,+ 0.4,+ 0.41,+ 0.41,+ 0.43,+ 0.47,+ 0.37,+ 0.42,+ 0.4,+ 0.04,+ 0.01+ ]+ },+ {+ "id": "electronic-downtempo",+ "category": "Electronic",+ "prompt": "Smooth downtempo beat with mellow synths, relaxed and cool, instrumental background music.",+ "tags": [+ "downtempo",+ "synth",+ "relaxed",+ "cool",+ "beat",+ "mellow"+ ],+ "file": "/cut-stock-music/electronic-downtempo.mp3",+ "duration": 30.8,+ "peaks": [+ 0.96,+ 0.81,+ 0.97,+ 0.45,+ 0.91,+ 0.88,+ 0.96,+ 0.98,+ 0.98,+ 0.93,+ 0.46,+ 0.96,+ 0.96,+ 0.94,+ 0.88,+ 1,+ 0.98,+ 0.9,+ 0.98,+ 0.85,+ 0.82,+ 0.85,+ 0.86,+ 0.93,+ 1,+ 0.85,+ 0.97,+ 0.88,+ 0.9,+ 0.98,+ 0.87,+ 0.99,+ 0.72,+ 0.98,+ 0.88,+ 0.99,+ 0.97,+ 0.41,+ 0.96,+ 0.57,+ 0.83,+ 0.85,+ 0.8,+ 0.96,+ 0.2,+ 0.86,+ 0.85,+ 0.89,+ 0.78,+ 0.78,+ 0.83,+ 0.93,+ 0.87,+ 0.89,+ 0.97,+ 0.82+ ]+ },+ {+ "id": "electronic-retro-wave",+ "category": "Electronic",+ "prompt": "Dreamy retro synths with a slow steady groove, nostalgic and atmospheric, instrumental background music.",+ "tags": [+ "synth",+ "retro",+ "nostalgic",+ "atmospheric",+ "dreamy",+ "groove"+ ],+ "file": "/cut-stock-music/electronic-retro-wave.mp3",+ "duration": 30.7,+ "peaks": [+ 0.81,+ 0.71,+ 0.86,+ 0.93,+ 0.84,+ 0.78,+ 0.77,+ 1,+ 0.78,+ 0.82,+ 0.85,+ 0.87,+ 0.98,+ 0.78,+ 0.82,+ 0.87,+ 0.73,+ 0.83,+ 0.84,+ 0.75,+ 0.88,+ 0.84,+ 0.85,+ 0.87,+ 0.81,+ 0.78,+ 0.76,+ 0.77,+ 0.83,+ 0.56,+ 0.9,+ 0.88,+ 0.92,+ 0.91,+ 0.85,+ 0.72,+ 0.82,+ 0.84,+ 0.79,+ 0.72,+ 0.65,+ 0.78,+ 0.82,+ 0.81,+ 0.66,+ 0.59,+ 0.57,+ 0.6,+ 0.45,+ 0.55,+ 0.28,+ 0.49,+ 0.42,+ 0.36,+ 0.34,+ 0.05+ ]+ },+ {+ "id": "upbeat-claps-pop",+ "category": "Upbeat",+ "prompt": "Upbeat groove with claps and bright synths, happy and energetic, instrumental background music.",+ "tags": [+ "upbeat",+ "claps",+ "happy",+ "energetic",+ "bright",+ "synth"+ ],+ "file": "/cut-stock-music/upbeat-claps-pop.mp3",+ "duration": 30.8,+ "peaks": [+ 0.71,+ 0.7,+ 0.71,+ 0.68,+ 0.88,+ 0.88,+ 0.75,+ 1,+ 0.79,+ 0.8,+ 0.81,+ 0.77,+ 0.81,+ 0.87,+ 0.73,+ 0.72,+ 0.77,+ 0.76,+ 0.94,+ 0.75,+ 0.83,+ 0.81,+ 0.79,+ 0.83,+ 0.76,+ 0.85,+ 0.88,+ 0.77,+ 0.77,+ 0.81,+ 0.93,+ 0.82,+ 0.9,+ 0.79,+ 0.79,+ 0.84,+ 0.94,+ 0.85,+ 0.81,+ 0.8,+ 0.89,+ 0.72,+ 0.83,+ 0.71,+ 0.79,+ 0.68,+ 0.8,+ 0.83,+ 0.68,+ 0.74,+ 0.75,+ 0.81,+ 0.59,+ 0.73,+ 0.64,+ 0.58+ ]+ },+ {+ "id": "upbeat-funky-bass",+ "category": "Upbeat",+ "prompt": "Funky bass and rhythmic guitar, groovy and fun, instrumental background music.",+ "tags": [+ "funk",+ "bass",+ "guitar",+ "groovy",+ "fun",+ "rhythmic"+ ],+ "file": "/cut-stock-music/upbeat-funky-bass.mp3",+ "duration": 30.8,+ "peaks": [+ 1,+ 0.98,+ 0.97,+ 1,+ 0.96,+ 0.99,+ 0.97,+ 0.92,+ 1,+ 0.95,+ 0.98,+ 0.97,+ 0.97,+ 0.99,+ 0.99,+ 1,+ 1,+ 0.99,+ 0.93,+ 0.96,+ 1,+ 0.59,+ 0.92,+ 0.96,+ 0.69,+ 0.86,+ 0.47,+ 0.97,+ 0.98,+ 0.81,+ 0.91,+ 0.97,+ 0.9,+ 1,+ 0.96,+ 1,+ 0.98,+ 0.92,+ 0.98,+ 0.97,+ 0.97,+ 0.97,+ 0.99,+ 0.96,+ 0.97,+ 0.97,+ 0.98,+ 0.97,+ 0.98,+ 0.98,+ 0.98,+ 0.98,+ 0.98,+ 0.95,+ 0.93,+ 1+ ]+ },+ {+ "id": "upbeat-summer",+ "category": "Upbeat",+ "prompt": "Bright summery melody with a bouncy rhythm, cheerful and lively, instrumental background music.",+ "tags": [+ "summer",+ "bright",+ "bouncy",+ "cheerful",+ "lively",+ "happy"+ ],+ "file": "/cut-stock-music/upbeat-summer.mp3",+ "duration": 30.7,+ "peaks": [+ 0.96,+ 0.92,+ 0.97,+ 0.9,+ 0.87,+ 0.93,+ 0.83,+ 0.78,+ 0.96,+ 0.89,+ 0.88,+ 0.96,+ 0.92,+ 0.96,+ 0.85,+ 0.99,+ 0.87,+ 0.85,+ 0.91,+ 0.86,+ 0.95,+ 0.91,+ 0.87,+ 0.92,+ 0.94,+ 0.89,+ 0.88,+ 0.95,+ 1,+ 0.99,+ 0.97,+ 0.88,+ 0.91,+ 0.96,+ 1,+ 0.91,+ 1,+ 0.94,+ 0.99,+ 0.95,+ 0.91,+ 0.85,+ 0.54,+ 0.83,+ 0.79,+ 0.26,+ 0.77,+ 0.84,+ 0.2,+ 0.67,+ 0.8,+ 0.74,+ 0.76,+ 0,+ 0.32,+ 0.15+ ]+ },+ {+ "id": "upbeat-motivational",+ "category": "Upbeat",+ "prompt": "Energetic beat with punchy drums and bright chords, confident and driving, instrumental background music.",+ "tags": [+ "motivational",+ "drums",+ "confident",+ "driving",+ "energetic",+ "bright"+ ],+ "file": "/cut-stock-music/upbeat-motivational.mp3",+ "duration": 30.8,+ "peaks": [+ 0.89,+ 0.9,+ 0.81,+ 0.91,+ 0.86,+ 0.82,+ 0.77,+ 0.81,+ 0.8,+ 0.83,+ 0.83,+ 0.92,+ 0.77,+ 0.87,+ 0.96,+ 0.87,+ 0.75,+ 1,+ 0.86,+ 0.84,+ 0.77,+ 0.9,+ 0.81,+ 0.68,+ 0.76,+ 0.66,+ 0.68,+ 0.67,+ 0.65,+ 0.7,+ 0.71,+ 0.73,+ 0.63,+ 0.73,+ 0.8,+ 0.62,+ 0.7,+ 0.68,+ 0.69,+ 0.71,+ 0.72,+ 0.65,+ 0.63,+ 0.69,+ 0.69,+ 0.87,+ 0.87,+ 0.76,+ 0.8,+ 0.63,+ 0.78,+ 0.72,+ 0.71,+ 0.72,+ 0.64,+ 0.69+ ]+ },+ {+ "id": "chill-mellow-keys",+ "category": "Chill",+ "prompt": "Mellow electric piano over a soft laid-back beat, relaxed and smooth, instrumental background music.",+ "tags": [+ "chill",+ "electric piano",+ "relaxed",+ "smooth",+ "laidback",+ "beat"+ ],+ "file": "/cut-stock-music/chill-mellow-keys.mp3",+ "duration": 30.8,+ "peaks": [+ 0.27,+ 0.21,+ 0.16,+ 0.11,+ 0.49,+ 0.43,+ 0.34,+ 0.25,+ 0.19,+ 0.23,+ 0.19,+ 0.15,+ 0.11,+ 0.23,+ 0.97,+ 0.34,+ 0.86,+ 0.97,+ 0.97,+ 0.97,+ 0.97,+ 0.64,+ 0.18,+ 0.97,+ 0.1,+ 0.97,+ 0.72,+ 0.35,+ 0.26,+ 0.69,+ 0.97,+ 0.73,+ 0.12,+ 0.97,+ 0.72,+ 0.98,+ 0.89,+ 0.62,+ 0.97,+ 0.76,+ 0.97,+ 0.67,+ 0.86,+ 0.98,+ 0.97,+ 0.98,+ 0.97,+ 0.93,+ 0.58,+ 0.82,+ 0.6,+ 0.98,+ 1,+ 0.58,+ 0.97,+ 0.9+ ]+ },+ {+ "id": "chill-lounge",+ "category": "Chill",+ "prompt": "Smooth lounge groove with soft keys and light percussion, easy and calm, instrumental background music.",+ "tags": [+ "lounge",+ "keys",+ "percussion",+ "easy",+ "calm",+ "smooth"+ ],+ "file": "/cut-stock-music/chill-lounge.mp3",+ "duration": 30.8,+ "peaks": [+ 0.91,+ 0.74,+ 0.86,+ 0.78,+ 0.96,+ 0.68,+ 0.9,+ 0.87,+ 0.95,+ 0.86,+ 0.89,+ 0.9,+ 0.95,+ 0.72,+ 0.24,+ 0.9,+ 0.47,+ 0.99,+ 0.74,+ 0.25,+ 0.86,+ 0.8,+ 0.96,+ 0.64,+ 0.23,+ 0.7,+ 0.46,+ 0.91,+ 0.94,+ 0.21,+ 0.86,+ 0.99,+ 0.8,+ 0.86,+ 0.87,+ 0.64,+ 1,+ 0.8,+ 0.32,+ 0.74,+ 0.75,+ 1,+ 0.65,+ 0.27,+ 0.76,+ 0.51,+ 1,+ 0.77,+ 0.25,+ 0.91,+ 0.82,+ 1,+ 0.77,+ 0.55,+ 0.86,+ 0.7+ ]+ },+ {+ "id": "chill-sunset",+ "category": "Chill",+ "prompt": "Warm mellow chords with a gentle slow groove, dreamy and relaxed, instrumental background music.",+ "tags": [+ "chill",+ "warm",+ "dreamy",+ "relaxed",+ "groove",+ "mellow"+ ],+ "file": "/cut-stock-music/chill-sunset.mp3",+ "duration": 30.7,+ "peaks": [+ 0.89,+ 0.98,+ 0.94,+ 0.76,+ 0.61,+ 0.98,+ 0.75,+ 0.25,+ 0.97,+ 0.86,+ 0.33,+ 0.98,+ 0.76,+ 0.26,+ 0.98,+ 0.53,+ 0.99,+ 0.98,+ 0.43,+ 0.66,+ 0.98,+ 0.45,+ 0.71,+ 0.98,+ 0.97,+ 0.98,+ 0.97,+ 0.97,+ 0.74,+ 0.69,+ 0.97,+ 0.85,+ 0.3,+ 0.98,+ 0.68,+ 0.33,+ 0.98,+ 1,+ 0.41,+ 0.98,+ 0.49,+ 0.81,+ 0.98,+ 0.37,+ 0.67,+ 0.97,+ 0.53,+ 0.81,+ 0.98,+ 0.91,+ 0.98,+ 0.65,+ 0.16,+ 0.03,+ 0.01,+ 0.01+ ]+ },+ {+ "id": "chill-study",+ "category": "Chill",+ "prompt": "Soft calm keys and a light steady beat, focused and easygoing, instrumental background music.",+ "tags": [+ "study",+ "focus",+ "calm",+ "keys",+ "easygoing",+ "soft"+ ],+ "file": "/cut-stock-music/chill-study.mp3",+ "duration": 30.8,+ "peaks": [+ 0.68,+ 1,+ 0.79,+ 0.76,+ 0.81,+ 0.47,+ 0.97,+ 0.79,+ 0.76,+ 0.98,+ 0.77,+ 0.94,+ 0.86,+ 0.8,+ 0.96,+ 0.92,+ 0.94,+ 0.79,+ 0.74,+ 0.99,+ 0.94,+ 1,+ 0.77,+ 0.7,+ 0.97,+ 0.69,+ 0.88,+ 0.76,+ 0.62,+ 0.99,+ 0.95,+ 0.93,+ 0.77,+ 1,+ 0.83,+ 0.96,+ 0.93,+ 0.7,+ 0.99,+ 0.79,+ 0.9,+ 0.98,+ 0.79,+ 0.57,+ 0.6,+ 0.43,+ 0.35,+ 0.23,+ 0.47,+ 0.37,+ 0.19,+ 0.14,+ 0.22,+ 0.63,+ 0.24,+ 0.14+ ]+ },+ {+ "id": "corporate-clean",+ "category": "Corporate",+ "prompt": "Clean bright piano and light strings over a steady beat, professional and positive, instrumental background music.",+ "tags": [+ "corporate",+ "piano",+ "strings",+ "professional",+ "positive",+ "clean"+ ],+ "file": "/cut-stock-music/corporate-clean.mp3",+ "duration": 30.8,+ "peaks": [+ 0.54,+ 0.42,+ 0.49,+ 0.47,+ 0.41,+ 0.4,+ 0.48,+ 0.42,+ 0.49,+ 0.35,+ 0.52,+ 0.36,+ 0.38,+ 0.61,+ 0.47,+ 0.46,+ 0.48,+ 0.38,+ 0.53,+ 0.52,+ 0.64,+ 0.88,+ 0.61,+ 0.66,+ 0.78,+ 0.66,+ 0.57,+ 0.71,+ 0.87,+ 0.61,+ 0.67,+ 0.77,+ 0.73,+ 0.68,+ 0.64,+ 0.88,+ 0.67,+ 0.63,+ 0.66,+ 0.95,+ 0.66,+ 0.63,+ 0.93,+ 0.74,+ 0.73,+ 0.81,+ 0.8,+ 0.33,+ 0.48,+ 0.55,+ 0.91,+ 0.86,+ 0.9,+ 0.85,+ 1,+ 0.91+ ]+ },+ {+ "id": "corporate-tech",+ "category": "Corporate",+ "prompt": "Modern minimal synths and a subtle beat, sleek and forward-looking, instrumental background music.",+ "tags": [+ "corporate",+ "tech",+ "synth",+ "sleek",+ "modern",+ "minimal"+ ],+ "file": "/cut-stock-music/corporate-tech.mp3",+ "duration": 30.7,+ "peaks": [+ 1,+ 0.85,+ 0.88,+ 0.77,+ 0.92,+ 0.99,+ 1,+ 0.93,+ 0.85,+ 0.76,+ 1,+ 1,+ 0.88,+ 0.78,+ 0.88,+ 0.85,+ 0.92,+ 0.93,+ 0.76,+ 0.92,+ 0.85,+ 0.77,+ 0.8,+ 0.93,+ 0.84,+ 0.87,+ 0.93,+ 0.93,+ 0.95,+ 0.78,+ 0.59,+ 0.73,+ 0.68,+ 0.57,+ 0.66,+ 0.62,+ 0.59,+ 0.64,+ 0.34,+ 0.31,+ 0.37,+ 0.37,+ 0.44,+ 0.39,+ 0.32,+ 0.35,+ 0.37,+ 0.3,+ 0.3,+ 0.3,+ 0.29,+ 0.28,+ 0.32,+ 0.32,+ 0.21,+ 0.13+ ]+ },+ {+ "id": "corporate-inspiring",+ "category": "Corporate",+ "prompt": "Uplifting piano and warm strings building gently, optimistic and inspiring, instrumental background music.",+ "tags": [+ "corporate",+ "piano",+ "strings",+ "inspiring",+ "optimistic",+ "uplifting"+ ],+ "file": "/cut-stock-music/corporate-inspiring.mp3",+ "duration": 30.8,+ "peaks": [+ 0.67,+ 0.81,+ 0.7,+ 0.82,+ 0.59,+ 0.75,+ 0.57,+ 0.62,+ 0.78,+ 0.53,+ 0.86,+ 0.77,+ 0.67,+ 0.94,+ 0.49,+ 0.67,+ 0.71,+ 0.99,+ 1,+ 0.74,+ 0.95,+ 0.75,+ 0.84,+ 0.67,+ 0.78,+ 0.81,+ 0.84,+ 0.92,+ 0.66,+ 0.67,+ 0.65,+ 0.78,+ 0.59,+ 0.63,+ 0.61,+ 0.54,+ 0.6,+ 0.68,+ 0.59,+ 0.38,+ 0.79,+ 0.82,+ 0.86,+ 0.58,+ 0.47,+ 0.43,+ 0.62,+ 0.91,+ 0.61,+ 0.63,+ 0.59,+ 0.61,+ 0.71,+ 0.62,+ 0.65,+ 0.81+ ]+ },+ {+ "id": "corporate-confident",+ "category": "Corporate",+ "prompt": "Confident steady rhythm with bright plucks and soft pads, professional and motivating, instrumental background music.",+ "tags": [+ "corporate",+ "confident",+ "plucks",+ "pads",+ "professional",+ "motivating"+ ],+ "file": "/cut-stock-music/corporate-confident.mp3",+ "duration": 30.8,+ "peaks": [+ 0.71,+ 0.57,+ 0.7,+ 0.79,+ 0.79,+ 0.65,+ 0.71,+ 0.82,+ 0.9,+ 0.63,+ 0.78,+ 0.75,+ 0.72,+ 0.59,+ 0.72,+ 0.76,+ 0.8,+ 0.66,+ 0.64,+ 0.81,+ 0.88,+ 0.85,+ 0.72,+ 0.76,+ 0.83,+ 0.81,+ 0.84,+ 0.88,+ 0.82,+ 0.77,+ 0.75,+ 0.8,+ 0.9,+ 0.91,+ 0.81,+ 0.83,+ 0.91,+ 0.99,+ 1,+ 0.78,+ 0.74,+ 0.8,+ 0.98,+ 0.92,+ 0.81,+ 0.75,+ 0.87,+ 0.84,+ 0.85,+ 0.74,+ 0.8,+ 0.93,+ 0.74,+ 0.36,+ 0.06,+ 0.03+ ]+ },+ {+ "id": "piano-gentle-solo",+ "category": "Piano",+ "prompt": "Gentle solo piano, tender and reflective, instrumental background music.",+ "tags": [+ "piano",+ "solo",+ "gentle",+ "tender",+ "reflective",+ "calm"+ ],+ "file": "/cut-stock-music/piano-gentle-solo.mp3",+ "duration": 29.6,+ "peaks": [+ 0.89,+ 0.52,+ 0.51,+ 0.54,+ 0.17,+ 0.45,+ 1,+ 0.98,+ 0.98,+ 0.91,+ 0.72,+ 0.72,+ 0.88,+ 0.68,+ 0.52,+ 0.64,+ 0.64,+ 0.43,+ 0.43,+ 0.33,+ 0.29,+ 0.66,+ 0.92,+ 0.48,+ 0.58,+ 0.87,+ 0.66,+ 0.56,+ 0.58,+ 0.7,+ 0.43,+ 0.4,+ 0.3,+ 0.46,+ 0.16,+ 0.32,+ 0.53,+ 0.54,+ 0.39,+ 0.5,+ 0.5,+ 0.45,+ 0.53,+ 0.35,+ 0.45,+ 0.3,+ 0.26,+ 0.28,+ 0.23,+ 0.18,+ 0.08,+ 0.05,+ 0.03,+ 0.02,+ 0.02,+ 0.02+ ]+ },+ {+ "id": "piano-emotional",+ "category": "Piano",+ "prompt": "Expressive emotional piano with soft dynamics, moving and heartfelt, instrumental background music.",+ "tags": [+ "piano",+ "emotional",+ "expressive",+ "heartfelt",+ "moving",+ "soft"+ ],+ "file": "/cut-stock-music/piano-emotional.mp3",+ "duration": 30.8,+ "peaks": [+ 0.55,+ 0.48,+ 0.48,+ 0.56,+ 0.68,+ 0.96,+ 0.59,+ 0.53,+ 0.36,+ 0.32,+ 0.67,+ 0.48,+ 1,+ 0.56,+ 0.49,+ 0.5,+ 0.33,+ 0.83,+ 1,+ 0.98,+ 0.49,+ 0.4,+ 0.52,+ 0.29,+ 0.69,+ 1,+ 0.69,+ 0.48,+ 0.44,+ 0.67,+ 0.71,+ 0.66,+ 0.94,+ 0.5,+ 0.57,+ 0.45,+ 0.37,+ 0.63,+ 0.63,+ 0.94,+ 0.53,+ 0.34,+ 0.61,+ 0.4,+ 0.69,+ 0.95,+ 0.65,+ 0.4,+ 0.36,+ 0.51,+ 0.83,+ 0.77,+ 0.81,+ 0.54,+ 0.55,+ 0.49+ ]+ },+ {+ "id": "piano-bright-flowing",+ "category": "Piano",+ "prompt": "Bright flowing piano melody, hopeful and warm, instrumental background music.",+ "tags": [+ "piano",+ "bright",+ "flowing",+ "hopeful",+ "warm",+ "melodic"+ ],+ "file": "/cut-stock-music/piano-bright-flowing.mp3",+ "duration": 30.8,+ "peaks": [+ 0.56,+ 0.49,+ 0.65,+ 0.6,+ 0.59,+ 0.59,+ 0.7,+ 0.57,+ 0.55,+ 0.67,+ 0.65,+ 0.67,+ 0.65,+ 0.64,+ 0.58,+ 0.76,+ 0.55,+ 0.6,+ 0.66,+ 0.57,+ 0.64,+ 0.59,+ 0.64,+ 0.57,+ 0.55,+ 0.64,+ 0.7,+ 0.68,+ 0.56,+ 0.68,+ 0.67,+ 0.51,+ 0.54,+ 0.67,+ 1,+ 0.79,+ 0.65,+ 1,+ 0.75,+ 0.71,+ 0.68,+ 0.68,+ 0.71,+ 0.68,+ 0.63,+ 0.69,+ 0.73,+ 0.77,+ 0.75,+ 0.85,+ 0.58,+ 0.78,+ 0.68,+ 0.72,+ 0.96,+ 0.75+ ]+ },+ {+ "id": "piano-quiet-nocturne",+ "category": "Piano",+ "prompt": "Slow contemplative piano in a quiet mood, calm and intimate, instrumental background music.",+ "tags": [+ "piano",+ "slow",+ "contemplative",+ "quiet",+ "calm",+ "intimate"+ ],+ "file": "/cut-stock-music/piano-quiet-nocturne.mp3",+ "duration": 28.2,+ "peaks": [+ 0.38,+ 0.26,+ 0.16,+ 0.12,+ 0.75,+ 1,+ 0.61,+ 0.53,+ 0.43,+ 0.59,+ 0.26,+ 0.13,+ 0.81,+ 0.98,+ 0.91,+ 0.99,+ 0.75,+ 0.84,+ 0.49,+ 1,+ 0.45,+ 0.63,+ 0.44,+ 0.58,+ 0.38,+ 0.61,+ 0.18,+ 0.36,+ 0.29,+ 0.15,+ 0.52,+ 0.51,+ 0.26,+ 0.16,+ 0.12,+ 0.51,+ 0.37,+ 0.16,+ 0.37,+ 0.53,+ 0.79,+ 0.72,+ 0.35,+ 0.57,+ 0.41,+ 0.35,+ 0.2,+ 0.1,+ 0.11,+ 0.07,+ 0.06,+ 0.05,+ 0.04,+ 0.03,+ 0.02,+ 0.02+ ]+ }+];