From f3039744d72454e7e3b8cb1032266bcc172ce488 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sun, 12 Sep 2021 14:17:19 +0200 Subject: Initial commit --- lib/ly.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/ly.rb (limited to 'lib/ly.rb') 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 -- cgit v1.2.3