You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

musix

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

musix

Music library

0.1.2
PyPI
Maintainers
1

musix

Python music player for esoteric music formats

Example that plays music using pyaudio;

import sys
import pyaudio
import musix

stream = pyaudio.PyAudio().open(
        format=pyaudio.paInt16,
        channels=2,
        rate=44100,
        output=True)

musix.init()
player = musix.load(sys.argv[1])

def print_meta(what):
    for name in what:
        val = player.get_meta(name)
        print(f"{name} = {val}\n")
player.on_meta(print_meta)

while True:
    samples = player.render(4096)
    stream.write(samples)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts