Esempio n. 1
0
  def start_elements(self, names):
    score_names = Split.split_scores(names)
    element_names = []
    for score_file, name in score_names:
      if name:
        is_file = True
      else:
        name = score_file
        is_file = Yaml.has_extension(score_file)
        if is_file:
          name = name[:-4]
        elif name not in self.elements:
          is_file = True
      if is_file:
        element_names.extend(self._load_raw_elements([[score_file, name]]))
      else:
        element_names.append(name)

    return self.perform_element('start', element_names)
Esempio n. 2
0
    def start_elements(self, names):
        score_names = Split.split_scores(names)
        element_names = []
        for score_file, name in score_names:
            if name:
                is_file = True
            else:
                name = score_file
                is_file = DataFileName.has_extension(score_file)
                if is_file:
                    name = name[:-4]
                elif name not in self.elements:
                    is_file = True
            if is_file:
                element_names.extend(
                    self._load_raw_elements([[score_file, name]]))
            else:
                element_names.append(name)

        return self.perform_element('start', element_names)
Esempio n. 3
0
 def _load_elements(self, names):
     return self._load_raw_elements(Split.split_scores(names))
Esempio n. 4
0
 def _load_elements(self, names):
   return self._load_raw_elements(Split.split_scores(names))