Was wondering if anyone could give me some advise on how to make a waveform visual that reacts to a channel?
Basically I want to have radio stations that are playing music that you can switch during the game, but I wanted to also have a waveform of what is playing on that channel for the radio UI.
The radio stations I have that sorted and its working well in game, I've defined my new audio channel and set up a few stations with playlists
Code: Select all
init python:
renpy.music.register_channel("Radio", "radio", loop=None, stop_on_mute=True)
define example1_radio = ["audio/music/radio/ac/1.wav", "audio/music/radio/ac/2.wav", "audio/music/radio/ac/3.wav",]
define example2_radio = ["audio/music/radio/ac2/1.wav", "audio/music/radio/ac2/2.wav", "audio/music/radio/ac2/3.wav",]
Code: Select all
action Stop("Radio"), renpy.random.shuffle(example1_radio), Play("Radio", example1_radio)
Ive seen people take matlib stuff and pyAudio and make waveforms outside of renpy, but I can't figure out how to get that to embed into renpy
Any suggestions on how to make this work? is it even possible or is it just py in the sky wish