-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testsuite: fix NodeProxy ar mapping test #5717
testsuite: fix NodeProxy ar mapping test #5717
Conversation
Hi @elgiano |
145c157
to
f90657d
Compare
Actually one thing: |
f90657d
to
ffafaa9
Compare
Sure! I also reduced the server's latency in order for those waits to be enough, since I noticed it was still failing for this reason. |
ffafaa9
to
73983cf
Compare
73983cf
to
dd009ec
Compare
Maybe this is a larger question, but wouldn't it be possible to set server latency to |
sync doesn't work because NodeProxy doesn't send OSC to server immediately... for example wrapping it in makeBundle doesn't generate any bundle. I'm still investigating if there's any other way though. Edit: and I can't find it... @telephon do you know anything we could do to avoid guessing a time to wait and use |
That is strange, shouldn't be like this. (
n = NodeProxy(s);
s.openBundle;
n.source = { |freq=332| SinOsc.ar(freq) * 0.1 };
s.sync;
n.play;
s.sync;
n.set(\freq, 341);
s.addr.bundle.postcs;
s.closeBundle;
)
returns
Right now, I don't understand why the synthDef sending is not included in the bundle. |
I think it's because Replacing [
[ 'syncFlag', [
[ 5, Int8Array[ 83, 67, 103, 102, 0, 0, 0, 2, 0, 1, 23, 116, 101, 109, 112, 95, 95, 48, 45, 49, 49, 50, 51, 48, 53, 54, 56, 57, 50, 95, 49, 48, 50, 55, 0, 0, 0, 5, 0, 0, 0, 0, 63, -128, 0, 0, 64, 0, 0, 0, -62, -58, 0, 0, 64, 64, 0, 0, 0, 0, 0, 4, 67, -90, 0, 0, 63, -128, 0, 0, 60, -93, -41, 10, 0, 0, 0, 0, 0, 0, 0, 4, 4, 102, 114, 101, 113, 0, 0, 0, 0, 4, 103, 97, 116, 101, 0, 0, 0, 1, 8, 102, 97, 100, 101, 84, 105, 109, 101, 0, 0, 0, 2, 3, 111, 117, 116, 0, 0, 0, 3, 0, 0, 0, 8, 7, 67, 111, 110, 116, 114, 111, 108, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2, 68, 67, 2, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1, -1, -1, -1, 0, 0, 0, 0, 2, 7, 67, 111, 110, 116, 114, 111, 108, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 7, 67, 111, 110, 116, 114, 111, 108, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 6, 69, 110, 118, 71, 101, 110, 1, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 1, -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 2, -1, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 2, -1, -1, -1, -1, 0, 0, 0, 1, -1, -1, -1, -1, 0, 0, 0, 3, -1, -1, -1, -1, 0, 0, 0, 1, -1, -1, -1, -1, 0, 0, 0, 1, -1, -1, -1, -1, 0, 0, 0, 4, -1, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, -1, 0, 0, 0, 1, -1, -1, -1, -1, 0, 0, 0, 4, -1, -1, -1, -1, 0, 0, 0, 0, 1, 12, 66, 105, 110, 97, 114, 121, 79, 112, 85, 71, 101, 110, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 2, 7, 67, 111, 110, 116, 114, 111, 108, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 3, 0, 3, 79, 117, 116, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0 ] ],
[ 21, 1016, 1, 1 ]
], nil ],
[ 9, 'temp__0-1123056892_1027', 1017, 1, 1016, 'out', 8, 'fadeTime', 0.02, 'i_out', 8 ],
[ 'syncFlag', nil, nil ],
[ 21, 1018, 1, 1 ],
[ 9, "system_link_audio_1", 1019, 1, 1018, "out", 0, "in", 8, "level", 1.0, "fadeTime", 0.02, "vol", 1.0 ],
[ 'syncFlag', nil, nil ],
[ 15, 1016, 'freq', 341 ]
] |
Purpose and Motivation
Fix what looks like a typo in
TestNodeProxyBusMapping:test_audiorate_mapping
.I think control proxy for this test should be audio rate, for the mapping to be audio rate. Other than this, having it control rate with no
numChannels
specified makes it mixed down to mono by default, creating the discrepancy that makes this test impossible to pass. InitializingcontrolProxy
as\audio
fixes it.Types of changes
To-do list