diff --git a/conjurer_musician/radio_conjurer.liq b/conjurer_musician/radio_conjurer.liq index 77c4e42..143f3b8 100644 --- a/conjurer_musician/radio_conjurer.liq +++ b/conjurer_musician/radio_conjurer.liq @@ -76,15 +76,16 @@ mic = compress(threshold=0., ratio=2.,mic) mic = blank.strip(max_blank=10., min_noise=.1, threshold=-20., mic) s = add([s, mic]) - # Apply audio processing effects s = nrj(normalize(s)) s = amplify(a, s) - - # Skip blank sections in the stream s = blank.skip(max_blank=10., s) +#Manual audition override +source_control = interactive.bool("Source control", true) +s = switch(track_sensitive=false, [(source_control,mic),({true},s)]) + # Configure logging settings log_to_stdout = true log_to_file = true @@ -102,7 +103,6 @@ emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland radio = fallback(id="switcher2", track_sensitive=false, [s, emergency]) # Set up an interactive control for skipping tracks p = interactive.bool("Skip track", false) - def http_skip(~protocol, ~data, ~headers, uri)= radio.skip() http.response(code=200,data="Skipped")