FlashForge Adventurer 5M Audio library
Can be used to play midi files and frequencies on the speaker of the FlashForge Adventurer 5M (pro). Can also be used to play on other linux devices which use a simple PWM driver as audio device.
Note: midi files online are a mess, you might have to seek a while. Try finding the channel with piano or other keytype instrument, usually works best.
Usage:
$ audio --help
usage: FF AD5M Audio 'player' [-h] [-f FREQUENCY] [-d DURATION] [-c CHANNEL] [-m MIDIFILE] [-p PWM] [-v] [--nopwm]
{midi,freq,disable}
This program can either play a midi file, single track, single note, single chanel or a frequency for a specific duration
positional arguments:
{midi,freq,disable} Either midi or freq
options:
-h, --help show this help message and exit
-f FREQUENCY, --frequency FREQUENCY
Frequency
-d DURATION, --duration DURATION
Duration of frequency
-c CHANNEL, --channel CHANNEL
Channel of track to play
-m MIDIFILE, --midifile MIDIFILE
Midi filename
-p PWM, --pwm PWM pwm device to use
-v, --verbose Be verbose (might slow down playback in case of heavy pitch changes)
--nopwm Disable PWM driver, used for testing midi file reading
See https://github.com/xblax/flashforge_adm5_klipper_mod and https://github.com/consp/flashforge_adm5_audio
License
This work is licensed under CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
Known issues
- Using verbose can significanly slow down your playback on slower machines
- Midi files get load into memory completely, if you have little available be wary of large midi files.
- Since the pwm device is monotone, channels with polytone audio will not sound proper. There is no way to do anything about this, seek monotone channels.
- Only pwmchip0 can be used at this time, the FF Ad5M only has one.
Metadata
Release files for ff-adm5-audio 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ff-adm5-audio-0.4.tar.gz | 10.8 kB | Without provenance | Details for ff-adm5-audio-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ff_adm5_audio-0.4-py3-none-any.whl | Python 3 | none | any | Details for ff_adm5_audio-0.4-py3-none-any.whl |
Total release size: 22.2 kB
Release files / ff-adm5-audio-0.4.tar.gz
| Download URL | ff-adm5-audio-0.4.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d25968f66e2fe9352b82aa5873ecbfcdd0e79fdfba677c96331c9ca777afc66
|
|
BLAKE2b-256 checksum How to use checksums |
84619aee6b7eec8fa0fcf2d8f0a20ec4f121cb8703c159362451da1225ea4330
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / ff_adm5_audio-0.4-py3-none-any.whl
| Download URL | ff_adm5_audio-0.4-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dee09068a35f9cd05a7635e4f6257acca595c6ea604a4214d3cc10a405500c7
|
|
BLAKE2b-256 checksum How to use checksums |
6075e3d48f710311d7b2e0f4637351b8b9f1351caf7789e882a7d4f8499ae7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for ff-adm5-audio 0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.