mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Revert fix
This commit is contained in:
@@ -58,8 +58,6 @@ s = rotate(id="randomizer", weights=[20, 1], [s4, jingles])
|
|||||||
# Set up an interactive harbor for controlling the stream
|
# Set up an interactive harbor for controlling the stream
|
||||||
interactive.harbor(port = 9999)
|
interactive.harbor(port = 9999)
|
||||||
|
|
||||||
s = crossfade(fade_out=3., fade_in=3., duration=5., fallback(id="switcher", track_sensitive=false, [requests_queue, s]))
|
|
||||||
|
|
||||||
# Set up interactive controls for bass boost
|
# Set up interactive controls for bass boost
|
||||||
f = interactive.float("f", description="Frequency", min=0., max=1000., unit="Hz", 200.)
|
f = interactive.float("f", description="Frequency", min=0., max=1000., unit="Hz", 200.)
|
||||||
g = interactive.float("g", description="Gain", min=0., max=20., unit="dB", 8.)
|
g = interactive.float("g", description="Gain", min=0., max=20., unit="dB", 8.)
|
||||||
@@ -68,7 +66,7 @@ s = add([s, b])
|
|||||||
|
|
||||||
# Set up interactive control for main volume
|
# Set up interactive control for main volume
|
||||||
a = interactive.float("main_volume", min=0., max=20., 1.)
|
a = interactive.float("main_volume", min=0., max=20., 1.)
|
||||||
s = compress.multiband.interactive(bands=8, s)
|
s = compress.multiband.interactive(bands=3, s)
|
||||||
|
|
||||||
# Apply audio processing effects
|
# Apply audio processing effects
|
||||||
s = nrj(normalize(s))
|
s = nrj(normalize(s))
|
||||||
@@ -77,9 +75,6 @@ s = amplify(a, s)
|
|||||||
# Skip blank sections in the stream
|
# Skip blank sections in the stream
|
||||||
s = blank.skip(max_blank=2., s)
|
s = blank.skip(max_blank=2., s)
|
||||||
|
|
||||||
#w = interactive.float("wetness", min=0., max=1., 1.)
|
|
||||||
#s = dry_wet(w, s, s2)
|
|
||||||
|
|
||||||
# Configure logging settings
|
# Configure logging settings
|
||||||
log_to_stdout = true
|
log_to_stdout = true
|
||||||
log_to_file = true
|
log_to_file = true
|
||||||
@@ -94,8 +89,12 @@ set("log.file.path", logpath)
|
|||||||
|
|
||||||
# Set up emergency fallback track
|
# Set up emergency fallback track
|
||||||
emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3")
|
emergency = single("/home/pi/RetroPie/mp3/Youtube/Dr. Peacock - Trip to Ireland [GvrvQTUbUcA].mp3")
|
||||||
|
|
||||||
# Create a fallback stream with the main stream and emergency track
|
# Create a fallback stream with the main stream and emergency track
|
||||||
|
cross_s = crossfade(fade_out=3., fade_in=3., duration=5., fallback(id="switcher", track_sensitive=false, [requests_queue, s]))
|
||||||
radio = fallback(id="switcher2", track_sensitive=false, [cross_s, emergency])
|
radio = fallback(id="switcher2", track_sensitive=false, [cross_s, emergency])
|
||||||
|
# Set up an interactive control for skipping tracks
|
||||||
|
p = interactive.bool("r1", false)
|
||||||
|
|
||||||
# Function to process the request queue and skip the current track if requested
|
# Function to process the request queue and skip the current track if requested
|
||||||
def check_skip()
|
def check_skip()
|
||||||
@@ -109,8 +108,6 @@ end
|
|||||||
# Run the queue processing function every 60 seconds
|
# Run the queue processing function every 60 seconds
|
||||||
thread.run(every=60., queue_processing)
|
thread.run(every=60., queue_processing)
|
||||||
|
|
||||||
# Set up an interactive control for skipping tracks
|
|
||||||
p = interactive.bool("Skip track", false)
|
|
||||||
|
|
||||||
# Run the check_skip function every 5 seconds
|
# Run the check_skip function every 5 seconds
|
||||||
thread.run(every=5., check_skip)
|
thread.run(every=5., check_skip)
|
||||||
@@ -127,8 +124,8 @@ radio.on_metadata(handle_metadata)
|
|||||||
interactive.persistent("script.params")
|
interactive.persistent("script.params")
|
||||||
|
|
||||||
# Configure output formats and destinations
|
# Configure output formats and destinations
|
||||||
output.file.hls("/tmp/hls", [("mp3-low", %mp3(bitrate=96)), ("mp3-hi", %mp3(bitrate=320))], radio)
|
output.file.hls("/tmp/hls", [("mp3-low", %mp3(bitrate=96)), ("mp3-hi", %mp3(bitrate=160))], radio)
|
||||||
output.icecast(%mp3.abr(internal_quality = 0, bitrate=320, min_bitrate=192), host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="mp3-stream", radio)
|
output.icecast(%mp3, host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="mp3-stream", radio)
|
||||||
# Uncomment the following lines to enable additional output formats
|
# Uncomment the following lines to enable additional output formats
|
||||||
# output.icecast(%opus, host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="opus-stream", radio)
|
# output.icecast(%opus, host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="opus-stream", radio)
|
||||||
# output.icecast(%ogg, host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="ogg-stream", radio)
|
# output.icecast(%ogg, host="retropie", port=8000, password=credentials.password, icy_metadata="true", mount="ogg-stream", radio)
|
||||||
|
|||||||
Reference in New Issue
Block a user