a146d001bf63734851d5a02c2b96d1ef29a61e96,magenta/music/sequences_lib_test.py,SequencesLibTest,testStepsPerBar,#SequencesLibTest#,292
Before Change
self.assertEqual(self.expected_quantized_sequence, quantized)
def testStepsPerBar(self):
quantized = sequences_lib.QuantizedSequence()
quantized.from_note_sequence(self.note_sequence, self.steps_per_quarter)
self.assertEqual(16, quantized.steps_per_bar())
self.note_sequence.time_signatures[0].numerator = 6
self.note_sequence.time_signatures[0].denominator = 8
After Change
self.assertProtoEquals(expected_quantized_sequence, quantized_sequence)
def testStepsPerBar(self):
qns = sequences_lib.quantize_note_sequence(
self.note_sequence, self.steps_per_quarter)
self.assertEqual(16, sequences_lib.steps_per_bar_in_quantized_sequence(qns))
self.note_sequence.time_signatures[0].numerator = 6
self.note_sequence.time_signatures[0].denominator = 8
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorflow/magenta
Commit Name: a146d001bf63734851d5a02c2b96d1ef29a61e96
Time: 2016-11-15
Author: curtis@thefjord.org
File Name: magenta/music/sequences_lib_test.py
Class Name: SequencesLibTest
Method Name: testStepsPerBar
Project Name: tensorflow/magenta
Commit Name: a146d001bf63734851d5a02c2b96d1ef29a61e96
Time: 2016-11-15
Author: curtis@thefjord.org
File Name: magenta/pipelines/pipelines_common.py
Class Name: Quantizer
Method Name: transform
Project Name: tensorflow/magenta
Commit Name: a146d001bf63734851d5a02c2b96d1ef29a61e96
Time: 2016-11-15
Author: curtis@thefjord.org
File Name: magenta/models/melody_rnn/melody_rnn_sequence_generator.py
Class Name: MelodyRnnSequenceGenerator
Method Name: _generate