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.getSongData(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.3.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for PyPianoTune-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd17e7c7dd08f164dfbb11ce16e37ccf725eb44b39cfb6fdf6b7f423061b6302 |
|
MD5 | c4dd0893358cddeda4f2a0d7b414be16 |
|
BLAKE2b-256 | 307bd9a368ef638052f76a1ca1e916877e3802b5ab7a44ee1faada7e7c6ec944 |