Module: Zgomot

Defined in:
lib/zgomot/boot.rb,
lib/zgomot/main.rb,
lib/zgomot/config.rb

Defined Under Namespace

Modules: Comp, Delegator, Midi, UI Classes: Boot, Drivers, Error

Constant Summary collapse

VERSION =
"0.0.0"
DISPATCHER_POLL =
1.133
DEFAULT_CONFIG =
{
  :beats_per_minute => 120,
  :time_signature   => '4/4',
  :resolution       => '1/32'
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_pathObject

Returns the value of attribute app_path.



20
21
22
# File 'lib/zgomot/config.rb', line 20

def app_path
  @app_path
end

.configObject

Returns the value of attribute config.



20
21
22
# File 'lib/zgomot/config.rb', line 20

def config
  @config
end

.config_fileObject

Returns the value of attribute config_file.



20
21
22
# File 'lib/zgomot/config.rb', line 20

def config_file
  @config_file
end

.liveObject

Returns the value of attribute live.



20
21
22
# File 'lib/zgomot/config.rb', line 20

def live
  @live
end

.log_fileObject

Returns the value of attribute log_file.



20
21
22
# File 'lib/zgomot/config.rb', line 20

def log_file
  @log_file
end

Class Method Details

.add_path(dir) ⇒ Object



23
24
25
# File 'lib/zgomot/config.rb', line 23

def add_path(dir)
  File.join(Zgomot.app_path, dir)
end

.loggerObject



21
# File 'lib/zgomot/config.rb', line 21

def logger; @logger ||= Logger.new(STDOUT); end

.logger=(logger) ⇒ Object



22
# File 'lib/zgomot/config.rb', line 22

def logger=(logger); @logger = logger; end