Advertisement
Guest User

MIDImutante

a guest
Sep 30th, 2015
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while true; do
  4.  
  5. tempo=$(sudo python gpio_b.py)
  6. if [ "$tempo" -ne 0 ]
  7. then
  8.     tempo=tempo
  9. else
  10.     tempo=30
  11. fi
  12. echo $tempo
  13. python genMidi.py 4 $tempo 16 100 "master.mid"
  14. pmidi -p 14:0 "master.mid"
  15.  
  16. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement