In my compositions I often use an instrument to generate line segments that are sent via zak to another instrument.  Usually I call this instrument several times in succession to create a more complex signal, basically like a break point line that is being defined with score statements.  These instruments are very simple, generally in the form of something like:

intsr 2
kout linseg p4, p3, p5
zkw kout, 0
endin

instr 1
kin zkr 0
;do something here
endin

That has been working well for me in the past where I use this technique to make slower moving signals.  However, in a recent composition, one with an upbeat tempo and short line segments, I found I was getting discontinuities between the individual score events with this setup.  More specifically, the signal drops to 0, only a few samples in length at maximum.  Strangely, these discontinuities are not always present depending on where the line segments are started.  Using the same events with the same lengths and relative positions but shifted to a different spot gives different results.

My suspicion is that there is a limit the how precise the score statements can be causing rounding errors.  Right now I am using positions and lengths with 3 numbers after the decimal point at about 130 bpm.  Statements such as the following are typical:

i2    8.125    .625    0    .3
i2    8.75      .125    .3   .93
i2    8.875    .25      .93 1

If it makes any difference, I am not currently making use of + and . score elements with these particular line generating instruments (I am using another piece of software to generate the events) but the positions and lengths do add up to being back to back with no space in between them.

So, is there a maximum precision for score events as i am suspecting that would be within the ranges I indicated above or should I be looking for a different culprit?

Thanks.

--
Electronically,
Jeff Taylor