Browse Source

Fix timesig assertion that creeped during vico-template development with jack BBT

master
Nils 5 years ago
parent
commit
050a181b54
  1. 4
      template/engine/sequencer.py

4
template/engine/sequencer.py

@ -625,9 +625,9 @@ class TempoMap(object):
def setTimeSignature(self, timesigNum:int, timesigDenom:int):
"""Simple traditional timesig setter. Overrides all other timesig data.
Works in tandem with self.setTimeSignature.
"""
"""
assert timesigNum > 0, timesigNum
assert timesigDenom in traditionalNumberToBaseDuration, timesigDenom
#assert timesigDenom in traditionalNumberToBaseDuration, (timesigDenom, traditionalNumberToBaseDuration) For Laborejo this makes sense, but Patroneo has a fallback option with irregular timesigs: 8 steps in groups of 3 to make a quarter is valid. Results in "8/12"
currentValue, OLD_timesigNum, OLD_timesigDenom = self._tempoMap[0]
self.setTempoMap({0:(currentValue, timesigNum, timesigDenom)})

Loading…
Cancel
Save