def main():
    kwargs = gen_kwargs()
    song_generator.generate_song(**kwargs)
    markov_weight = float(raw_input('Enter a weight for the markov values. '))
    generated_notes = ''
    with open((nino_dir + '/trainer/generated_notes')) as f:
        generated_notes = (('[' + f.read()[2:]) + ']')
    generated_notes = json.loads(generated_notes)
    old_results = ''
    with open((nino_dir + '/trainer/results.json')) as f:
        old_results = json.loads(f.read())
    new_results = markov_generator.markov_from_values(old_results, generated_notes, 4, weight=markov_weight)
    with open((nino_dir + '/trainer/results.json'), 'w') as f:
        f.write(json.dumps(new_results))
def main():
    kwargs = gen_kwargs()
    song_generator.generate_song(**kwargs)
    markov_weight = float(raw_input('Enter a weight for the markov values. '))
    generated_notes = 
    with open((nino_dir + '/trainer/generated_notes')) as f:
        generated_notes = (('[' + f.read()[2:]) + ']')
    generated_notes = json.loads(generated_notes)
    old_results = 
    with open((nino_dir + '/trainer/results.json')) as f:
        old_results = json.loads(f.read())
    new_results = markov_generator.markov_from_values(old_results, generated_notes, 4, weight=markov_weight)
    with open((nino_dir + '/trainer/results.json'), 'w') as f:
        f.write(json.dumps(new_results))