from musical_games.utils import auto_convert_lilypond_file __author__ = 'Robbert Harms' __date__ = "2015-09-22" __maintainer__ = "Robbert Harms" __email__ = "*****@*****.**" lilypond_file = '/tmp/test/tester.ly' soundfont = '/home/robbert/programming/www/opus-infinity.org/soundfonts/steinway_grand_piano.sf2' auto_convert_lilypond_file(lilypond_file, soundfont)
__author__ = 'Robbert Harms' __date__ = '2021-03-09' __maintainer__ = 'Robbert Harms' __email__ = '*****@*****.**' __licence__ = 'LGPL v3' from musical_games.dice_games import load_inbuilt_dice_game, load_inbuilt_dice_game_typesetter from musical_games.utils import auto_convert_lilypond_file dice_game = load_inbuilt_dice_game('kirnberger_polonaise') dice_game_typesetter = load_inbuilt_dice_game_typesetter(dice_game, 'kirnberger_polonaise') dice_game_typesetter.typeset_bars_overview({'large_page': True}, '/tmp/test/overview.ly') auto_convert_lilypond_file('/tmp/test/overview.ly') dice_game_typesetter.typeset_single_bar('polonaise', 1, '/tmp/test/bar_polonaise_1.ly') auto_convert_lilypond_file('/tmp/test/bar_polonaise_1.ly') print(dice_game.get_duplicate_bars('polonaise')) print(dice_game.count_unique_compositions(count_duplicates=True)) print(dice_game.count_unique_compositions(count_duplicates=False)) dice_game_typesetter.typeset_composition(dice_game.get_random_bar_nmrs(seed=0), render_options={'large_page': True, 'comment': 'test'}, out_file='/tmp/test/composition.ly') auto_convert_lilypond_file('/tmp/test/composition.ly', sound_font='/home/robbert/programming/python/opus_infinity.org/soundfonts/Musyng_Kite.sf2')