Skip to main content

A Music theme lib for human

Project description

### Musing - A Music theme lib for human. to make easy for coder to compose music. —

### 1. Installation

`bash pip install musing `

### 2. Usage

Simple Melody

`python from musing import Musing muse = Musing() muse.add_notes(['C5','C5', 'G5', 'G5', 'A5', 'A5', 'G5','F5','F5','E5','E5','D5','D5','C5']) muse.play() `

With Rhythm

`python from musing import MusingRhythm,Clip r = '-- - - -- ..|-- - - -- -- -- ----' mr = MusingRhythm(r,unit_time=3) m = ['E5','E5','D5','E5','E5','E5','G5','E5','D5','E5'] Clip(mr,m).play() `

Read & Play MIDI File

`python from musing import Musing muse = Musing() notes = Musing.midi_to_note() muse.add_notes(notes) muse.play() `

### 3. TODO

  • O-matic

  • cross-platform

  • More easy for human being

  • some Chords

### 4. Use Helper

  • 1 2 3 4 5 6 7

  • C D E F G A B

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

musing-1.0.0.tar.gz (14.2 kB view hashes)

Uploaded Source

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