<s> """<STR_LIT>""" <EOL> import pretty_midi <EOL> import itertools <EOL> base_note = <NUM_LIT> <EOL> chord_duration = <NUM_LIT> <EOL> note_duration = chord_duration * <NUM_LIT> <EOL> pm = pretty_midi . PrettyMIDI ( ) <EOL> synth_voice = pretty_midi . instrument_name_to_program ( '<STR_LIT>' ) <EOL> pm . instruments . append ( pretty_midi . Instrument ( synth_voice ) ) <EOL> curr_time = <NUM_LIT:0.0> <EOL> velocity = <NUM_LIT:100> <EOL> for offset_1 , offset_2 in itertools . combinations ( range ( <NUM_LIT:1> , <NUM_LIT:12> ) , <NUM_LIT:2> ) : <EOL> pm . instruments [ <NUM_LIT:0> ] . notes . append ( pretty_midi . Note ( <EOL> velocity , base_note , curr_time , curr_time + note_duration ) ) <EOL> pm . instruments [ <NUM_LIT:0> ] . notes . append ( pretty_midi . Note ( <EOL> velocity , base_note + offset_1 , curr_time , curr_time + note_duration ) ) <EOL> pm . instruments [ <NUM_LIT:0> ] . notes . append ( pretty_midi . Note ( <EOL> velocity , base_note + offset_2 , curr_time , curr_time + note_duration ) ) <EOL> curr_time += chord_duration <EOL> midi_filename = "<STR_LIT>" <EOL> pm . write ( midi_filename ) </s>
