Skip to content

Commit 7a440c7

Browse files
committed
Update osc utility name
1 parent 65ecc47 commit 7a440c7

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

Markers/Create marker with name via OSC.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ local scriptFolder = scriptDirectory:gsub(scriptName..".lua", "")
7070
package.path = scriptFolder .. '?.lua'
7171

7272
-- Require the osc module
73-
local osc = require('osc')
73+
local osc = require('qosc')
7474

7575
-- debug
7676
--local msg = osc.get()

Markers/osc.lua renamed to Markers/qosc.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
--[[
2-
@description osc
2+
@description osc utility
33
@version 1.0
4+
@changelog
5+
+ Initial version
6+
@noindex
47
]]
58

69
-- Utility functions to get and parse OSC message and argument from REAPER action context
710

8-
local osc = {}
11+
local qosc = {}
912

10-
function osc.parse(context)
13+
function qosc.parse(context)
1114
local msg = {}
1215

1316
-- Extract the message
@@ -29,13 +32,13 @@ function osc.parse(context)
2932
return msg
3033
end
3134

32-
function osc.get()
35+
function qosc.get()
3336
local is_new, name, sec, cmd, rel, res, val, ctx = reaper.get_action_context()
3437
if ctx == nil or ctx == '' then
3538
return nil
3639
end
3740

38-
return osc.parse(ctx)
41+
return qosc.parse(ctx)
3942
end
4043

41-
return osc
44+
return qosc

0 commit comments

Comments
 (0)