Skip to content

Commit

Permalink
Fixed the bug in examples/bwv846_prelude.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyssesZh committed Aug 13, 2020
1 parent 2991844 commit 85c6883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/bwv846_prelude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def absolute pitch, duration
/(?<letter>[a-g][-+_]*)(?<octave>\d*)/ =~ pitch
octave = @@last_octave ||= '4' if octave.empty?
result = Alda::Note.new "o#{@@last_octave = octave} #{letter}", duration
@events.push result
@events.push result.tap { _1.parent = self }
result
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/alda-rb/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module Alda
# The version number of alda-rb.
#
# The same as that in alda-rb gem spec.
VERSION = '0.2.0'
VERSION = '0.2.1'
end

0 comments on commit 85c6883

Please sign in to comment.