Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -34,15 +34,14 @@ const EFFECTS = {
|
|
| 34 |
lofi: {
|
| 35 |
name: "LoFi Hip Hop",
|
| 36 |
description: "Vintage warmth, breathing bass, vinyl crackle feel",
|
| 37 |
-
// β
FIXED: Simplified, removed problematic filters
|
| 38 |
command: `-af "asetrate=44100*0.90,aresample=44100,bass=g=5:f=85:width_type=h:width=100,treble=g=-3:f=8000,equalizer=f=200:t=q:width=1.5:g=-2,equalizer=f=1000:t=q:width=2:g=2,acompressor=threshold=-20dB:ratio=3:attack=10:release=120:makeup=3,vibrato=f=0.2:d=0.4,highpass=f=70,lowpass=f=4500,volume=1.3" -ar 44100 -b:a 192k`
|
| 39 |
},
|
| 40 |
|
| 41 |
slowed_reverb: {
|
| 42 |
name: "Slowed + Reverb",
|
| 43 |
description: "Perfect slow tempo, cathedral reverb, dreamy space",
|
| 44 |
-
// β
|
| 45 |
-
command: `-af "atempo=0.
|
| 46 |
},
|
| 47 |
|
| 48 |
nightcore: {
|
|
@@ -66,22 +65,18 @@ const EFFECTS = {
|
|
| 66 |
bass_boosted: {
|
| 67 |
name: "Bass Boosted",
|
| 68 |
description: "Dynamic waves: slow β mute β build β HIGH β repeat",
|
| 69 |
-
// β
WAVE PATTERN: Creates repeating cycles throughout the song
|
| 70 |
-
// Pattern: 15s slow β 3s mute β 8s building β 5s HIGH β repeat
|
| 71 |
command: `-af "bass=g=18:f=55:width_type=o:width=1.5,bass=g=14:f=95:width_type=h:width=90,equalizer=f=35:t=q:width=1.2:g=12,equalizer=f=75:t=q:width=1.5:g=10,equalizer=f=140:t=q:width=2:g=8,equalizer=f=500:t=q:width=2:g=-3,equalizer=f=4000:t=q:width=4:g=-6,volume='mod(t,31):if(lt(MOD,15),0.4,if(lt(MOD,18),0.05,if(lt(MOD,26),0.5+0.0625*(MOD-18),1.5)))':eval=frame,acompressor=threshold=-22dB:ratio=8:attack=3:release=40:makeup=8,tremolo=f=0.15:d=0.3,highpass=f=28,alimiter=limit=0.95:attack=5:release=50" -ar 44100 -b:a 192k`
|
| 72 |
},
|
| 73 |
|
| 74 |
ambient: {
|
| 75 |
name: "Ambient Chill",
|
| 76 |
description: "Ethereal space, long reverb tails, meditation",
|
| 77 |
-
// β
FIXED: Increased volume significantly, reduced excessive echoes
|
| 78 |
command: `-af "asetrate=44100*0.94,aresample=44100,aecho=0.6:0.8:200:0.4,aecho=0.5:0.7:400:0.3,chorus=0.6:0.85:50:0.4:0.25:2,aphaser=in_gain=0.5:out_gain=0.8:delay=3:decay=0.4:speed=0.2,equalizer=f=1500:t=q:width=3:g=-2,equalizer=f=6000:t=q:width=4:g=-4,acompressor=threshold=-18dB:ratio=2:attack=15:release=200:makeup=3,highpass=f=50,lowpass=f=9000,volume=1.5" -ar 44100 -b:a 192k`
|
| 79 |
},
|
| 80 |
|
| 81 |
tiktok_lofi: {
|
| 82 |
name: "TikTok LoFi",
|
| 83 |
description: "Viral TikTok style, punchy bass, modern lofi",
|
| 84 |
-
// β
FIXED: Simplified aphaser parameters, removed conflicting filters
|
| 85 |
command: `-af "asetrate=44100*0.88,aresample=44100,bass=g=6:f=90:width_type=h:width=100,treble=g=-4:f=7500,equalizer=f=200:t=q:width=1.8:g=-1.5,equalizer=f=800:t=q:width=2:g=2,equalizer=f=3000:t=q:width=3:g=-2,acompressor=threshold=-20dB:ratio=4:attack=5:release=100:makeup=4,vibrato=f=0.2:d=0.5,chorus=0.5:0.8:45:0.3:0.2:2,highpass=f=70,lowpass=f=5000,volume=1.35" -ar 44100 -b:a 192k`
|
| 86 |
},
|
| 87 |
|
|
|
|
| 34 |
lofi: {
|
| 35 |
name: "LoFi Hip Hop",
|
| 36 |
description: "Vintage warmth, breathing bass, vinyl crackle feel",
|
|
|
|
| 37 |
command: `-af "asetrate=44100*0.90,aresample=44100,bass=g=5:f=85:width_type=h:width=100,treble=g=-3:f=8000,equalizer=f=200:t=q:width=1.5:g=-2,equalizer=f=1000:t=q:width=2:g=2,acompressor=threshold=-20dB:ratio=3:attack=10:release=120:makeup=3,vibrato=f=0.2:d=0.4,highpass=f=70,lowpass=f=4500,volume=1.3" -ar 44100 -b:a 192k`
|
| 38 |
},
|
| 39 |
|
| 40 |
slowed_reverb: {
|
| 41 |
name: "Slowed + Reverb",
|
| 42 |
description: "Perfect slow tempo, cathedral reverb, dreamy space",
|
| 43 |
+
// β
BALANCED: 0.90 tempo + 0.95 pitch = Real slowed feel, not too slow
|
| 44 |
+
command: `-af "atempo=0.90,asetrate=44100*0.95,aresample=44100,bass=g=4:f=80:width_type=h:width=120,aecho=0.8:0.88:250:0.5,aecho=0.7:0.78:400:0.4,aecho=0.6:0.68:600:0.3,equalizer=f=100:t=q:width=2:g=3.5,equalizer=f=4000:t=q:width=4:g=-4,acompressor=threshold=-20dB:ratio=2:attack=15:release=200:makeup=2,highpass=f=50,lowpass=f=7000,volume=1.4" -ar 44100 -b:a 192k`
|
| 45 |
},
|
| 46 |
|
| 47 |
nightcore: {
|
|
|
|
| 65 |
bass_boosted: {
|
| 66 |
name: "Bass Boosted",
|
| 67 |
description: "Dynamic waves: slow β mute β build β HIGH β repeat",
|
|
|
|
|
|
|
| 68 |
command: `-af "bass=g=18:f=55:width_type=o:width=1.5,bass=g=14:f=95:width_type=h:width=90,equalizer=f=35:t=q:width=1.2:g=12,equalizer=f=75:t=q:width=1.5:g=10,equalizer=f=140:t=q:width=2:g=8,equalizer=f=500:t=q:width=2:g=-3,equalizer=f=4000:t=q:width=4:g=-6,volume='mod(t,31):if(lt(MOD,15),0.4,if(lt(MOD,18),0.05,if(lt(MOD,26),0.5+0.0625*(MOD-18),1.5)))':eval=frame,acompressor=threshold=-22dB:ratio=8:attack=3:release=40:makeup=8,tremolo=f=0.15:d=0.3,highpass=f=28,alimiter=limit=0.95:attack=5:release=50" -ar 44100 -b:a 192k`
|
| 69 |
},
|
| 70 |
|
| 71 |
ambient: {
|
| 72 |
name: "Ambient Chill",
|
| 73 |
description: "Ethereal space, long reverb tails, meditation",
|
|
|
|
| 74 |
command: `-af "asetrate=44100*0.94,aresample=44100,aecho=0.6:0.8:200:0.4,aecho=0.5:0.7:400:0.3,chorus=0.6:0.85:50:0.4:0.25:2,aphaser=in_gain=0.5:out_gain=0.8:delay=3:decay=0.4:speed=0.2,equalizer=f=1500:t=q:width=3:g=-2,equalizer=f=6000:t=q:width=4:g=-4,acompressor=threshold=-18dB:ratio=2:attack=15:release=200:makeup=3,highpass=f=50,lowpass=f=9000,volume=1.5" -ar 44100 -b:a 192k`
|
| 75 |
},
|
| 76 |
|
| 77 |
tiktok_lofi: {
|
| 78 |
name: "TikTok LoFi",
|
| 79 |
description: "Viral TikTok style, punchy bass, modern lofi",
|
|
|
|
| 80 |
command: `-af "asetrate=44100*0.88,aresample=44100,bass=g=6:f=90:width_type=h:width=100,treble=g=-4:f=7500,equalizer=f=200:t=q:width=1.8:g=-1.5,equalizer=f=800:t=q:width=2:g=2,equalizer=f=3000:t=q:width=3:g=-2,acompressor=threshold=-20dB:ratio=4:attack=5:release=100:makeup=4,vibrato=f=0.2:d=0.5,chorus=0.5:0.8:45:0.3:0.2:2,highpass=f=70,lowpass=f=5000,volume=1.35" -ar 44100 -b:a 192k`
|
| 81 |
},
|
| 82 |
|