Skip to main content

mxs for Python

mxs is a sound engine whose synths are fitted to recordings of real instruments. This package plays it from Python: an engine live on a sound card or offline, mxs's synths and effects, and synths and effects read from files.

Install it with pip install mxs-audio and import it as mxs, or build it from mxs's python folder with pip install ., which needs a Rust toolchain.

import mxs

engine = mxs.Engine.offline(48000)
engine.note(0, "piano", note=60, vel=0.6)
left, right = engine.render(1.0)
  • mxs.Engine.offline(rate) renders when asked, and mxs.Engine.live(device) plays through the output device named, or the default one.
  • note(at, synth, **options) plays a note at at seconds; id= lets set, release and stop reach it later, chain= plays it into a chain from start_effects, and held=True makes it sound until released.
  • load_sample(path) and sample(at, sample, **options) play a sound file.
  • load_synth(path) and load_effect(path) register a synth or an effect from a file in the format mxs's graph module describes.
  • render(seconds) gives an offline engine's next seconds as two arrays of floats, and record_output(path) and stop_recording_output() write the output to a WAV file.
  • An error in mxs raises mxs.Error with mxs's message.

examples/marimba.py writes mx's marimba as a file, the way a Python program writes an instrument, and plays a phrase on it: run it as python examples/marimba.py to write phrase.wav, or with --live to hear it.

The tests run with python -m unittest discover tests after maturin develop.

Metadata

Release files for mxs-audio 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mxs-audio 0.7.4
File Size Uploaded Provenance Actions
mxs_audio-0.7.4.tar.gz 6.3 MB With provenance Details for mxs_audio-0.7.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mxs-audio 0.7.4
File Actions
mxs_audio-0.7.4-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for mxs_audio-0.7.4-cp39-abi3-win_amd64.whl
mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_x86_64.whl
mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_aarch64.whl
mxs_audio-0.7.4-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for mxs_audio-0.7.4-cp39-abi3-macosx_11_0_arm64.whl
mxs_audio-0.7.4-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for mxs_audio-0.7.4-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 45.8 MB

Release files / mxs_audio-0.7.4.tar.gz

Download URL mxs_audio-0.7.4.tar.gz
Size 6.3 MB
Tags Source
SHA-256 checksum
How to use checksums
253262578aa0f42c4869faa60e47a67b99754fbc38d4b9e32a0dbaa2faf5e8a3
BLAKE2b-256 checksum
How to use checksums
6a823ab1e3013bf149f7d3a84b0bdcf9d3f0d61d8045923eff00cb1904cc3370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mxs_audio-0.7.4-cp39-abi3-win_amd64.whl

Download URL mxs_audio-0.7.4-cp39-abi3-win_amd64.whl
Size 7.5 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9239ea37b25a111879c815ce2bbb1e87dd649199e8acc8260ae4ba200b7be0e6
BLAKE2b-256 checksum
How to use checksums
a5b83118c3260fbd8ffef07b61336c0b81f650ac81160c1dcbbd66a2d07fb5c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_x86_64.whl
Size 8.3 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a60e02c97a9164e982881f9f4548c38a4878e1c6c65ae7b7ebce7b06eed467c5
BLAKE2b-256 checksum
How to use checksums
96797dc3445fda799fe7f017095615b5817505960a8331a09a5ec5c5eed6e6f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL mxs_audio-0.7.4-cp39-abi3-manylinux_2_28_aarch64.whl
Size 8.3 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
3845390c33bbdfd18f47525d4e0262cf290422c0cc80bac29958e65ce7483e61
BLAKE2b-256 checksum
How to use checksums
b5977df48617d84983462c2bdacc7f24a33e950157af5cb9e6b975036ffd46a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mxs_audio-0.7.4-cp39-abi3-macosx_11_0_arm64.whl

Download URL mxs_audio-0.7.4-cp39-abi3-macosx_11_0_arm64.whl
Size 7.7 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
779bf3dae354f332cedf2b579bc23aca4bc357a3b8af9d588e4d8925f165e135
BLAKE2b-256 checksum
How to use checksums
6df9d00853d9d2747eb07a6a14a9cef3736307d9f53c9f6e6ab45651d6e8b951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / mxs_audio-0.7.4-cp39-abi3-macosx_10_12_x86_64.whl

Download URL mxs_audio-0.7.4-cp39-abi3-macosx_10_12_x86_64.whl
Size 7.7 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d8a0ecfbd76cba5a5b51b350e74a34b520d470d65f5d7a61d7c08226f882f1ac
BLAKE2b-256 checksum
How to use checksums
eebbe5f88517d3f907e29ad957d12db0c2665eb2c4f1ee83564e68704ef199bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for mxs-audio 0.7.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for mxs_audio-0.7.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page