Csound Csound-dev Csound-tekno Search About

[Csnd] timedseq problems again

Date2008-07-28 14:59
From"vallste@libero.it"
Subject[Csnd] timedseq problems again
Attachmentspatternseq.zip  
Hello,
In the file attached there are a sequencer I'm writing with some external txt 
to be loaded as ftable to be used by timedseq.
What this will be supposed to do is to contineously play pattern stored in 
the external files  (written in the same way as csound scores) and allow to 
change (by mean of key number 1 or 2 at the moment) the pattern palyed only 
when it's finished.

These are the instruments and what they do:
Instruments 1, 2:
reads tables (external txt files) and write the length in seconds in function 
table 1
Instrument 100
sense the key pressed to select the pattern (according to tables 2 and 3), 
calculate the phase to read the tables (for inst 201), 
turn off and on (with the new table number) the instrument 201 if a new 
pattern is selected via computer keyboard and the previous pattern has 
finished.
Instrument 201
Generate i events for instrument 301 according to the pattern selected 
(stored in the GEN 23 function tables)
Instrument 301
Generate sound

I have the following problem: changing pattern the first (and last) note is 
not payed by inst 201 (I suppose this is a problem similar of the one already 
posted no the list) unless a key in the keyboard is pressed (it seems a bug).

Can anyone help, please?

Bye

Stefano