1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 02:51:08 +01:00

noise-waves

This commit is contained in:
2024-09-18 09:20:26 +02:00
parent fef3a1fbff
commit c246310cab
3 changed files with 16 additions and 0 deletions

14
packages/noise-waves.nix Normal file
View File

@@ -0,0 +1,14 @@
{ sox, mpv, writers, coreutils }:
# ref https://askubuntu.com/a/789472
writers.writeDashBin "noise-waves" ''
file="/tmp/noise.wav"
trap clean EXIT
clean() {
rm "$file"
}
${coreutils}/bin/mkfifo "$file"
${sox}/bin/sox -n "$file" synth brownnoise synth pinknoise mix synth sine amod 0.3 10 &
${mpv}/bin/mpv "$file"
''