Module: Webern

Defined in:
lib/webern.rb,
lib/webern/row.rb,
lib/webern/matrix.rb,
lib/webern/lilypond_builder.rb

Defined Under Namespace

Modules: LilypondBuilder Classes: Matrix, Row

Constant Summary

InvalidRow =
Class.new(Exception)

Class Attribute Summary (collapse)

Class Method Summary (collapse)

Class Attribute Details

+ (Object) prime_row

Returns the value of attribute prime_row



8
9
10
# File 'lib/webern.rb', line 8

def prime_row
  @prime_row
end

Class Method Details

+ (Object) new(row_elements, opts = {})



11
12
13
14
15
16
# File 'lib/webern.rb', line 11

def Webern.new(row_elements, opts={})
  @prime_row = Row.new(*row_elements).zero_row
  @m = Matrix.new(@prime_row)
  LilypondBuilder.generate_file(@m)
  self
end