Skip to main content

Toolbox for analyzing, creating and visualizing music

Project description

musy

Developer Guide

Usage

Installation

pip install musy

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

How to use

Note

from musy import Note

The Note is the basic building block from which you can create chords and songs.

c_sharp = Note("C#")
c_sharp
musy.core.Note(note='C#')

Notes can be added and subtracted to form new notes. Each added integer represents a semitone.

c_sharp + 1
musy.core.Note(note='D')
c_sharp - 1
musy.core.Note(note='C')
c_sharp + 14
musy.core.Note(note='D#')

Intervals can be obtained by comparing a note with a different note or string.

c_sharp.interval("F#")
'perfect fourth'

Shorthand is also available for intervals.

c_sharp.interval("B", short=True)
'b7'

Notes can be converted to its relative major or minor.

Note("C").minor()
musy.core.Note(note='A')
Note("C#").major()
musy.core.Note(note='E')

Note methods can be chained together.

Note("C").minor().major().augment().diminish().diminish()
musy.core.Note(note='B')

Chord

TODO: Docs for chord.

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

musy-0.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

musy-0.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file musy-0.0.1.tar.gz.

File metadata

  • Download URL: musy-0.0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for musy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b45ba72b4a4d779c4a308d2e095a3048b5e9d656e48acde8236ffbb3b6a9bc49
MD5 4bf7bf554d364f3da32f741a9bcffa46
BLAKE2b-256 8eb4229571f6c9a08b90ba69469f5117fae0d7e49c34f47a4adca8457b38c775

See more details on using hashes here.

File details

Details for the file musy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: musy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for musy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f884b441a8f28479a75b53334dca97ce06b0587ad3abbeb57ab5c2f6226b94
MD5 e2dcfe50e132f7f43493de419fe3d6e7
BLAKE2b-256 c52ffc1e4eceeb0d5a1bc41a6f24a193071bd0f0e45dc864e40ec3c3db930483

See more details on using hashes here.

Supported by

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