alda-rb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dda95434d70128902d3d1ab96628c079ea8716123768d2e93b1ed429df5571b2
4
- data.tar.gz: 8886cd7c861469aa980c18b56142e939c1727086c4d14e15b55fad3eb9fad1b0
3
+ metadata.gz: 8611e285f17508512f263503da8ef56f9d5763233cf980023738d677c1ffaa7e
4
+ data.tar.gz: 82cf627eb924cc40f2c033333296daeefb3341f6dd194edc260eb6f986a2d374
5
5
  SHA512:
6
- metadata.gz: 4cc9a4cd860643fdd69d152d77b13dac9c9d730d119b55d2799c0ffef328ccbeb91c9e618bf706652306210bdd298d1055f3f0a88ead557cc5f550d9f644823f
7
- data.tar.gz: 0c3654c453bf4d66fc6eed1bdcda53abe712ad625799d6687d64d29222c77d6bb7fc86e9190cb96d09052f7191eb43bfbcafc8dea8a0e26bf11a2a1bbb99dfee
6
+ metadata.gz: 688aa784bd4581ff144a7a40a35f9d00df3cb662fe938f0bb8fcb8e8690b7f4040620d8332cb407a1726f6b3a9e3fe6e95f279be8062be64c206b56904bba002
7
+ data.tar.gz: 3f209a0d2cd67c5d39f276d9816ea1af7798c0ad060ed93a5578c8c5ffbedf6ecb056f61d826eeb6275bf9fddccc84ebaf13e2051b096e8d96e4dd11b24ae848
@@ -15,7 +15,7 @@ class Alda::Sequence
15
15
  /(?<letter>[a-g][-+_]*)(?<octave>\d*)/ =~ pitch
16
16
  octave = @@last_octave ||= '4' if octave.empty?
17
17
  result = Alda::Note.new "o#{@@last_octave = octave} #{letter}", duration
18
- @events.push result
18
+ @events.push result.tap { _1.parent = self }
19
19
  result
20
20
  end
21
21
  end
@@ -7,5 +7,5 @@ module Alda
7
7
  # The version number of alda-rb.
8
8
  #
9
9
  # The same as that in alda-rb gem spec.
10
- VERSION = '0.2.0'
10
+ VERSION = '0.2.1'
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alda-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulysses Zhan