Skip to main content

xm_file

Library for reading and unpacking Fasttracker II modules https://en.wikipedia.org/wiki/XM_(file_format).

Documentation

The original spec xm.txt is included as part of the repo

XMFile API

property .header

Module header information

property .patterns

List of patterns (including pattern data)

property .instruments

List of instruments (including samples and sample data)

Examples

from xm_file import XMFile

xm_file = XMFile("example.xm")

info = f"""
Module name: {xm_file.header.module_name}
Length: {xm_file.header.song_length}
Channels: {xm_file.header.no_channels}
Patterns: {xm_file.header.no_channels}
Instruments: {xm_file.header.no_instruments}
BPM: {xm_file.header.bpm}
Tempo: {xm_file.header.tempo}
"""

print(info)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xm_file-0.1.1.linux-x86_64.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file xm_file-0.1.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: xm_file-0.1.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.0

File hashes

Hashes for xm_file-0.1.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 45fb9cfc9881dae2122dd25f72dc1c477b6fccfefbcc8174158d33442cae97ae
MD5 e02310111a93e6eaf667e29305ec684c
BLAKE2b-256 8dc1cc6d47ae087a2d3efc739e712cb60698aa6f3984ff58f6f0153ca6fac4c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 file

0.1.0

1 file

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