1. 17
  1.  

  2. 1

    I wrote a similar project, using sox’s synth subcommand instead of midi.