10-27-2022, 07:25 AM
Hi,
I'd like to share my learning, and looking for help.
0. System
MoOde 8.2.2
Rpi 4
IQAudio DAC PRO
1920*550 LCD panel
1. MoOde Configuration Settings
Audio --> ALSA Options --> Output mode --> Default (plughw)
Audio --> ALSA Options --> Loopback --> ON
2. Edit _sndaloop.conf
sudo nano /etc/alsa/conf.d/_sndaloop.conf
pcm.!_audioout {
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm "plughw:0,0" }
b { channels 2 pcm "alsa_peppy" }
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
}
pcm.alsa_peppy {
type meter
slave.pcm "hw:Loopback,1,0"
scopes.0 peppyalsa
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/var/tmp/myfifo"
meter_max 100
meter_show 0
spectrum "/var/tmp/myfifosa"
spectrum_max 100
spectrum_size 30
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
3. Install peppyalsa
https://github.com/project-owner/peppyal...stallation
4. Please reboot system
5. Get PeppySpectrum
git clone https://github.com/project-owner/PeppySpectrum.git
6. Configure PeppySpectrum
sudo nano /home/pi/PeppySpectrum/config.txt
[current]
spectrum =
screen.size = large
screen.width = 800
screen.height = 480
update.period = 10
max.value = 100
pipe.name = /var/tmp/myfifosa
size = 30
update.ui.interval = 0.033
frame.rate = 30
depth = 32
exit.on.touch = True
stop.display.on.touch = False
use.logging = False
use.test.data =
[sdl.env]
framebuffer.device = /dev/fb1
mouse.device = /dev/input/touchscreen
mouse.driver = TSLIB
mouse.enabled = True
video.driver = dummy
video.display = :0
double.buffer = True
no.frame = True
7. Run PeppySpectrum
cd /home/pi/PeppySpectrum && export DISPLAY=:0 && python3 spectrum.py
8. Demo video clip
https://youtu.be/2xXw7OspsEw
9. help needed
i. currently I'm using the mpc status to start/stop PeppySpectrum, this is ok for Radio / File / UPNP, but not working for BlueTooth / Spotify / Airplay, may I know how to detect BlueTooth / Spotify / Airplay is activating ?
ii. I've tried to use a transparent picture (png format) for the PeppySpectrum's background, but it is still black overlay the original MoOde display items, so now I set Pure Black as the Preferences without Cover backdrop, then the screen looks a bit clean, but I love Cover backdrop and hope the PeppySpectrum's background picture can be really transparency, so that screen will be wonderful, may I know is it possible ? and how ?
Thank you.
I'd like to share my learning, and looking for help.
0. System
MoOde 8.2.2
Rpi 4
IQAudio DAC PRO
1920*550 LCD panel
1. MoOde Configuration Settings
Audio --> ALSA Options --> Output mode --> Default (plughw)
Audio --> ALSA Options --> Loopback --> ON
2. Edit _sndaloop.conf
sudo nano /etc/alsa/conf.d/_sndaloop.conf
pcm.!_audioout {
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm "plughw:0,0" }
b { channels 2 pcm "alsa_peppy" }
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
}
pcm.alsa_peppy {
type meter
slave.pcm "hw:Loopback,1,0"
scopes.0 peppyalsa
}
pcm_scope.peppyalsa {
type peppyalsa
decay_ms 400
meter "/var/tmp/myfifo"
meter_max 100
meter_show 0
spectrum "/var/tmp/myfifosa"
spectrum_max 100
spectrum_size 30
}
pcm_scope_type.peppyalsa {
lib /usr/local/lib/libpeppyalsa.so
}
3. Install peppyalsa
https://github.com/project-owner/peppyal...stallation
4. Please reboot system
5. Get PeppySpectrum
git clone https://github.com/project-owner/PeppySpectrum.git
6. Configure PeppySpectrum
sudo nano /home/pi/PeppySpectrum/config.txt
[current]
spectrum =
screen.size = large
screen.width = 800
screen.height = 480
update.period = 10
max.value = 100
pipe.name = /var/tmp/myfifosa
size = 30
update.ui.interval = 0.033
frame.rate = 30
depth = 32
exit.on.touch = True
stop.display.on.touch = False
use.logging = False
use.test.data =
[sdl.env]
framebuffer.device = /dev/fb1
mouse.device = /dev/input/touchscreen
mouse.driver = TSLIB
mouse.enabled = True
video.driver = dummy
video.display = :0
double.buffer = True
no.frame = True
7. Run PeppySpectrum
cd /home/pi/PeppySpectrum && export DISPLAY=:0 && python3 spectrum.py
8. Demo video clip
https://youtu.be/2xXw7OspsEw
9. help needed
i. currently I'm using the mpc status to start/stop PeppySpectrum, this is ok for Radio / File / UPNP, but not working for BlueTooth / Spotify / Airplay, may I know how to detect BlueTooth / Spotify / Airplay is activating ?
ii. I've tried to use a transparent picture (png format) for the PeppySpectrum's background, but it is still black overlay the original MoOde display items, so now I set Pure Black as the Preferences without Cover backdrop, then the screen looks a bit clean, but I love Cover backdrop and hope the PeppySpectrum's background picture can be really transparency, so that screen will be wonderful, may I know is it possible ? and how ?
Thank you.