Skip to content

Commit

Permalink
full score
Browse files Browse the repository at this point in the history
  • Loading branch information
nivlekp committed Sep 22, 2024
1 parent 698db75 commit 95e48f9
Show file tree
Hide file tree
Showing 8 changed files with 6,804 additions and 0 deletions.
2,195 changes: 2,195 additions & 0 deletions minamidera/builds/score/_sections/a.ily

Large diffs are not rendered by default.

2,241 changes: 2,241 additions & 0 deletions minamidera/builds/score/_sections/b.ily

Large diffs are not rendered by default.

2,336 changes: 2,336 additions & 0 deletions minamidera/builds/score/_sections/c.ily

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions minamidera/builds/score/music.ly
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
\version "2.25.16"
\language "english"
#(ly:set-option 'relative-includes #t)

\include "../../stylesheets/stylesheet.ily"

\score {
<<
{
\include "_sections/a.ily"
\include "_sections/b.ily"
\include "_sections/c.ily"
}
>>
\layout { }
\midi { }
}
12 changes: 12 additions & 0 deletions minamidera/library.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import pathlib
import shutil

import abjad
import pang

Expand Down Expand Up @@ -49,6 +52,15 @@ def make_empty_score():
return score


def move_music_ily_from_segment_directory_to_build_directory(segment_name: str) -> None:
segment_directory = pathlib.Path() / "minamidera" / "segments" / segment_name
music_ily_path = segment_directory / "music.ily"
_sections_path = segment_directory.parents[1] / "builds" / "score" / "_sections"
target_name = segment_directory.stem + ".ily"
target_path = _sections_path / target_name
shutil.copy(music_ily_path, target_path)


class TrebleNoteServer(pang.NoteServer):
def can_serve(self, sound_point: pang.SoundPoint) -> bool:
pitch = sound_point.pitch
Expand Down
1 change: 1 addition & 0 deletions minamidera/segments/a/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def main() -> None:
abjad.Clef("bass"), abjad.get.leaf(score[library.PIANO_MUSIC_VOICE_1_NAME], 0)
)
pang.build.persist(score, metadata)
library.move_music_ily_from_segment_directory_to_build_directory("a")


if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions minamidera/segments/b/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def main() -> None:
abjad.Clef("bass"), abjad.get.leaf(score[library.PIANO_MUSIC_VOICE_1_NAME], 0)
)
pang.build.persist(score, metadata)
library.move_music_ily_from_segment_directory_to_build_directory("b")


if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions minamidera/segments/c/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def main() -> None:
abjad.Clef("bass"), abjad.get.leaf(score[library.PIANO_MUSIC_VOICE_1_NAME], 0)
)
pang.build.persist(score, metadata)
library.move_music_ily_from_segment_directory_to_build_directory("c")


if __name__ == "__main__":
Expand Down

0 comments on commit 95e48f9

Please sign in to comment.