Class: Hindbaer::Plugin::VoiceProfiler

Inherits:
Base
  • Object
show all
Defined in:
lib/hindbaer/plugin/voice_profiler.rb

Constant Summary

Constants inherited from Base

Base::ATTRIBUTES

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hindbaer::Plugin::Base

Instance Attribute Details

#compObject

Returns the value of attribute comp.



5
6
7
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 5

def comp
  @comp
end

#high_freq_freqObject

Returns the value of attribute high_freq_freq.



8
9
10
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 8

def high_freq_freq
  @high_freq_freq
end

#high_freq_gainObject

Returns the value of attribute high_freq_gain.



8
9
10
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 8

def high_freq_gain
  @high_freq_gain
end

#high_freq_qObject

Returns the value of attribute high_freq_q.



8
9
10
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 8

def high_freq_q
  @high_freq_q
end

#high_pass_freqObject

Returns the value of attribute high_pass_freq.



9
10
11
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 9

def high_pass_freq
  @high_pass_freq
end

#high_pass_gainObject

Returns the value of attribute high_pass_gain.



9
10
11
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 9

def high_pass_gain
  @high_pass_gain
end

#low_freq_freqObject

Returns the value of attribute low_freq_freq.



6
7
8
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 6

def low_freq_freq
  @low_freq_freq
end

#low_freq_gainObject

Returns the value of attribute low_freq_gain.



6
7
8
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 6

def low_freq_gain
  @low_freq_gain
end

#low_freq_qObject

Returns the value of attribute low_freq_q.



6
7
8
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 6

def low_freq_q
  @low_freq_q
end

#mid_freq_freqObject

Returns the value of attribute mid_freq_freq.



7
8
9
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 7

def mid_freq_freq
  @mid_freq_freq
end

#mid_freq_gainObject

Returns the value of attribute mid_freq_gain.



7
8
9
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 7

def mid_freq_gain
  @mid_freq_gain
end

#mid_freq_qObject

Returns the value of attribute mid_freq_q.



7
8
9
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 7

def mid_freq_q
  @mid_freq_q
end

Class Method Details

.parse(fragment) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 11

def self.parse(fragment)
  plugin = super(fragment)
  
  plugin.comp = fragment['Comp']
  
  plugin.low_freq_freq = fragment['LF_Freq']
  plugin.low_freq_gain = fragment['LF_Gain']
  plugin.low_freq_q    = fragment['LF_Q']
  
  plugin.mid_freq_freq = fragment['MF_Freq']
  plugin.mid_freq_gain = fragment['MF_Gain']
  plugin.mid_freq_q    = fragment['MF_Q']
  
  plugin.high_freq_freq = fragment['HF_Freq']
  plugin.high_freq_gain = fragment['HF_Gain']
  plugin.high_freq_q    = fragment['HF_Q']

  plugin.high_pass_freq = fragment['HP_Freq']
  plugin.high_pass_gain = fragment['HP_Gain']
  
  plugin
end

Instance Method Details

#to_xml(xml) ⇒ Object



34
35
36
# File 'lib/hindbaer/plugin/voice_profiler.rb', line 34

def to_xml(xml)
  xml.Plugin Id: id, Name: name, UID: uid, Bypass: bypass, LF_Freq: low_freq_freq, LF_Gain: low_freq_gain, LF_Q: low_freq_q, MF_Freq: mid_freq_freq, MF_Gain: mid_freq_gain, MF_Q: mid_freq_q, HF_Freq: high_freq_freq, HF_Gain: high_freq_gain, HF_Q: high_freq_q, HP_Freq: high_pass_freq, HP_Gain: high_pass_gain, Comp: comp
end