Skip to content

Commit

Permalink
parser loading in separate file
Browse files Browse the repository at this point in the history
to make loading only selected components more convenient
  • Loading branch information
igneus committed Dec 14, 2016
1 parent deccebe commit a8aa085
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
20 changes: 18 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# grely

* produce relative/absolute mode
* choose absolute pitch of the choral key
* update rspec matchers

* relative mode
* choose absolute pitch of the choral key or modern key to set the melody in
* handle accidentals and key

* produce lilypond gregorian notation instead of modern (will be quite hard to do - has to correctly determine neumes)

* the PEG parser is too restrictive for real-world use;
explore the solution of gabc-tk

* test gem build and functionality of installed executables

# lygre

* convert simple lilypond scores (like in the In adiutorium project) to gabc

# gremux

* convert to musixtex (both modern and quadratic notation)
6 changes: 1 addition & 5 deletions lib/grely.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
gabcscore
gabcsemantics
gabcpitchreader
gabcparser
lilypondconvertor
}.each {|f| require_relative File.join('lygre', f)}

# gabc parser
require 'polyglot'
require 'treetop'
Treetop.load File.expand_path('../lib/lygre/gabcgrammar', File.dirname(__FILE__))
4 changes: 4 additions & 0 deletions lib/lygre/gabcparser.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# load treetop grammar, emit class GabcParser
require 'polyglot'
require 'treetop'
Treetop.load File.expand_path('gabcgrammar', File.dirname(__FILE__))

0 comments on commit a8aa085

Please sign in to comment.