diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2021-09-12 14:17:19 +0200 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2021-09-12 14:17:19 +0200 |
commit | f3039744d72454e7e3b8cb1032266bcc172ce488 (patch) | |
tree | 5a92a698056e2cbec6f0b121a9ce31596e4a4581 /lib/ly.rb |
Initial commit
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 |