marianinn / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
0 stars 1 forks source link

An Iterator for notes in Track #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey,
    I found it extremely useful to be able to conveniently iterate through
every note in every bar of a track. Rather than do:
for bar in track.bars:
    for beat, duration, notes in bar:
        pass

I felt it would be nice and elegant to just have a method to let you do this:

for beat, duration, notes in track.get_notes():
    pass

(I have a patch waiting to be committed - I'm trying to use git svn (I've
successfully used it before), and hence the attached patch is in git style)

Original issue reported on code.google.com by arunchag...@gmail.com on 26 Nov 2009 at 2:02

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by arunchag...@gmail.com on 26 Nov 2009 at 2:03

GoogleCodeExporter commented 9 years ago
Yeah, that's pretty handy indeed! You can commit this patch if you want. 
Thanks,
Bart

Original comment by Rhijnauwen@gmail.com on 26 Nov 2009 at 2:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r582.

Original comment by arunchag...@gmail.com on 26 Nov 2009 at 2:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r593.

Original comment by arunchag...@gmail.com on 27 Nov 2009 at 5:56