[Csnd] Instr score durations
Date | 2022-10-15 17:09 |
From | Mike McGonagle |
Subject | [Csnd] Instr score durations |
I have a short example below. According to the manual, it says... p3 -- Duration time in beats (usually positive). A negative value will initiate a held note (see also ihold). A negative value can also be used for 'always on' instruments like reverberation. These notes are not terminated by s statements A zero value will invoke an initialization pass without performance (see also instr). <CsoundSynthesizer> <CsOptions>-n -d </CsOptions> <CsInstruments> ; Initialize the global variables. ksmps = 32 nchnls = 2 0dbfs = 1 instr 99 prints("starting %d\n", p4) if metro(1) == 1 then printks("tick (%d)\n", 0, p4) endif endin </CsInstruments> <CsScore> i 99 0 10 1 i 99 0 -1 2 i 99 0 z 3 i 99 0 0 4 </CsScore> </CsoundSynthesizer> So, why doesn't the number 2 instance execute at the k-rate? It used to. It does execute the i-rate. Mike |
Date | 2022-10-15 17:44 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Instr score durations |
when using functional syntax, it's often required to specify the rate, csound makes a guess otherwise, try replacing metro(1) with metro:k(1) On Sat, 15 Oct 2022 at 18:11, Mike McGonagle <mjmogo@gmail.com> wrote:
|
Date | 2022-10-15 17:48 |
From | Mike McGonagle |
Subject | Re: [Csnd] Instr score durations |
Nope. Still does not execute the instance started with -1. Mike On Sat, Oct 15, 2022 at 11:45 AM Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
|
Date | 2022-10-15 18:53 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
Try i 99 0 10 1 i 99.1 0 -1 2 i 99 0 z 3 i 99 0 0 4 and you will get your printouts. The reason is that you start a negative p3 and then immediately it gets replaced by the positive matching p1 following it and so you only have 2 instances running. If instead you mark the negative p3 with a specific instance number, then it can only be replaced with a matching p1. >From the same page in the manual "An instrument may be turned on and left to perform indefinitely either by giving it a negative p3 or by including an ihold in its i-time code. If a held note is active, an i statement with matching p1 will not cause a new allocation but will take over the data space of the held note." ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 15 Oct 2022, at 17:09, Mike McGonagle |
Date | 2022-10-15 19:55 |
From | Mike McGonagle |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
Thanks, Victor. I'll check it again tonight. This problems arose with using just a single instance of an instr. -1 wouldn't work at k-rate, and Rory suggested trying 'z', which worked. Just trying to figure out while all of a sudden this is happening. Mike On Sat, Oct 15, 2022, 12:53 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: Try |
Date | 2022-10-15 20:40 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
What you showed here is the normal behaviour of the software, it has always worked like that.
Depending on how you are running, setting a p3 to -1 may not keep Csound running indefinitely. You may need to use f 0 z or something similar.
Prof. Victor Lazzarini
Maynooth University
Ireland
On 15 Oct 2022, at 19:58, Mike McGonagle <mjmogo@gmail.com> wrote:
|
Date | 2022-10-16 05:07 |
From | Mike McGonagle |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
Ok, was able to try these things again, and I effectively ran each line by themselves, and I didn't get any different results. 1, 3, & 4 worked, as expected. But 2 still only ran during the i-rate. When I changed the instr called to 99.1, 2 ran as it should have. Maybe this isn't exactly as I have been using these things because I normally use named instr's. But I still swear that I have been able to use -1 to run these instr's... Anyway, I'll just start to use the 'z' option for the duration in a score. Mike On Sat, Oct 15, 2022 at 2:40 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
|
Date | 2022-10-16 14:32 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
You can still use p3 as -1 and it will run, there's nothing to say it wouldn't.
However if you have another i-statement (etc) with matching p1 (numbered or named), it will replace the instance instead of starting a new one.
Prof. Victor Lazzarini
Maynooth University
Ireland
On 16 Oct 2022, at 05:10, Mike McGonagle <mjmogo@gmail.com> wrote:
|
Date | 2022-10-16 16:03 |
From | Mike McGonagle |
Subject | [Csnd] Instr score durations |
I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part. I'm suspecting that my copy of Csound is somehow corrupt. I just install Csound from the Cabbage bundle, so I was thinking about removing Csound altogether, and doing a fresh install. Mike On Sunday, October 16, 2022, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
|
Date | 2022-10-16 16:08 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Instr score durations |
Advice from Rory Walsh to my students and me was to: Install a fresh Csound (it is the latest release), and not to install the Csound that is part of the Cabbage Bundle (which is not as current) as the 6.17 at csound.com - Dr.B Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music Professional Writing & Technology Division On Sun, Oct 16, 2022 at 11:04 AM Mike McGonagle <mjmogo@gmail.com> wrote: I'm not sure what to say, but using -1 does not work for me anymore, unless I use an instr number with a fractional part. |
Date | 2022-10-16 16:32 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
No, that has nothing to do with it. There is no way any issue with Csound would appear as this. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 16 Oct 2022, at 16:08, Dr. Richard Boulanger |
Date | 2022-10-16 16:39 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
If you run one single instance of instr 1 with -1 it will run until Csound stops running. So the CSD |
Date | 2022-10-16 16:46 |
From | Mike McGonagle |
Subject | Re: [Csnd] Instr score durations |
This is the first machine that I've used the bundled version. But then again, I only took a month off, and now this is somehow different. My Mac is older so I can't get access to all the tools I would need to compile everything from scratch. Homebrew no longer supports the version of the Mac system I can get. I keep thinking Linux... Mike On Sunday, October 16, 2022, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
|
Date | 2022-10-16 16:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
I should have completed: it will run forever like in the first example. Why? 1 - in the first example, there is no numeric score, Csound runs forever. The scheduled instr 1 with p3=-1 will run forever. 2 - in the second example, the first instr 1 with p3=-1 instance is immediately replaced by the instance with p3=1 3 - in the third example, the score runs to the end before any performance can be run. 4 - in the fourth example the score requires to run an f statement at time z (which is the end of times as far as we are concerned) so Csound has to run until then. The i1 0 -1 then turns instrument 1 indefinitely on. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 16 Oct 2022, at 16:39, Victor Lazzarini |
Date | 2022-10-16 16:47 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
OK. but you probably should not need to install the Csound bundled with Cabbage 2.8 from September 2021 over the more recent Csound 6.17 from csound.com - Feb2, 2022 - Dr.B Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music Professional Writing & Technology Division On Sun, Oct 16, 2022 at 11:32 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: No, that has nothing to do with it. There is no way any issue with Csound would appear as this. |
Date | 2022-10-16 17:00 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
I am so happy that you and victor have been working on this and sharing it. - maybe a good set of examples for the manual (menno?). f0 z always on turnon p3 with -1 are always tricky and confusing to many of my students (and me too!) - Dr.B Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music Professional Writing & Technology Division On Sun, Oct 16, 2022 at 11:54 AM Mike McGonagle <mjmogo@gmail.com> wrote:
|
Date | 2022-10-16 17:28 |
From | Victor Lazzarini |
Subject | Re: [Csnd] [EXTERNAL] [Csnd] Instr score durations |
I posted this to the list a while ago, that is the beta Rory asked for ============== This is the link for the installer Rory was talking about. This is a 6.18-beta built on the 29/09, should run on all arm64 and x86_64 machines. https://maynoothuniversity-my.sharepoint.com/:u:/g/personal/victor_lazzarini_mu_ie/EUCB92fsthBElk9nDPpWVK4BAAsXl-jGM4z2Uvb42jx8fw?e=0sulIG Note that CsoundQT and Cabbage are currently only built for x86_64. ======================== Prof. Victor Lazzarini Maynooth University Ireland ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 16 Oct 2022, at 17:00, Dr. Richard Boulanger |