Class: Alter_Pitch_Paramobj
- Defined in:
- lib/melody_object/Mo_h_hc.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(amt) ⇒ Alter_Pitch_Paramobj
constructor
A new instance of Alter_Pitch_Paramobj.
- #rslt ⇒ Object
Constructor Details
#initialize(amt) ⇒ Alter_Pitch_Paramobj
Returns a new instance of Alter_Pitch_Paramobj.
198 199 200 201 |
# File 'lib/melody_object/Mo_h_hc.rb', line 198 def initialize(amt) @x=amt @y=amt end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
195 196 197 |
# File 'lib/melody_object/Mo_h_hc.rb', line 195 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
196 197 198 |
# File 'lib/melody_object/Mo_h_hc.rb', line 196 def y @y end |
Instance Method Details
#rslt ⇒ Object
202 203 204 205 206 207 208 |
# File 'lib/melody_object/Mo_h_hc.rb', line 202 def rslt puts "rrs #{@x}" rtrn=@x @x+=@y puts "rrt #{@x}" return rtrn end |