https://github.com/0xfourzerofour/oscli
Real time audio visualisation using WGPU
https://github.com/0xfourzerofour/oscli
audio audio-processing audio-visualizer cpal wgpu wgpu-rs
Last synced: 2 months ago
JSON representation
Real time audio visualisation using WGPU
- Host: GitHub
- URL: https://github.com/0xfourzerofour/oscli
- Owner: 0xfourzerofour
- Created: 2022-10-06T20:46:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-10-17T03:05:07.000Z (7 months ago)
- Last Synced: 2025-10-18T06:39:38.697Z (7 months ago)
- Topics: audio, audio-processing, audio-visualizer, cpal, wgpu, wgpu-rs
- Language: Rust
- Homepage:
- Size: 38.2 MB
- Stars: 24
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OSCLI - Real time audio visualisation using WGPU
The implementation is quite simple right now, however I will be planning on continuing the project to visualise the frequency spectrum as well.
The current implementation only works with mp3 files using [minimp3-rs](https://github.com/germangb/minimp3-rs)
## Instructions
```
cargo run --release
```
drag your mp3 file into the window.
## controls
- spacebar - play
- p - pause
- up arrow - skip 1 second
## future work
- Allow WAV files using hound
- Make the vertex buffer much leaner by interpolating the ring-buffer instead of just passing raw PCM data.
- use FFT to derive the freqency domain
- once FFT is implemented, render the audio in 3D space
- zoom functionality
## Demo

https://user-images.githubusercontent.com/36560907/195976444-5775e6ee-2acd-49da-ad6f-1010f9fe631b.mov