Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pd-lua
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
pd-lua
Commits
4a522e5f
Commit
4a522e5f
authored
7 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
pd.lua: Lua 5.3 compatibility
parent
6de6bb00
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd.lua
+4
-5
4 additions, 5 deletions
pd.lua
with
4 additions
and
5 deletions
pd.lua
+
4
−
5
View file @
4a522e5f
...
...
@@ -269,7 +269,7 @@ function pd.Class:destruct()
end
function
pd
.
Class
:
dispatch
(
inlet
,
sel
,
atoms
)
local
m
=
self
[
"in_"
..
inlet
..
"_"
..
sel
]
local
m
=
self
[
string.format
(
"in_%d_%s"
,
inlet
,
sel
)
]
if
type
(
m
)
==
"function"
then
if
sel
==
"bang"
then
return
m
(
self
)
end
if
sel
==
"float"
then
return
m
(
self
,
atoms
[
1
])
end
...
...
@@ -287,7 +287,7 @@ function pd.Class:dispatch(inlet, sel, atoms)
if
sel
==
"list"
then
return
m
(
self
,
inlet
,
atoms
)
end
return
m
(
self
,
inlet
,
atoms
)
end
m
=
self
[
"in_"
..
inlet
]
m
=
self
[
string.format
(
"in_%d"
,
inlet
)
]
if
type
(
m
)
==
"function"
then
return
m
(
self
,
sel
,
atoms
)
end
...
...
@@ -296,9 +296,8 @@ function pd.Class:dispatch(inlet, sel, atoms)
return
m
(
self
,
inlet
,
sel
,
atoms
)
end
self
:
error
(
"no method for `"
..
sel
..
"' at inlet "
..
inlet
..
" of Lua object `"
..
self
.
_name
..
"'"
string.format
(
"no method for `%s' at inlet %d of Lua object `%s'"
,
sel
,
inlet
,
self
.
_name
)
)
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment