set("server.telnet", true)
set("log.file.path","/tmp/<script>.log")
set("log.stdout", true)
set("log.level",3)




volume = interactive.float("volume1", 1.0)

morning = amplify(volume, mksafe(single("1.mp3")))

# Joined volumes
afternoon = amplify(fun () -> 1.0 - volume(),  mksafe(single("2.mp3")))

radio = add([morning, afternoon])
output.pulseaudio(radio)

Изменить пасту