Simple implementation of a Metronome for Jamulus.
The script connects as a Jamulus Client to a Jamulus Server. It is not able to handle any audio, but just replays audio packets with a 'click sound', that have been captured before. To save network bandwidth, the script connects to a Server only when some user has connected and disconnects when all users have left.
The timing to send audio packets is lazy, as the script just sends one packet whenever it has received one.
The script can be run anywhere, but preferrably on the same host as the Server it connects to.
./metronome.py --server <jamulus-server>
the client reacts to chat messages in Jamulus:
on
: turn metronome onoff
: turn metronome off- numbers: set metronome bpm.
The capture script writes all non-muted audio packets to a file with base64 encoding.
./audio_capture.py --server <jamulus-server> --file <capture-file>
To record a short sample, a real Jamulus Client needs to be connected to the same Server. That Client should then be unmuted for a short time while it is playing the sample. Contributions for making this process easier are very welcome ;)
The script makes use of the Jamulus python library