Skip to main content

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)

Uploaded Source

Built Distribution

PyPianoTune-0.1.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page