def generate(self, _): if self.value_count <= 1: self.value = "" self.value = semi([ KeySplinesValue.control_point() for _ in range(self.value_count - 1) ])
def linear_time_list(num): if num == 1: return "0" values = [0] for _ in range(num - 2): values.append(float(Random.float01())) values.append(1) return semi(list(map(str, sorted(values))))
def discrete_time_list(num): values = [str(i) for i in range(num)] return semi(values)
def generate(self, _): self.value = semi([Random.float01() for _ in range(self.value_count)])
def __str__(self): return semi(list(map(str, self.values)))
def __str__(self): return semi(list(map(str, self.declarations)))