Skip to content

Commit

Permalink
fixed freewheeling
Browse files Browse the repository at this point in the history
  • Loading branch information
00sapo committed Jul 22, 2021
1 parent 92d407c commit ed94d85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pycarla/audiorecorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pycarla/midiplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "GPL-3.0-only"
Expand Down

0 comments on commit ed94d85

Please sign in to comment.