A Python module to convert music notes into piano tune.
Project description
PyPianoTune
A Python module to convert music notes into piano tune
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.2.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for PyPianoTune-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cf4d97a497263588b4250d27b998f89804b620247806551ae23119ddbf3ba78 |
|
MD5 | b3056404b02e707ab3f90f2acda21740 |
|
BLAKE2b-256 | 72e2c90b6b6034b9b11a6e4a58978d5a840d3c2ca43fb464bbe2fe142cf1578e |