Skip to content

alessandrodgr/earth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EuclideAn Rhythm generaTor in Haskell

A Haskell implementation of a euclidean rhythm generator

Installation

This software requires Euterpea library and a MIDI synthesizer to run

Other dependencies are listed in earth.cabal, to install them run cabal build

Usage

cabal run rhythmFile

The input file specifies the rhythm in a JSON format. Here is an example of a cuban tresillo played on the E note of a slap bass:

{
  "tempo": {
    "numerator": 4,
    "denominator": 1
  },
  "tracks": [
    {
      "instrument": "SlapBass1",
      "note": "e",
      "octave": 2,
      "delay": 0,
      "beats": 3,
      "total": 8
    }
  ]
}

All Euterpea's instruments are available, except CustomInstrument

Examples

More complex examples are provided in the examples directory. They show more articulated rhythms made by mixing together simple euclidean rhythms played on different instruments, notes, octaves and onset (delay)

About

Euclidean rhythm generator written in Haskell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published