INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Controlling DSP with GPIO  (Read 1985 times)

GaryB

  • World Citizen
  • ***
  • Posts: 121
Controlling DSP with GPIO
« on: October 22, 2019, 06:31:44 am »

I am building an amplified speaker using a Pi4 and an Stereo IQ audio HAT.
What I'd like to do is to be able to switch the Audio between Mono & Stereo in JRiver and and also change the EQ ( roll off some of the bass when in Mono). Physically this would be done by using a switch on the Back of the Main speaker which then allow a second speaker to be fed by the Right hand channel or Dual Mono.

Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4271
Re: Controlling DSP with GPIO
« Reply #1 on: October 22, 2019, 07:19:49 am »

The requirement to flip between mono and stereo probably means you have to create 2 zones (one for mono, one for stereo) and then write something (e.g. in python) which makes the following MCWS calls in response to the relevant gpio pin state change

- get the current playlist (MCWS/v1/Playback/Playlist)
- stop playback (MCWS/v1/Playback/Stop)
- change active zone (MCWS/v1/Playback/SetZone)
- set the playlist (MCWS/v1/Playback/SetPlaylist)
- start playback (MCWS/v1/Playback/Play)
Logged
Pages: [1]   Go Up