diff --git a/pycarla/audiorecorder.py b/pycarla/audiorecorder.py index 82976b7..b603c97 100644 --- a/pycarla/audiorecorder.py +++ b/pycarla/audiorecorder.py @@ -119,7 +119,7 @@ def wait(self, timeout=None, in_fw=False, out_fw=False): assert timeout is not None or self._needed_samples > 0, "Please, provide one between`timeout` and `duration`" reached_timeout = False if self.is_active: - self.client.set_freewheel(in_fw) + self.set_freewheel(in_fw) # wait the needed number of blocks ttt = time.time() CONTINUE = True @@ -133,7 +133,7 @@ def wait(self, timeout=None, in_fw=False, out_fw=False): recorded_frames = sum(i.shape[1] for i in self.recorded) CONTINUE = recorded_frames < self._needed_samples - self.client.set_freewheel(out_fw) + self.set_freewheel(out_fw) self.deactivate() try: self.recorded = np.concatenate(self.recorded, axis=1) diff --git a/pycarla/midiplayer.py b/pycarla/midiplayer.py index 118352f..4bb7263 100644 --- a/pycarla/midiplayer.py +++ b/pycarla/midiplayer.py @@ -52,9 +52,9 @@ def wait(self, in_fw=False, out_fw=False): it then set freewheeling mode to `out_fw` before exiting """ if hasattr(self, 'end_midiplayer'): - self.client.set_freewheel(in_fw) + self.set_freewheel(in_fw) self.end_midiplayer.wait() - self.client.set_freewheel(out_fw) + self.set_freewheel(out_fw) self.deactivate() def clear(self): diff --git a/pyproject.toml b/pyproject.toml index 0544913..65545ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pycarla" -version = "0.3.1" +version = "0.3.2" description = "Use VST/LV2/etc. plugins with realtime abilities in Python" authors = ["Federico Simonetta "] license = "GPL-3.0-only"