A Python module to convert music notes into piano tune.
Project description
PyPianoTune
A Python module to convert music notes into piano tune
Installation
pip install PyPianoTune
Import module
from pypianotune import PyPianoTune
Sample
from pypianotune import PyPianoTune
from IPython.display import Audio
# [Mandatory] Musical notes
# Full notes list can be retrieved by getPianoNotes()
# e.g. C major notes
music_notes = ['C4','D4','E4','F4','G4','A4','B4']
# [Optional] Note duration values
# Need to be aligned with count of notes
note_values = [.5, .5, .5, .5, .5, .5, .5]
pianoTuner = PyPianoTune()
Audio(pianoTuner.get_song_data(music_notes, note_values), rate=44100, autoplay=True)
License
MIT License
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
pypianotune-0.1.5.tar.gz
(5.2 kB
view details)
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 pypianotune-0.1.5.tar.gz.
File metadata
- Download URL: pypianotune-0.1.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc5487113f2fe9e6615e0fb39d755c810542ac6e1ccd88ea7e743a60d865d13
|
|
| MD5 |
31a1a60010347842774ea3af5658efad
|
|
| BLAKE2b-256 |
5723eb715c5b1c43927b23aaefcaa23e5d3f7b86fe386161704f2d79d6e34bb2
|
File details
Details for the file PyPianoTune-0.1.5-py3-none-any.whl.
File metadata
- Download URL: PyPianoTune-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32ebf2ea4be9db752895173e0c96ae6b41a0248359be6212e991a29a26130b48
|
|
| MD5 |
59d44932c5bd0c34fb437fc5664a1861
|
|
| BLAKE2b-256 |
bbd40258c366498d70fdb8cb843fe358dcb7fb23222e24c0602ca831c85f96a4
|