Ejemplo n.º 1
0
def main():
    args = parse_arguments()
    for file in [i for i in noteblock_music_utility.get_input_files(args["input_files"]) if not i[-15:-4] == "_simplified"]:
        data = noteblock_music_utility.import_csv_file(file)
        data[0][1] = "0"
        data = remove_quiet_notes(data, args["volume"])
        noteblock_music_utility.create_csv_file(data, file[:-4] + "_simplified.csv")
def main():
    args = parse_arguments()
    for file in noteblock_music_utility.get_input_files(args["input_files"]):
        data = noteblock_music_utility.import_csv_file(file)
        convert_to_nbs_file(data, args["metronome"], args["is_loopable"],
                            args["smartness"], file[:-4],
                            args["speed_fine_tune"])
Ejemplo n.º 3
0
def main():
    args = parse_arguments()
    for file in [i for i in noteblock_music_utility.get_input_files(args["input_files"]) if not i[-12:-4] == "_antilag"]:
        data = noteblock_music_utility.import_csv_file(file)
        data[0][1] = "0"
        data = antilag(data, args["metronome"], args["precision"])
        if not args["analyze"]:
            noteblock_music_utility.create_csv_file(data, file[:-4] + "_antilag.csv")
Ejemplo n.º 4
0
def main():
    args = parse_arguments()
    for file in noteblock_music_utility.get_input_files(args["input_files"]):
        data = noteblock_music_utility.import_csv_file(file)
        data = convert_and_add_off(data, args["use_visual_percussion"],
                                   args["use_melodic_percussion"],
                                   args["metronome"], args["note_length"],
                                   args["can_same_note_play_twice"],
                                   args["speed_fine_tune"])
        convert_to_midi_file(data, file[:-4], args["keep_newcsv"])
Ejemplo n.º 5
0
def main():
    args = parse_arguments()
    for file in [
            i for i in noteblock_music_utility.get_input_files(
                args["input_files"]) if not i[-14:-4] == "_amplified"
    ]:
        data = noteblock_music_utility.import_csv_file(file)
        data[0][1] = "0"
        data = make_beginning_louder(data, args["metronome"])
        noteblock_music_utility.create_csv_file(data,
                                                file[:-4] + "_amplified.csv")
Ejemplo n.º 6
0
def main():
    args = parse_arguments()
    if len(args["input_files"]) == 0:
        sysexit("Please specify the input files!")
    data = [
        noteblock_music_utility.import_csv_file(file)
        for file in args["input_files"]
    ]
    data = merge(data, args["metronome"])
    data[0][1] = "0"
    noteblock_music_utility.create_csv_file(data, args["output"])
Ejemplo n.º 7
0
def main():
    args = parse_arguments()
    for file in [
            i for i in noteblock_music_utility.get_input_files(
                args["input_files"]) if not i[-18:-4] == "_speed_changed"
    ]:
        data = noteblock_music_utility.import_csv_file(file)
        data[0][1] = "0"
        data = change_speed(data, args["speed_multiplier"])
        noteblock_music_utility.create_csv_file(
            data, file[:-4] + "_speed_changed.csv")