Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from shaiguitar/master

Forgot to change readme
  • Loading branch information...
commit a08211daea15b2b8407aa41ca5a082e2e762a512 2 parents e85abdd + d824c3f
@jimm authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rdoc
View
6 README.rdoc
@@ -150,7 +150,7 @@ To read a MIDI file, create a MIDI::Sequence object and call its #read method,
passing in an IO object.
The #read method takes an optional block. If present, the block is called once
-after each track has finished being read. Each time, it is passed the total
+after each track has finished being read. Each time, it is passed the track object, the total
number of tracks and the number of the current track that has just been read.
This is useful for notifying the user of progress, for example by updating a
GUI progress bar.
@@ -162,7 +162,7 @@ GUI progress bar.
# Read the contents of a MIDI file into the sequence.
File.open('my_midi_file.mid', 'rb') { | file |
- seq.read(file) { | num_tracks, i |
+ seq.read(file) { | track, num_tracks, i |
# Print something when each track is read.
puts "read track #{i} of #{num_tracks}"
}
@@ -203,7 +203,7 @@ pressure) on channel 5 down one octave.
# Read the contents of a MIDI file into the sequence.
File.open('my_input_file.mid', 'rb') { | file |
- seq.read(file) { | num_tracks, i |
+ seq.read(file) { | track, num_tracks, i |
# Print something when each track is read.
puts "read track #{i} of #{num_tracks}"
}
Please sign in to comment.
Something went wrong with that request. Please try again.