A library for parsing Guitar Hero .chart files.
Project description
chartparse
Install it from PyPI
pip install chartparse
Usage
from chartparse.chart import Chart
from chartparse.instrument import Instrument, Difficulty
c = Chart.from_filepath("/path/to/file.chart")
# the first 7 BPM changes (including the initial one)
c.sync_track.bpm_events[:7]
# the first 8 time signature changes (including the initial one)
c.sync_track.time_signature_events[:8]
expert_guitar = c[Instrument.GUITAR][Difficulty.EXPERT]
# the first 10 notes of the expert guitar chart
expert_guitar.note_events[:10]
# the first 3 star power phrases of the expert guitar chart
expert_guitar.star_power_events[:3]
See the documentation for more detailed guidance.
Note: this software is tested only with .chart files that are written by Moonscraper. Files written by other editors or are handwritten may produce undefined behavior.
Development
Read the CONTRIBUTING.md file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chartparse-0.3.1.tar.gz.
File metadata
- Download URL: chartparse-0.3.1.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a57932961aee1472af1c0fbb2dea8b59c5f9657f603108cefadbfa01f3dddca
|
|
| MD5 |
8f6e8b83fbbb1e8aca6e5d1dd2d7e9c3
|
|
| BLAKE2b-256 |
0093c5825f20cf8c14c874ea169d15988358110c0313584d545f6eb9d2af2236
|
File details
Details for the file chartparse-0.3.1-py3-none-any.whl.
File metadata
- Download URL: chartparse-0.3.1-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c41490ab030ad279d964019de92e78c8e5d1f07f15fb0e5c6807282a119bcdb
|
|
| MD5 |
b6f86882bb610b6a03fd2692c2b9346e
|
|
| BLAKE2b-256 |
84573868e393bb703169480ee18046ce55955f8e3d00c7978a8f868a3f9cef6d
|