Module: Muse::Harmonic
- Defined in:
- lib/muse/config/harmonic.rb
Class Method Summary collapse
Class Method Details
.default(input) ⇒ Object
20 21 22 |
# File 'lib/muse/config/harmonic.rb', line 20 def default(input) Math.sin(2 * Math::PI * input) end |
.organ(input) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/muse/config/harmonic.rb', line 35 def organ(input) Math.sin(2 * 2 * Math::PI * input) + Math.sin(2 * Math::PI * input) + Math.sin(Math::PI * input) end |
.second(input) ⇒ Object
24 25 26 27 |
# File 'lib/muse/config/harmonic.rb', line 24 def second(input) Math.sin(2 * Math::PI * input) + Math.sin(3* 2 * Math::PI * input) end |
.third(input) ⇒ Object
29 30 31 32 33 |
# File 'lib/muse/config/harmonic.rb', line 29 def third(input) Math.sin(2 * Math::PI * input) + Math.sin(3* 2 * Math::PI * input) + Math.sin(5 * 2 * Math::PI * input) end |