Procedural Music Generator
Loading...
Searching...
No Matches
Classes | Functions | Variables
main.py File Reference

A script for experimenting with procedural music generation in python. At the moment it generates a song as a piano melody in C major with corresponding harmony being a major tritone using an octave offset of the current melody note as the root. The melody tries to force itself to walk back towards middle c. More...

Classes

class  main.Note
 
class  main.Chord
 

Functions

 main.main ()
 
 main.generate_major_tritone (midiout, root, volume, instrument)
 
 main.generate_minor_tritone (midiout, root, volume, instrument)
 
 main.generate_nextMelody_note (midiout, currentNote)
 

Variables

dict main.Instruments
 

Detailed Description

A script for experimenting with procedural music generation in python. At the moment it generates a song as a piano melody in C major with corresponding harmony being a major tritone using an octave offset of the current melody note as the root. The melody tries to force itself to walk back towards middle c.

Author
Nathan Ulmer
Date
Saturday 30-03-2024

Variable Documentation

◆ Instruments

dict main.Instruments
Initial value:
1= {
2 "Piano":0,
3}