DSY_item置顶.lua:66: bad argument #1 to 'new_array' (invalid size)
已经确定
已安装 js api
脚本版本 1.0
操作复现
第60 - 66行代码为:
local scaled_len=wDraw
local PCM_source = reaper.GetMediaItemTake_Source(take)
local n_chans = reaper.GetMediaSourceNumChannels(PCM_source)
local peakrate = scaled_len/len -- pixels/seconds
local n_spls = math.floor(len*peakrate + 0.5)
local want_extra_type = -1--115 -- 's' char
local buf = reaper.new_array(n_spls*n_chans*2) -- no spectral info