def settings_str(self): return """ LEVEL: Level: {0} Pan: {1} Decay: {2} TONE: Tune: {3} Fine: {4} Cutoff: {5} FILTER: Type: {6} Decay: {7} Pitch: {8} Filter: {9} Level: {10} """.format(self.lvl_level, helpers.pretty_pan(self.lvl_pan), self.lvl_decay, self.tone_tune, self.tone_fine, self.tone_cutoff, helpers.pretty_filter_type(self.vel_filtertype), self.vel_decay, self.vel_pitch, self.vel_filter, self.vel_level)
def test_pretty_pan_center(self): value = 0 expected = "0" actual = target.pretty_pan(value) self.assertEqual(expected, actual)
def test_pretty_pan_right(self): value = 1 expected = "R%s" % abs(value) actual = target.pretty_pan(value) self.assertEqual(expected, actual)
def test_pretty_pan_left_hard(self): value = -127 expected = "L%s" % abs(value) actual = target.pretty_pan(value) self.assertEqual(expected, actual)