I’d like to have a third real-time control to set a parameter corresponding to p2 field in the score, so each player can start in a different moment.
But I don’t have any idea if it’s possible.
For instance I want soundin#1 to start 1 second later, like if the score statement was “i1 1”. But I’d like to set it by a slider, in the same way I did with level and pan. So, for each soundin I set onset, level and pan, and then play the whole instrument.
thank you a lot for your help. I was looking for something complicated and didn’t think about the delay option, that is quite smart.
I have tried with it and it works very fine, thank you again. But I will try the first option as well and let you know.
I have been working fine with it for a while, then suddenly I got this error message:
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
diskin2: opened ‘Do3_01.aif’:
96000 Hz, 2 channel(s), 3185863 sample frames
INIT ERROR in instr 1: illegal delay time
aL1 delay aL1 iDelay1 0
INIT ERROR in instr 1: illegal delay time
aR1 delay aR1 iDelay1 0
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
diskin2: opened ‘Si4_02.aif’:
96000 Hz, 2 channel(s), 9216593 sample frames
INIT ERROR in instr 1: illegal delay time
aL80 delay aL80 iDelay80 0
INIT ERROR in instr 1: illegal delay time
aR80 delay aR80 iDelay80 0
B 0.000 - note deleted. i1 had 160 init errors
Score finished in csoundPerformKsmps() with 2.
inactive allocs returned to freespace
end of score. overall amps: 0.00000 0.00000
overall samples out of range: 0 0
1 errors in performance
Thank you! This one works:
iDelay1 limit iDelay1, 0.001, 100
Now I don’t get error messages, only this warning:
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
WARNING: InputChannelCallback not set.
diskin2: opened ‘Si4_02.aif’:
96000 Hz, 2 channel(s), 9216593 sample frames
What does it mean? is it maybe the reason why there is no sound?
how do you use csound (via cabbage, csoundqt, blue, …)? which version
of csound did you install?
i would guess that when you get your values via invalue, the warning is
not relevant for you. and i don’t understand what you mean by “there is
no sound”.
I am using Csound 6.10 it via CsoundQt (Version 0.9.5). I currently use the two softwares playing several .csd files without any problem.
No sound means that I can’t hear any sound output.
But the oddest thing is that the original orchestra - without setting limits for the delay - worked fine for weeks, I also produced many sounds with it.
hmmm ---- 6.10 is really old.
i’d recommend this: make a simple test with invalue to see if it is
working at all.
if you can, upgrade to a more recent csound version.
another option is to use the chn opcodes instead of invalue/outvalue.