From 75090be067b9f28a2546334127b2d08bb367ea58 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 12 Apr 2020 18:15:32 +0200 Subject: [PATCH] lib/sc: fix unpack on certain Lua versions reported by @ariutti and @v1a1l1e1 --- core/registry.moon | 2 -- lib/midi/launchctl.moon | 1 - lib/sc.moon | 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/registry.moon b/core/registry.moon index 53d2d3a..a0134ec 100644 --- a/core/registry.moon +++ b/core/registry.moon @@ -5,8 +5,6 @@ import Result from require 'core.result' import Error from require 'core.error' -unpack or= table.unpack - class Registry --- internals for `Tag` -- @section internals diff --git a/lib/midi/launchctl.moon b/lib/midi/launchctl.moon index 1e33cc4..cbabe5a 100644 --- a/lib/midi/launchctl.moon +++ b/lib/midi/launchctl.moon @@ -2,7 +2,6 @@ import ValueStream, EventStream, Op, Input, val, evt from require 'core.base' import apply_range, bit from require 'lib.midi.core' import bor, lshift from bit -unpack or= table.unpack color = (r, g) -> bit.bor 12, r, (bit.lshift g, 4) cc_seq = ValueStream.meta diff --git a/lib/sc.moon b/lib/sc.moon index 5d68eee..fb9c781 100644 --- a/lib/sc.moon +++ b/lib/sc.moon @@ -2,6 +2,8 @@ import Op, ValueStream, Input, val, evt from require 'core.base' import pack from require 'osc' import dns, udp from require 'socket' +unpack or= table.unpack + play = ValueStream.meta meta: name: 'play'