schedule other instrument at end of performance time
Date | 2017-03-03 15:26 |
From | Richard |
Subject | schedule other instrument at end of performance time |
Say I schedule instr 1 for 10 seconds. At the end of this I want to schedule instr 2 for x seconds. What is the best way to do this? Richard Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-03-03 15:29 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
This should be scoreless of course... On 03/03/17 16:26, Richard wrote: > Say I schedule instr 1 for 10 seconds. At the end of this I want to > schedule instr 2 for x seconds. > What is the best way to do this? > > Richard > Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-03-03 15:37 |
From | John ff |
Subject | Re: schedule other instrument at end of performance time |
Depends on what x is. If you know the value then schedule from inst 1 at I time.
Sent from TypeApp
On 3 Mar 2017, at 15:27, Richard <zappfinger@GMAIL.COM> wrote: Say I schedule instr 1 for 10 seconds. At the end of this I want to |
Date | 2017-03-03 15:44 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
Yes, but I want to schedule instr 2 after instr 1 is done, in
this case after 10 seconds (could also be variable). Richard On 03/03/17 16:37, John ff wrote:
|
Date | 2017-03-03 15:53 |
From | Oeyvind Brandtsegg |
Subject | Re: schedule other instrument at end of performance time |
Use a release flag? 3. mar. 2017 7.45 a.m. skrev "Richard" <zappfinger@gmail.com>:
|
Date | 2017-03-03 16:05 |
From | Anders Genell |
Subject | Re: schedule other instrument at end of performance time |
Or monitor instr 1 with the "active" opcode and schedule instr 2 as soon as instr 1 is not active? Regards, Anders
|
Date | 2017-03-03 16:10 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
Something like that, but that would require an additional monitoring instrument. I would like to do it from instr 1. The general idea is: from instr 0 schedule instr 1 for x seconds Richard On 03/03/17 17:05, Anders Genell wrote:
|
Date | 2017-03-03 16:24 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
instr 1 schedule(2,p2+p3,p3) endin ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 3 Mar 2017, at 15:44, Richard |
Date | 2017-03-03 16:28 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
Actually, scrap that, schedule is now-based. This is a sequence of forever pings: schedule(1,0,1) instr 1 a1 expon 1, p3, 0.001 out oscili(a1*0dbfs, A4) schedule(1,p3,p3) endin ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 3 Mar 2017, at 16:24, Victor Lazzarini |
Date | 2017-03-03 16:33 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
And this is like Stockhausen’s famous gesture from Kontakte schedule(1,0,0.001) instr 1 a1 expon 1, p3, 0.001 out oscili(a1*0dbfs, A4) schedule(1,p3,p3*1.05) endin ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 3 Mar 2017, at 16:28, Victor Lazzarini |
Date | 2017-03-03 16:34 |
From | Oeyvind Brandtsegg |
Subject | Re: schedule other instrument at end of performance time |
Yes, but if you don't know p3 for i1 you can do xtratim 1/kr krelease release if krelease > 0 then .... schedule your other instr endif 2017-03-03 8:28 GMT-08:00 Victor Lazzarini |
Date | 2017-03-03 16:35 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
I assumed he knows it: “from instr 0 schedule instr 1 for x seconds from instr 1 (after x seconds) schedule instr 2 for y seconds, etc.” ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 3 Mar 2017, at 16:34, Oeyvind Brandtsegg |
Date | 2017-03-03 16:38 |
From | Oeyvind Brandtsegg |
Subject | Re: schedule other instrument at end of performance time |
That's beautiful, and compact. 2017-03-03 8:33 GMT-08:00 Victor Lazzarini |
Date | 2017-03-03 21:57 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
I came to that same conclusion. Funny thing is, I have 4 instruments now in a row, in principle it works, but instr 4 won't stop. It gets a p3 of 8, but keeps on going forever... Richatf On 03/03/17 17:28, Victor Lazzarini wrote: > Actually, scrap that, schedule is now-based. This is a sequence of forever pings: > > schedule(1,0,1) > instr 1 > a1 expon 1, p3, 0.001 > out oscili(a1*0dbfs, A4) > schedule(1,p3,p3) > endin > > ======================== > Prof. Victor Lazzarini > Dean of Arts, Celtic Studies, and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 3 Mar 2017, at 16:24, Victor Lazzarini |
Date | 2017-03-04 09:51 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
This simple csd show the problem: instr 2 is running indefinitely, while it is scheduled to run for 2 seconds only |
Date | 2017-03-04 10:14 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
Not here. I just tested your code and it stops after 2secs. I’ve added a printk 0.25, timeinsts:k() to show it, and this is the printout I get instr 2: p3 = 2.000 i 2 time 1.00002: 0.00002 i 2 time 1.12501: 0.12501 i 2 time 1.37501: 0.37501 i 2 time 1.62501: 0.62501 i 2 time 1.87501: 0.87501 i 2 time 2.12501: 1.12501 i 2 time 2.37501: 1.37501 i 2 time 2.62501: 1.62501 i 2 time 2.87501: 1.87501 it stops after that. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 09:51, Richard |
Date | 2017-03-04 10:20 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
You are right, it stopped ok, but since Csound kept running, I assumed it was in instr 2... On 04/03/17 11:14, Victor Lazzarini wrote: > printk 0.25, timeinsts:k() Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-03-04 10:37 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
I suspected that. By the way, you can close csound with an ‘e’ event, in this case, event_i "e", 0, p3 ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 10:20, Richard |
Date | 2017-03-04 10:50 |
From | Richard |
Subject | Re: schedule other instrument at end of performance time |
Ok, thanks. What is this funny syntax in: timeinsts:k() is it described somewhere? Richard On 04/03/17 11:37, Victor Lazzarini wrote: > I suspected that. By the way, you can close csound with an ‘e’ event, in this case, > > event_i "e", 0, p3 > > ======================== > Prof. Victor Lazzarini > Dean of Arts, Celtic Studies, and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 4 Mar 2017, at 10:20, Richard |
Date | 2017-03-04 11:57 |
From | Victor Lazzarini |
Subject | Re: schedule other instrument at end of performance time |
It’s timeinsts using its k-rate instead of i-rate version, in function-like syntax ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 4 Mar 2017, at 10:50, Richard |
Date | 2017-03-09 08:31 |
From | Anton Kholomiov |
Subject | Re: schedule other instrument at end of performance time |
It would be nice to have an opcode that can listen for note stop message in uniform way. Right now we have schedule with p3 for regular notes and release for midi notes. 2017-03-04 14:57 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>: It’s timeinsts using its k-rate instead of i-rate version, in function-like syntax |
Date | 2017-03-09 08:38 |
From | Guillermo Senna |
Subject | Re: schedule other instrument at end of performance time |
But doesn't the release opcode also work for non-midi triggered instruments? On 09/03/17 05:31, Anton Kholomiov wrote: > It would be nice to have an opcode that can listen for note stop message in > uniform way. > Right now we have schedule with p3 for regular notes and release for midi > notes. > > It can be useful to be able to make a cleanup when the note is done or > trigger the next instrument (like in the Richard's case). > > 2017-03-04 14:57 GMT+03:00 Victor Lazzarini |
Date | 2017-03-09 12:05 |
From | Rory Walsh |
Subject | Re: schedule other instrument at end of performance time |
Yes it does. I use it all the time when I want to chain the playback of samples together. On 9 March 2017 at 08:38, Guillermo Senna <gsenna@gmail.com> wrote: But doesn't the release opcode also work for non-midi triggered instruments? |
Date | 2017-03-09 12:11 |
From | Anton Kholomiov |
Subject | Re: schedule other instrument at end of performance time |
wow, I have searched for the function like this for years... csound doc can be like a maze sometimes. 2017-03-09 15:05 GMT+03:00 Rory Walsh <rorywalsh@ear.ie>:
|
Date | 2017-03-09 12:13 |
From | Rory Walsh |
Subject | Re: schedule other instrument at end of performance time |
We've all been there... On 9 March 2017 at 12:11, Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
|
Date | 2017-03-09 12:31 |
From | Michael Gogins |
Subject | Re: schedule other instrument at end of performance time |
You can do release with regular notes if you use a releasing envelope, just change p3 in the performance. I think. On Mar 9, 2017 7:31 PM, "Anton Kholomiov" <anton.kholomiov@gmail.com> wrote:
|
Date | 2017-03-09 16:25 |
From | Oeyvind Brandtsegg |
Subject | Re: schedule other instrument at end of performance time |
You can also do xtratim 1/kr kflag release 2017-03-09 4:31 GMT-08:00 Michael Gogins |