Skip to content

Commit 2c74454

Browse files
Revert "Fixing OSC Sender"
This reverts commit 1803600.
1 parent 91bb5e2 commit 2c74454

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sardine_core/handlers/osc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,22 @@ def send(
102102
divisor: NumericElement | Callable[[], NumericElement] = 1,
103103
rate: NumericElement | Callable[[], NumericElement] = 1,
104104
sort: bool | Callable[[], bool] = True,
105-
**rest_of_pattern: dict,
105+
**pattern: NumericElement,
106106
) -> None:
107107
if address is None:
108108
return
109109

110110
if self.apply_conditional_mask_to_bars(
111-
pattern=rest_of_pattern,
111+
pattern=pattern,
112112
):
113113
return
114114

115-
pattern = {"address": _resolve_if_callable(address)}
116-
117115
# Evaluate all potential callables
118116
for key, value in rest_of_pattern.items():
119117
pattern[key] = _resolve_if_callable(value)
120118

119+
pattern["address"] = _resolve_if_callable(address)
120+
121121
deadline = self.env.clock.shifted_time
122122
for message in self.pattern_reduce(
123123
pattern,

0 commit comments

Comments
 (0)