Skip to content

A short toy program to generate music using Sierpinsky triangles

Notifications You must be signed in to change notification settings

torotonnato/sierpmidi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sierpmidi

A short toy program to generate music using Sierpinsky's triangles.

Inspired by https://mastodon.social/@acb/109567809376185861

Setup

pip install -r requirements.txt

Usage

usage: sierpmidi [-h] [-g GASKETS] [-p PROB_FLIP] [-b BPM] [-k KEY]
                 [-m {ionian,dorian,phrygian,lydian,mixolydian,aeolian,locrian}] [-t TRACK_NAME]
                 filename


positional arguments:
  filename              output filename

optional arguments:
  -h, --help            show this help message and exit
  -g GASKETS, --gaskets GASKETS
                        number of gaskets to render
  -p PROB_FLIP, --prob-flip PROB_FLIP
                        probability of flipping a gasket
  -b BPM, --bpm BPM
  -k KEY, --key KEY     key as a midi note number
  -m {ionian,dorian,phrygian,lydian,mixolydian,aeolian,locrian}, --mode {ionian,dorian,phrygian,lydian,mixolydian,aeolian,locrian}
  -t TRACK_NAME, --track-name TRACK_NAME

Samples

aeolian.mp3

dorian.mp3

About

A short toy program to generate music using Sierpinsky triangles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages