diff options
Diffstat (limited to 'lib/ly.rb')
-rw-r--r-- | lib/ly.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ly.rb b/lib/ly.rb new file mode 100644 index 0000000..fc85204 --- /dev/null +++ b/lib/ly.rb @@ -0,0 +1,14 @@ +def compile_ly ly_filename + system "lilypond --svg --output=#{tmp SongsDir} #{ly_filename}" + system "lilypond --output=#{tmp SongsDir} #{ly_filename}" +end + +def make_sheets songs + songs.keys.each do |song_id| + ly_filename = src(song_ly song_id) + if File.file? ly_filename + compile_ly ly_filename + system "mv #{tmp (song_tmp_svg song_id)} #{build(song_svg song_id)}" + end + end +end |