style: Pint 포맷팅 적용

This commit is contained in:
김보곤
2026-02-25 11:45:01 +09:00
parent 68b1622a4e
commit 9a7c548246
199 changed files with 1420 additions and 1083 deletions

View File

@@ -264,14 +264,14 @@ public function generateAmbient(string $mood, int $durationSec, string $savePath
foreach ($chords as $i => $freq) {
$vol = 0.06 - ($i * 0.01); // 각 음의 볼륨을 점차 줄여 자연스럽게
$modFreq = 0.08 + ($i * 0.03); // 각 음의 떨림 속도를 다르게
$expr .= ($expr ? ' + ' : '') . "{$vol}*sin({$freq}*2*PI*t)*((0.5+0.5*sin({$modFreq}*2*PI*t)))";
$expr .= ($expr ? ' + ' : '')."{$vol}*sin({$freq}*2*PI*t)*((0.5+0.5*sin({$modFreq}*2*PI*t)))";
}
// 페이드인(3초) + 페이드아웃(3초) 추가
$cmd = sprintf(
'ffmpeg -y -f lavfi -i "aevalsrc=%s:s=44100:d=%d" '
. '-af "lowpass=f=1500,highpass=f=80,afade=t=in:d=3,afade=t=out:st=%d:d=3" '
. '-c:a libmp3lame -q:a 4 %s 2>&1',
.'-af "lowpass=f=1500,highpass=f=80,afade=t=in:d=3,afade=t=out:st=%d:d=3" '
.'-c:a libmp3lame -q:a 4 %s 2>&1',
escapeshellarg($expr),
$durationSec + 2, // 페이드아웃 여유분
max(0, $durationSec - 2),