arpeggiator

Create random arpeggios and write them in a MIDI file.

Usage no npm install needed!

<script type="module">
  import arpeggiator from 'https://cdn.skypack.dev/arpeggiator';
</script>

README

Arpeggiator

Create random arpeggios and write them in a MIDI file.

Installation

npm install --global arpeggiator

Usage

arpeggiator --material <material> --count <count> --output <output> [OPTIONS]

Options:
  --help      Show help                                                [boolean]
  --version   Show version number                                      [boolean]
  --material  The note material, comma-separated             [string] [required]
  --count     The total number of notes to produce           [number] [required]
  --output    The filename to store the MIDI output in       [string] [required]
  --length    The length of each note in fractions of a 4/4 bar
                                                           [number] [default: 8]
  --tempo     The tempo in bpm (beats per minute) for quarter notes (crotchets)
                                                         [number] [default: 120]
  --avoid     Avoid playing a note again until this number of other notes have
              been played.                                 [number] [default: 0]

Example

Produce 16 eight-notes from the D major pentatonic without repetitions at tempo 140 and write to test.midi.

arpeggiator \
  --material 'd4,e4,f#4,a4,b4' \
  --count 16 \
  --avoid 1 \
  --tempo 140 \
  --output test.midi