-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
21 lines (11 loc) · 751 Bytes
/
README
File metadata and controls
21 lines (11 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Just a little fun taking git repos and generating some beats using chuck and its sample code. My pair and I were admiring a really "nice" git repo with lots of branchy goodness making for beautiful graphs and were wondering about putting some sound behind it. Well... here's my evening hacking around in chuck! It's only designed for even integers up to 20, so you might get weirdness if the repo you are sampling is super branchy.
Install chuck:
http://chuck.cs.princeton.edu/
Generate file with something like this:
git log --graph --format=oneline | ruby -e "puts STDIN.readlines.map{|line| line =~ /\*/}.compact" > outfile.txt
Play my sample file:
chuck git_beats.ck
Or your data:
chuck git_beats.ck:outfile.txt
Enjoy!
--Josh