Class: GuitarProParser::Channel
- Inherits:
-
Object
- Object
- GuitarProParser::Channel
- Defined in:
- lib/guitar_pro_parser/channel.rb
Instance Attribute Summary collapse
-
#chorus ⇒ Object
Returns the value of attribute chorus.
-
#instrument ⇒ Object
Returns the value of attribute instrument.
-
#pan ⇒ Object
Returns the value of attribute pan.
-
#phaser ⇒ Object
Returns the value of attribute phaser.
-
#reverb ⇒ Object
Returns the value of attribute reverb.
-
#tremolo ⇒ Object
Returns the value of attribute tremolo.
-
#volume ⇒ Object
Returns the value of attribute volume.
Instance Method Summary collapse
-
#initialize ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize ⇒ Channel
Returns a new instance of Channel.
13 14 15 16 17 18 19 20 21 |
# File 'lib/guitar_pro_parser/channel.rb', line 13 def initialize @instrument = 0 @volume = 13 @pan = 8 @chorus = 0 @reverb = 0 @phaser = 0 @tremolo = 0 end |
Instance Attribute Details
#chorus ⇒ Object
Returns the value of attribute chorus.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def chorus @chorus end |
#instrument ⇒ Object
Returns the value of attribute instrument.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def instrument @instrument end |
#pan ⇒ Object
Returns the value of attribute pan.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def pan @pan end |
#phaser ⇒ Object
Returns the value of attribute phaser.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def phaser @phaser end |
#reverb ⇒ Object
Returns the value of attribute reverb.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def reverb @reverb end |
#tremolo ⇒ Object
Returns the value of attribute tremolo.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def tremolo @tremolo end |
#volume ⇒ Object
Returns the value of attribute volume.
5 6 7 |
# File 'lib/guitar_pro_parser/channel.rb', line 5 def volume @volume end |