示例#1
0
 def forte_name(fname):
     """
     A static method that returns a PCSet object with the fort-name provided
     as a string argument.
     Returns an empty PCSet if the argument is not a string with a valid
     Forte name.
     """
     from sator.pcset import PCSet
     fset = utils.from_forte(fname)
     new_set = PCSet()
     if fset:
         new_set.pitches = fset
     return new_set
示例#2
0
 def testForteInt(self):
     for each in self.sets:
         self.assertEqual(each.pcint,
                          utils.setint(utils.from_forte(each.forte)))