27 lines
816 B
Python
Executable File
27 lines
816 B
Python
Executable File
#! /usr/bin/env python3
|
|
|
|
from tunes_db.tune import Tune
|
|
from tunes_db.tunes import tunes
|
|
from gen_set import generate_set
|
|
|
|
|
|
music_root = "/home/ericteunis/projects/pipeband-scoring/music/"
|
|
|
|
for tune in tunes:
|
|
############################################
|
|
# Generate a pdf for each instrument from instrument array
|
|
############################################
|
|
print(tune.name)
|
|
for instrument, scores in tune.instruments.items():
|
|
instrset = generate_set(tune.name, scores, root=music_root)
|
|
|
|
############################################
|
|
# Save it into the texfile linking all scores
|
|
############################################
|
|
|
|
|
|
############################################
|
|
# Generate Table of Contents entry for setlist
|
|
############################################
|
|
|