Class: Stretto::Tokens::PolyphonicPressureToken

Inherits:
HashToken
  • Object
show all
Defined in:
lib/stretto/grammar/tokens/polyphonic_pressure_token.rb

Overview

Token from parsing a polyphonic pressure element

Examples:

"*80,100"

Instance Method Summary (collapse)

Methods inherited from HashToken

#[]

Instance Method Details

- (Value) pitch



17
18
19
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 17

def pitch
  Stretto::Value.new(__pitch.wrap)
end

- (MusicElements::PolyphonicPressure) to_stretto(pattern = nil)



12
13
14
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 12

def to_stretto(pattern = nil)
  Stretto::MusicElements::PolyphonicPressure.new(self, pattern)
end

- (Value) value



22
23
24
# File 'lib/stretto/grammar/tokens/polyphonic_pressure_token.rb', line 22

def value
  Stretto::Value.new(__value.wrap)
end