Class: NoyesJava::BentCentMarker

Inherits:
Object
  • Object
show all
Defined in:
lib/java_impl/bent_cent_marker.rb

Instance Method Summary collapse

Constructor Details

#initializeBentCentMarker


3
4
5
# File 'lib/java_impl/bent_cent_marker.rb', line 3

def initialize
  @bcm = Java::talkhouse.BentCentMarker.new
end

Instance Method Details

#<<(pcm) ⇒ Object


9
10
11
# File 'lib/java_impl/bent_cent_marker.rb', line 9

def << pcm
  @bcm.apply pcm.to_java(Java::double)
end

#logrms(pcm) ⇒ Object


6
7
8
# File 'lib/java_impl/bent_cent_marker.rb', line 6

def logrms pcm
  @bcm.logRMS pcm.to_java(Java::double)
end