fast output (re)sets trip up asl #209
Comments
|
Thanks for the test script. I’ll investigate!
… On 8 Oct 2019, at 08:37, Phil Quitslund ***@***.***> wrote:
hacking up a monosynth patch and hit this while playing around w/ note retriggers.
here's a distilled test case that repros for me on norns w/ crow v1.0.0:
-- crow stress test
function init()
end
local function sleep(n)
os.execute("sleep " .. tonumber(n))
end
function redraw()
print('stressing...')
sleep(2)
crow.send('^^v')
for i=1,100 do
print('>>')
crow.output[2].volts = 0
crow.output[2].action = 'ar(1,5)'
crow.output[2].execute()
sleep(0.01)
end
print('done')
end
salient repl output:
...
crow: [string "local Asl = {}..."]:115: attempt to get length of a nil value (field 'exe')
crow: no asl active
/cc @trentgill @tehn
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
from user Dewb on lines. seems similar: [details="test script"]
[/details] This works initially -- but the pulse sounds too fast, almost double-time. And eventually, sometime between a couple triggers and a couple minutes later, it starts failing with this error:
Sometimes, if the script is able to run for a while, periodic instances of this error also appear in the console. Sometimes the error is accompanied by a single missed pulse, but not always.
If I move the (In both cases, I also have about a 10% failure rate with hitting Play in maiden and having the script work, hitting Play again usually fixes it, maybe I need a delay after calling |
|
for the fact that it seems fine for some seconds to minutes before starting to fail suggests a memory issue. should try calling |
|
After some reflection I think the |
|
The plot thickens. I did some more testing, and it looks like moving the So I took a look at output 2 on an oscilloscope to see if the pulses were not being omitted, or if they were and Plaits was missing them. Surprisingly, the output was not a 0-8V pulse train, but a -5/+5 triangle LFO! (I'm guessing that's the default linear ramp LFO action behavior.) Changing the I moved the So it looks like there are three interesting things going on here:
|
|
This seems like a race-condition between the slopes library & the usb-input, as it's norns specific. The same script running natively on crow doesn't have the problem. Probably because either the I'm not entirely sure the best way to go about solving this. It seems the only reason to call |
|
my use case was env re-trigger so something like |
|
Fixed by #238 |
hacking up a monosynth patch and hit this while playing around w/ note retriggers.
here's a distilled test case that repros for me on norns w/ crow
v1.0.0:salient repl output:
/cc @trentgill @tehn
The text was updated successfully, but these errors were encountered: