Class: Webern::Formatters::TextFormatter

Inherits:
BaseFormatter show all
Defined in:
lib/webern/formatters/text_formatter.rb

Constant Summary

Constants inherited from BaseFormatter

BaseFormatter::DEFAULT_OPTS, BaseFormatter::PITCH_CLASSES

Instance Method Summary collapse

Methods inherited from BaseFormatter

#initialize, #pitch_value

Constructor Details

This class inherits a constructor from Webern::Formatters::BaseFormatter

Instance Method Details

#drawObject



4
5
6
# File 'lib/webern/formatters/text_formatter.rb', line 4

def draw
  output($stdout)
end

#write_to_fileObject



9
10
11
12
13
# File 'lib/webern/formatters/text_formatter.rb', line 9

def write_to_file
  File.open("#{@filepath}.txt", 'w') do |f|
    output(f)
  end
end