4393c218147e92d805bbe85fddebd3397c766715,magenta/music/sequences_lib_test.py,SequencesLibTest,testSequenceToPianoroll,#SequencesLibTest#,1473
Before Change
0], [1, 0],
[1, 0], [1, 0], [1, 0], [1, 1], [0, 1], [0, 1]]
output, _, _, _, _ = sequences_lib.sequence_to_pianoroll(
sequence, frames_per_second=10, min_pitch=1, max_pitch=2)
np.testing.assert_allclose(expected_pianoroll, output)
def testSequenceToPianorollWithBlankFrameBeforeOffset(self):
After Change
0], [1, 0],
[1, 0], [1, 0], [1, 0], [1, 1], [0, 1], [0, 1]]
output = sequences_lib.sequence_to_pianoroll(
sequence, frames_per_second=10, min_pitch=1, max_pitch=2).active
np.testing.assert_allclose(expected_pianoroll, output)
def testSequenceToPianorollWithBlankFrameBeforeOffset(self):
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 3
Instances
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testSequenceToPianoroll
Project Name: tensorflow/magenta
Commit Name: 7f353445e2a692dfad0ac176a72484055e08ab1f
Time: 2018-10-31
Author: ekelsen@gmail.com
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testSequenceToPianoroll
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testSequenceToPianorollControlChanges
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/models/onsets_frames_transcription/infer_util.py
Class Name:
Method Name: posterior_pianoroll_image
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testSequenceToPianorollWithBlankFrameBeforeOffset
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/models/onsets_frames_transcription/infer_util.py
Class Name:
Method Name: score_sequence
Project Name: tensorflow/magenta
Commit Name: 4393c218147e92d805bbe85fddebd3397c766715
Time: 2018-10-30
Author: adarob@google.com
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testSequenceToPianorollWithBlankFrameBeforeOffsetOutOfOrder