dbc081f30acf60d88bd233fac867c7b89fab3053,magenta/music/lead_sheets_lib_test.py,LeadSheetsLibTest,testSquash,#LeadSheetsLibTest#,56

Before Change


                     NOTE_OFF, 12 * 6 + 4, NO_EVENT]
    chord_events = ["C", "Am", "Dm", "G", "C", NO_CHORD]
    lead_sheet = lead_sheets_lib.LeadSheet()
    lead_sheet.from_event_list(zip(melody_events, chord_events))
    lead_sheet.squash(min_note=12 * 5, max_note=12 * 6, transpose_to_key=0)
    expected_melody = melodies_lib.MonophonicMelody()
    expected_melody.from_event_list(melody_events[:])
    transpose_amount = expected_melody.squash(

After Change


    chord_events = ["C", "Am", "Dm", "G", "C", NO_CHORD]
    melody = melodies_lib.MonophonicMelody(melody_events)
    chords = chords_lib.ChordProgression(chord_events)
    expected_melody = copy.deepcopy(melody)
    expected_chords = copy.deepcopy(chords)
    lead_sheet = lead_sheets_lib.LeadSheet(melody, chords)
    lead_sheet.squash(min_note=12 * 5, max_note=12 * 6, transpose_to_key=0)
    transpose_amount = expected_melody.squash(
        min_note=12 * 5, max_note=12 * 6, transpose_to_key=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: 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: 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: 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: testTranspose