### Musing - A Music theme lib for human, make compose music easy for coders. —
### 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 & Progression
### 4. Use Helper
1 2 3 4 5 6 7
C D E F G A B
#### 4.1 Midi Player
If you want to play the midi file, you should install a midi player first.
VLC :
Debian/Ubuntu apt install vlc vlc-plugin-fluidsynth
Timidity:
- CentOS
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
` yum install epel* timidity++`
Debian/Ubuntu apt install timidity++
e.g. custorm player : use set the player path muse.play(player_path=”/bin/timidity”)
Metadata
Release files for musing 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| musing-1.0.2-py2-none-any.whl | Python 2 | none | any | Details |
Release files / musing-1.0.2-py2-none-any.whl
| Download URL | musing-1.0.2-py2-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
8fbd82147f8feabc2258c7d95356f27ead9e5e8837bd05cd6e2a0e6e2fbf9815
|
|
BLAKE2b-256 checksum How to use checksums |
d00953bb9c46fead8f811c84fefbd400414f44594975e78a10c2faee15a3408f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|