Class: Alter_Pitch_Paramobj

Inherits:
ParamObjs show all
Defined in:
lib/melody_object/Mo_h_hc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xObject

Returns the value of attribute x.



195
196
197
# File 'lib/melody_object/Mo_h_hc.rb', line 195

def x
  @x
end

#yObject

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

#rsltObject



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