From 16093f250911d6a9c6b7243bcd975f30568981d9 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 13 Apr 2026 22:51:29 -0500 Subject: [PATCH] add support for OSC timetag arg --- osc.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osc.go b/osc.go index 7f749c1..d00620f 100644 --- a/osc.go +++ b/osc.go @@ -434,9 +434,16 @@ func readOSCArg(bytes []byte, oscType string) (OSCArg, []byte, error) { } oscArg.Value = argFloat remainingBytes = bytesLeft + case "t": + argTimeTag, bytesLeft, err := readOSCTimeTag(bytes) + if err != nil { + readArgError = err + } + oscArg.Value = argTimeTag + remainingBytes = bytesLeft default: fmt.Printf("unsupported osc type: %s\n", oscType) - readArgError = errors.New("unsupported osc type: " + oscType) + readArgError = errors.New("unsupported OSC argument type: " + oscType) } return oscArg, remainingBytes, readArgError }