feat: fix target audio for all 96 levels and improve layout density
- Enhance targetAudio.js with envelope (ADSR), LFO modulation, effects (delay/reverb/distortion), and retrigger patterns for rhythmic sounds - Fill in target audio configs for 87 levels (worlds 3-12) that had empty build arrays, making the "Objetivo" preview button functional everywhere - Increase base sizes for modules, sidebar, ports, knobs, and typography so the UI feels less empty at 100% zoom Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,13 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 700, y: 120, params: { volume: -6 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 2 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sine', frequency: 55 } },
|
||||
],
|
||||
envelope: { attack: 0, decay: 0.25, sustain: 0, release: 0.1 },
|
||||
duration: 2,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -84,7 +90,14 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 700, y: 120, params: { volume: -10 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 2 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'noise', params: { type: 'white' } },
|
||||
],
|
||||
filter: { type: 'highpass', frequency: 7000, Q: 2 },
|
||||
envelope: { attack: 0, decay: 0.08, sustain: 0, release: 0 },
|
||||
duration: 2,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -135,7 +148,15 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 800, y: 140, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 2 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sine', frequency: 200 } },
|
||||
{ type: 'noise', params: { type: 'white' } },
|
||||
],
|
||||
filter: { type: 'highpass', frequency: 3000, Q: 1.5 },
|
||||
envelope: { attack: 0, decay: 0.12, sustain: 0, release: 0.05 },
|
||||
duration: 2,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -194,7 +215,19 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 900, y: 140, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 5 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 110, detune: -8 } },
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 110, detune: 8 } },
|
||||
],
|
||||
filter: { type: 'lowpass', frequency: 1500, Q: 3 },
|
||||
envelope: { attack: 1, decay: 0.4, sustain: 0.7, release: 2 },
|
||||
lfo: { frequency: 0.6, type: 'sine', min: 600, max: 3500, target: 'frequency' },
|
||||
effects: [
|
||||
{ type: 'reverb', decay: 5.5, wet: 0.6 },
|
||||
],
|
||||
duration: 5,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -250,7 +283,16 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 800, y: 120, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 4 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 55, detune: -9 } },
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 55, detune: 9 } },
|
||||
],
|
||||
filter: { type: 'lowpass', frequency: 400, Q: 8 },
|
||||
lfo: { frequency: 0.7, type: 'sine', min: 200, max: 2000, target: 'frequency' },
|
||||
envelope: { attack: 0.05, decay: 0.2, sustain: 0.6, release: 0.3 },
|
||||
duration: 4,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -303,7 +345,13 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 700, y: 120, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 2 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'square', frequency: 440 } },
|
||||
],
|
||||
envelope: { attack: 0.01, decay: 0.15, sustain: 0.05, release: 0.1 },
|
||||
duration: 2,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -368,7 +416,19 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 900, y: 140, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 4 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 330 } },
|
||||
],
|
||||
filter: { type: 'lowpass', frequency: 2000, Q: 4 },
|
||||
envelope: { attack: 0.005, decay: 0.15, sustain: 0.1, release: 0.08 },
|
||||
lfo: { frequency: 1.5, type: 'sine', min: 1000, max: 4000, target: 'frequency' },
|
||||
effects: [
|
||||
{ type: 'delay', time: 0.25, feedback: 0.35, wet: 0.45 },
|
||||
],
|
||||
triggerPattern: { interval: 0.25, count: 16 },
|
||||
duration: 4,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
@@ -425,7 +485,22 @@ export const WORLD_6 = {
|
||||
preplacedModules: [
|
||||
{ id: 1, type: 'output', x: 950, y: 160, params: { volume: -8 }, locked: true },
|
||||
],
|
||||
target: { build: [], duration: 5 },
|
||||
target: {
|
||||
build: [
|
||||
{ type: 'oscillator', params: { waveform: 'sawtooth', frequency: 165, detune: -6 } },
|
||||
{ type: 'oscillator', params: { waveform: 'square', frequency: 165, detune: 6 } },
|
||||
{ type: 'noise', params: { type: 'white' } },
|
||||
],
|
||||
filter: { type: 'lowpass', frequency: 1800, Q: 6 },
|
||||
envelope: { attack: 0.2, decay: 0.4, sustain: 0.5, release: 0.8 },
|
||||
lfo: { frequency: 2, type: 'sine', min: 0.3, max: 1.2, target: 'amplitude' },
|
||||
effects: [
|
||||
{ type: 'distortion', amount: 2 },
|
||||
{ type: 'delay', time: 0.3, feedback: 0.4, wet: 0.4 },
|
||||
{ type: 'reverb', decay: 3.5, wet: 0.45 },
|
||||
],
|
||||
duration: 5,
|
||||
},
|
||||
checks: [
|
||||
{
|
||||
star: 1,
|
||||
|
||||
Reference in New Issue
Block a user