The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


PeppySpectrum with MoOde
#1
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.
Reply


Messages In This Thread
PeppySpectrum with MoOde - by franktw956 - 10-27-2022, 07:25 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-27-2022, 12:13 PM
RE: PeppySpectrum with MoOde - by franktw956 - 10-27-2022, 01:18 PM
RE: PeppySpectrum with MoOde - by Nutul - 10-27-2022, 02:33 PM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-27-2022, 03:22 PM
RE: PeppySpectrum with MoOde - by franktw956 - 10-28-2022, 06:37 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-27-2022, 02:07 PM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-27-2022, 03:29 PM
RE: PeppySpectrum with MoOde - by franktw956 - 10-28-2022, 03:02 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-28-2022, 02:29 PM
RE: PeppySpectrum with MoOde - by franktw956 - 10-29-2022, 12:46 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-29-2022, 12:26 PM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-29-2022, 03:18 PM
RE: PeppySpectrum with MoOde - by franktw956 - 10-30-2022, 02:46 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-30-2022, 11:24 AM
RE: PeppySpectrum with MoOde - by franktw956 - 10-31-2022, 07:22 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 10-31-2022, 10:52 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-01-2022, 07:38 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-01-2022, 11:50 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-02-2022, 12:40 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-02-2022, 01:19 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-02-2022, 04:38 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-02-2022, 10:16 AM
RE: PeppySpectrum with MoOde - by Nutul - 11-02-2022, 11:47 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 12:14 AM
RE: PeppySpectrum with MoOde - by Nutul - 11-03-2022, 12:34 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 07:01 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-03-2022, 11:33 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 12:32 PM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 12:05 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-03-2022, 12:27 AM
RE: PeppySpectrum with MoOde - by the_bertrum - 11-03-2022, 08:01 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 08:34 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-05-2022, 06:03 AM
RE: PeppySpectrum with MoOde - by the_bertrum - 11-07-2022, 07:39 AM
RE: PeppySpectrum with MoOde - by the_bertrum - 11-03-2022, 08:46 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-03-2022, 01:46 PM
RE: PeppySpectrum with MoOde - by franktw956 - 11-03-2022, 11:54 PM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-04-2022, 12:01 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-04-2022, 12:26 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-04-2022, 01:22 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-04-2022, 03:39 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-04-2022, 10:24 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-04-2022, 11:13 AM
RE: PeppySpectrum with MoOde - by Tim Curtis - 11-04-2022, 11:21 AM
RE: PeppySpectrum with MoOde - by franktw956 - 11-05-2022, 12:38 AM

Forum Jump: