Skip to content

A C++ application that loopbacks the playback output to create a visualiser with RGB strips.

License

Notifications You must be signed in to change notification settings

mcrrobinson/RGB-audio-peak-visualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGB Audio Peak Visuliser

A python application that loopbacks the playback output to create a visualiser with RGB strips.

Requirements

- Host Computer

- Listener Computer (Raspberry Pi/Audino)

https://www.raspberrypi.org/products/

- Codeable RGB strip

- Python-3

https://www.python.org/ftp/python/3.8.3/python-3.8.3.exe

Usage

Host

1. Clone the repo or download as zip and extract the files.

git clone https://github.com/mcrrobinson/RGB-audio-peak-visualiser.git

2. Install depdencenies.

pip install -r requirements.txt

3. Adjust the configuration as you wish.

// Regards the output stream.
stream:  
// Recorder information.
defaultframes: 512

// Determined by the output Hz by your chosen sample rate.
CHUNK: 2048

...

4. Open a terminal and run the application.

Windows
python main.py
Linux
python ./main.py

5. If you did everything correctly you should see the following.

RPC Stream Information:
    RPC Stream State: Active
    Host IP Address: *your_ip_address*
    Loopback Device: Speakers (USB Audio CODEC )

6. Type in Windows Firewall

7. Goto Advanced Settings

8. Create new rule.

9. Change to port.

10. Make sure TCP is highlighted and change to Specific Local Ports, input the port enabled in the configuration. The default is "5556".

11. Then keep clicking next until the diaglog box is closed. Time to setup the client.

Client

Raspberry Pi Installation

1. SFTP into the Raspberry Pi and copy the following files:

listener.py
listener.yaml
requirements.txt

2. Install depdencenies.

pip install -r requirements.txt

3. Adjust the configuration as you wish.

// Regards the output stream.
stream:  
// Recorder information.
defaultframes: 512

// Determined by the output Hz by your chosen sample rate.
CHUNK: 2048

...

4. Open a terminal and run the application.

Windows
python main.py
Linux
python ./main.py

Releases

Download Host Zip

Download Client Zip

FAQ

1. I setup everything correctly but I am not receiving anything on the Raspberry Pi, why?

Make sure you have tested to see if you can ping the host with the port with the command below, change the IP and Port to what you are using in the configuration files.

ping *host_ip* -p *host_port*

If you are unable to ping the client, modify your new rule to allow "Any" protocol on that port to see if that improves it.

Plans

I plan to release a Audino variation of this software.

About

A C++ application that loopbacks the playback output to create a visualiser with RGB strips.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published