dbc081f30acf60d88bd233fac867c7b89fab3053,magenta/music/lead_sheets_lib_test.py,LeadSheetsLibTest,testSetLength,#LeadSheetsLibTest#,153
Before Change
lead_sheet = lead_sheets_lib.LeadSheet()
lead_sheet.from_event_list(zip(melody_events, chord_events), start_step=9)
lead_sheet.set_length(5)
expected_melody = melodies_lib.MonophonicMelody()
expected_melody.from_event_list(melody_events[:], start_step=9)
expected_melody.set_length(5)
expected_chords = chords_lib.ChordProgression()
expected_chords.from_event_list(chord_events[:], start_step=9)
expected_chords.set_length(5)
After Change
// chords separately.
melody_events = [60]
chord_events = ["C7"]
melody = melodies_lib.MonophonicMelody(melody_events, start_step=9)
chords = chords_lib.ChordProgression(chord_events, start_step=9)
expected_melody = copy.deepcopy(melody)
expected_chords = copy.deepcopy(chords)
lead_sheet = lead_sheets_lib.LeadSheet(melody, chords)
lead_sheet.set_length(5)
expected_melody.set_length(5)
expected_chords.set_length(5)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: tensorflow/magenta
Commit Name: dbc081f30acf60d88bd233fac867c7b89fab3053
Time: 2016-10-06
Author: iansimon@users.noreply.github.com
File Name: magenta/music/lead_sheets_lib_test.py
Class Name: LeadSheetsLibTest
Method Name: testSetLength
Project Name: tensorflow/magenta
Commit Name: dbc081f30acf60d88bd233fac867c7b89fab3053
Time: 2016-10-06
Author: iansimon@users.noreply.github.com
File Name: magenta/music/lead_sheets_lib_test.py
Class Name: LeadSheetsLibTest
Method Name: testSetLength
Project Name: tensorflow/magenta
Commit Name: dbc081f30acf60d88bd233fac867c7b89fab3053
Time: 2016-10-06
Author: iansimon@users.noreply.github.com
File Name: magenta/music/lead_sheets_lib_test.py
Class Name: LeadSheetsLibTest
Method Name: testSquash
Project Name: tensorflow/magenta
Commit Name: dbc081f30acf60d88bd233fac867c7b89fab3053
Time: 2016-10-06
Author: iansimon@users.noreply.github.com
File Name: magenta/music/lead_sheets_lib_test.py
Class Name: LeadSheetsLibTest
Method Name: testTranspose