Skip to content

Commit

Permalink
Fixing OSC Sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Jul 23, 2024
1 parent cba782b commit 1803600
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sardine_core/handlers/osc.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ def send(
divisor: NumericElement | Callable[[], NumericElement] = 1,
rate: NumericElement | Callable[[], NumericElement] = 1,
sort: bool | Callable[[], bool] = True,
**pattern: NumericElement,
**rest_of_pattern: dict,
) -> None:
if address is None:
return

if self.apply_conditional_mask_to_bars(
pattern=pattern,
pattern=rest_of_pattern,
):
return

pattern = {"address": _resolve_if_callable(address)}

# Evaluate all potential callables
for key, value in rest_of_pattern.items():
pattern[key] = _resolve_if_callable(value)

pattern["address"] = _resolve_if_callable(address)

deadline = self.env.clock.shifted_time
for message in self.pattern_reduce(
pattern,
Expand Down

0 comments on commit 1803600

Please sign in to comment.