[Csnd] filelen calculation at k-time?
Date | 2011-07-07 21:00 |
From | "Art Hunkins" |
Subject | [Csnd] filelen calculation at k-time? |
I'm in the process of making a sample player where samples are instantiated by ASCII keypresses and the event opcode. Event needs to know the sample length ("always on" is not what I want here). Since sample selection is at k-time, I'd like (with filelen or other opcode) to determine duration at k-time as well. It appears that filelen only operates at i-time. I know I *could* determine all filelengths at i-time, write them to a table which I'd access at k-time. I was just wondering if there were a simpler way to do it during performance. Any ideas? Art Hunkins Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-07-07 22:19 |
From | joachim heintz |
Subject | Re: [Csnd] filelen calculation at k-time? |
this should be possible with the reinit opcode. can you provide an example? Am 07.07.2011 22:00, schrieb Art Hunkins: > I'm in the process of making a sample player where samples are > instantiated by ASCII keypresses and the event opcode. Event needs to > know the sample length ("always on" is not what I want here). Since > sample selection is at k-time, I'd like (with filelen or other opcode) > to determine duration at k-time as well. > > It appears that filelen only operates at i-time. > > I know I *could* determine all filelengths at i-time, write them to a > table which I'd access at k-time. I was just wondering if there were a > simpler way to do it during performance. > > Any ideas? > > Art Hunkins > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-07-07 23:03 |
From | Victor Lazzarini |
Subject | Re: [Csnd] filelen calculation at k-time? |
How many samples do you have? I would read the file lengths at start time, store them in a table and then access them whenever I needed. Victor On 7 Jul 2011, at 21:00, Art Hunkins wrote: > I'm in the process of making a sample player where samples are > instantiated by ASCII keypresses and the event opcode. Event needs > to know the sample length ("always on" is not what I want here). > Since sample selection is at k-time, I'd like (with filelen or other > opcode) to determine duration at k-time as well. > > It appears that filelen only operates at i-time. > > I know I *could* determine all filelengths at i-time, write them to > a table which I'd access at k-time. I was just wondering if there > were a simpler way to do it during performance. > > Any ideas? > > Art Hunkins > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-07-07 23:04 |
From | Victor Lazzarini |
Subject | Re: [Csnd] filelen calculation at k-time? |
I mean reading the lengths and storing these lenghts in a table. On 7 Jul 2011, at 23:03, Victor Lazzarini wrote: > How many samples do you have? I would read the file lengths at start > time, store them in a table and then access them whenever I needed. > > Victor > > > On 7 Jul 2011, at 21:00, Art Hunkins wrote: > >> I'm in the process of making a sample player where samples are >> instantiated by ASCII keypresses and the event opcode. Event needs >> to know the sample length ("always on" is not what I want here). >> Since sample selection is at k-time, I'd like (with filelen or >> other opcode) to determine duration at k-time as well. >> >> It appears that filelen only operates at i-time. >> >> I know I *could* determine all filelengths at i-time, write them to >> a table which I'd access at k-time. I was just wondering if there >> were a simpler way to do it during performance. >> >> Any ideas? >> >> Art Hunkins >> >> >> Send bugs reports to the Sourceforge bug tracker >> https://sourceforge.net/tracker/?group_id=81968&atid=564599 >> Discussions of bugs and features can be posted here >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >> "unsubscribe csound" >> > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |