Module: Tetsujin::DSL::Theory
- Included in:
- Tetsujin::DSL
- Defined in:
- lib/tetsujin/dsl/theory.rb
Instance Method Summary collapse
Instance Method Details
#note(name, octave) ⇒ Object
8 9 10 |
# File 'lib/tetsujin/dsl/theory.rb', line 8 def note(name, octave) Tetsujin::Theory::Note::Factory.create_from_name(name: name, octave: octave) end |
#scale(root, pattern) ⇒ Object
14 15 16 |
# File 'lib/tetsujin/dsl/theory.rb', line 14 def scale(root, pattern) Tetsujin::Theory::Scale.new(root: root, pattern: pattern.to_sym) end |