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.4.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for PyPianoTune-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ee314c6b4198196cb10629f9e485e19ff777495296df609e7379f816194562 |
|
MD5 | 77bcf773674990d994d2268b952c5c18 |
|
BLAKE2b-256 | d1fcde73a74829ff3265987db1651260ffe2bbb6489c8a11acffbf3850a7b7ab |