Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Yet another music package using the MASS (Music and Audio in Sample Sequences) framework

Project description

This project delivers routines for music oriented sound synthesis in a sample based system. Music can be though of as a sample level DAW system, in which the objects manipulated are in fact the array of samples describing the sound wave that will reach a listener ear. The MASS (music and audio in sample sequences) modeling is used[1][2].

Install with:

$ pip3 install musicLegacy

Hack demo songs and make wav files with:

$ python3 tests/

To hear testSong.wav or

$ python3 tests/

to hear vibrosong.wav. To hack the MASS package itself, and use it from the repo, don’t forget to:

$ pip install -e <path/to/repo>

Real time is possible but not the emphasis: all parameters are updated sample by sample and calculations are made in 64 bit floating point. All operations are described by equations that directly relates audio samples to musical aspects. Detailed descriptions can be found in:

Also check the music Python package:

Usage example

Download messages from one GMANE list:

import musicLegacy as m

# sine, triangle, square and sawtooth
# are attributes of the bt object:

# for frequency to midi and decibels to amplitude relations:
# try co.db2Amp .amp2Db .hz2Midi .midi2Hz


ut.write(note) # saved to fooname.wav

melody=n.hstack([sy.render(f,.2) for f in
section2=n.hstack([sy.render(freq,dur) for freq,dur in



# A core purpose of the toolbox is to serve other
# toolboxes on the development sonic representations
# E.g. m.pieces.FourHubsDance is used by gmane toolbox
# to make sonified animations:
# sonicLine1 and sonicLine2 attributes are
# most basic sonic "templates" used by:
# to make social music

# more in the way. Take a look at the above literature.
# Enjoy!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
musicLegacy-0.1.dev13.tar.gz (8.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page