Skip to content

Commit

Permalink
Created the offset probabilities and eliminated 0 as a possible offse…
Browse files Browse the repository at this point in the history
…t (where offset = gap between notes).
  • Loading branch information
evancchow committed Apr 28, 2014
1 parent ae95a54 commit fa55081
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 345 deletions.
6 changes: 0 additions & 6 deletions alice.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,10 @@
for ix, voice in enumerate(singlepart.getElementsByClass(stream.Voice)):
notes = voice.getElementsByClass(note.Note).notes
chords = voice.getElementsByClass(chord.Chord)
# print "\n--Voice %s--\n" % ix
for i in notes:
# if float(i.offset) > 7: continue
allnotes.append(i)
# print "%s,%s,%s,%s" % (i.name, i.octave,
# i.quarterLength, float(i.offset))
for i in chords:
# if float(i.offset) > 7: continue
allchords.append(i)
# print "%s,%s, ,%s" % (i.fullName, i.pitchedCommonName, float(i.offset))

print mmark.number
print "%s / %s" % (timesig.numerator, timesig.denominator)
Expand Down
Loading

0 comments on commit fa55081

Please sign in to comment.