Class: Echowrap::SequencedData

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/sequenced_data.rb

Direct Known Subclasses

Bar, Beat, Section, Segment, Tatum

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Echowrap::Base

Instance Attribute Details

#confidenceObject (readonly)

Returns the value of attribute confidence.



5
6
7
# File 'lib/echowrap/sequenced_data.rb', line 5

def confidence
  @confidence
end

#durationObject (readonly)

Returns the value of attribute duration.



5
6
7
# File 'lib/echowrap/sequenced_data.rb', line 5

def duration
  @duration
end

#startObject (readonly)

Returns the value of attribute start.



5
6
7
# File 'lib/echowrap/sequenced_data.rb', line 5

def start
  @start
end

Instance Method Details

#idObject



7
8
9
# File 'lib/echowrap/sequenced_data.rb', line 7

def id
  "#{self.class.to_s.downcase}_#{self.start}"
end