Message
OscMsg
OscMsg(
address: str,
data: str | bytes | bool | int | float | list | tuple = None,
*,
source: None | OscIn = None
)
Bases: Msg
Open Sound Control message
Parameters:
-
address(str) –Open Sound Control message address
-
data(str | bytes | bool | int | float | list | tuple, default:None) –Open Sound Control message data
-
source(None | OscIn, default:None) –The
OscIninstance that generated the message
matches
matches(
address: None | Container | str = None,
data: (
None | Container | str | bytes | bool | int | float | list | tuple
) = None,
) -> bool
Checks if message's attributes match all provided attribute conditions:
-
If condition is
Noneor omitted, it matches anything. -
If condition equals attribute, it matches the attribute.
-
If condition is a container (list, tuple) and contains the attribute, it matches the attribute.
Use Not(condition) to invert condition matching.
Returns:
-
bool–Trueif all attributes match,Falseif any does not match