S4 icon indicating copy to clipboard operation
S4 copied to clipboard

Compiling against lua 5.3 limits functionality

Open ilicog opened this issue 7 years ago • 2 comments

S4 seems to compile fine against lua-5.3, but some functionality is lost. Specifically, calling the Interpolator (or the SpectrumSampler) object gives the following errors (using the lua files in the "examples" dir)

interpolator.lua:9: attempt to index a userdata value (global 'interpolator') stack traceback: interpolator.lua:9: in main chunk

sampler.lua:40: attempt to index a userdata value (global 'sampler') stack traceback: sampler.lua:40: in main chunk

Lua 5.2 is no longer available on some linux distros (e.g. Fedora): is there a workaround for this?

ilicog avatar Mar 15 '17 03:03 ilicog

I have the same issue using the lua5-2 version and the master version of S4. However, I also have an older version of S4 which works fine with the Interpolator function : git checkout bb6038db8cb7bb84a945ced539a09bb7c30a1047 https://github.com/victorliu/S4/commit/bb6038db8cb7bb84a945ced539a09bb7c30a1047

This version is from April 2015. There must have been some modification of S4 in the meantime which altered the behaviour of the interpolator object.

cleopaul avatar Jun 13 '17 13:06 cleopaul

this is partially fixed in this pull request for those who need at least a linear interpolator.

d-a-v avatar Jun 16 '17 12:06 d-a-v