[Csnd-dev] negative p1 with named instrument
Date | 2017-03-29 09:41 |
From | Tarmo Johannes |
Subject | [Csnd-dev] negative p1 with named instrument |
Hi,
Would it be possible to have in the score syntax where you can stop an indefinte named instrument by adding '-' before the instrument name?
Like
i "sound" 0 -1 i -"sound" 1 0
Does not work like that right now,
i -1 1 0 works as expected.
The full testing csd:
--- <CsoundSynthesizer> <CsOptions> -odac -d </CsOptions> <CsInstruments>
sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1
instr sound out poscil(0.1,500) ksec init 0 if (metro(1)==1) then printk2 ksec ksec += 1 endif endin
</CsInstruments> <CsScore> f 0 5 i "sound" 0 -1 i -"sound" 1 0 ; does not work i -1 4 0 ; works
</CsScore> </CsoundSynthesizer>
---
Should I file an issue?
Thanks! tarmo |
Date | 2017-03-29 11:04 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
At the moment no, you can’t do that, as far as I know. ======================== 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 29 Mar 2017, at 09:41, Tarmo Johannes |
Date | 2017-03-29 14:08 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
John, What do you think, is it easy to implement? Of course this is not q high priority thing... Tarmo 29.03.2017 13:04 kirjutas kuupäeval "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>: At the moment no, you can’t do that, as far as I know. |
Date | 2017-03-29 15:48 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
I will take a look; could cause parsing issuse but it might e possible to accept "-sound" as negative "soud" which might be easier. Just tikig ot loudd. On Wed, 29 Mar 2017, Tarmo Johannes wrote: > John,What do you think, is it easy to implement? > Of course this is not q high priority thing... > Tarmo > > 29.03.2017 13:04 kirjutas kuupäeval "Victor Lazzarini" > |
Date | 2017-03-29 21:16 |
From | John ff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Partially working, but domestic duties mean it will have to wait a while.
Sent from TypeApp
On 29 Mar 2017, at 14:09, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
|
Date | 2017-03-29 21:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
could we make double quotes in p1 optional? I mean
i piano1 0 10
or even in this case, make the i opcode optional?
piano1 0 10
same as
"piano1" 0 10
or
i "piano1" 0 10
the semantics do not look ambiguous to me.
Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2017-03-29 21:42 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Also we could have a score opcode to denote negative p1
d 1 0
same as
i -1 0 1
then the problem with named instruments goes away.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2017-03-29 23:05 |
From | Rory Walsh |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
I like this solution. Could the e score opcode be updated? It already notes the end of a score, if used with an instrument name/number could it simply mean the end of an instrument istance? On 29 March 2017 at 21:42, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2017-03-29 23:27 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
+1 to Victor's suggestions. On Wed, Mar 29, 2017 at 6:05 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2017-03-29 23:37 |
From | John ff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Without double quotes there are no real problems. A d opcode is possible.
Sent from TypeApp
On 29 Mar 2017, at 21:33, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
|
Date | 2017-03-29 23:40 |
From | John ff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Which instance?
Sent from TypeApp
On 29 Mar 2017, at 23:07, Rory Walsh <rorywalsh@EAR.IE> wrote:
|
Date | 2017-03-30 00:02 |
From | Steven Yi |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
My gut instinct is that I'd rather see the i opcode enhanced rather than introduce a new d score opcode introduced. Also, how would this interact with schedule and event orc opcodes? On Wed, Mar 29, 2017 at 6:37 PM, John ff |
Date | 2017-03-30 06:29 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Just as before. For numbered instruments, it's syntatic sugar, for named instruments, it addresses a shortcoming. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 30 Mar 2017, at 00:03, Steven Yi |
Date | 2017-03-30 08:05 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Hi, I personally like the d (denote) syntax idea - much clearer for the user than i -instrumentname provided, it will work scoreline, event, inputaMessage etc. Tarmo 30.03.2017 8:30 kirjutas kuupäeval "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>: Just as before. For numbered instruments, it's syntatic sugar, for named instruments, it addresses a shortcoming. |
Date | 2017-03-30 08:09 |
From | John ff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Big typo! Remove the "no"; there is a real problem.
Sent from TypeApp
On 29 Mar 2017, at 23:38, John ff <jpff@CODEMIST.CO.UK> wrote:
|
Date | 2017-03-30 10:59 |
From | John ff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Oh well; the i "-foo" syntax is working now. Will look at a d opcode.
Sent from TypeApp
On 30 Mar 2017, at 08:06, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
|
Date | 2017-03-30 12:46 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Hi, Thanks! i -"sound" 1 0 but no effect yet. tarmo 2017-03-30 12:59 GMT+03:00 John ff <jpff@codemist.co.uk>:
|
Date | 2017-03-30 12:55 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
i "-sound" 1 0 On Thu, 30 Mar 2017, Tarmo Johannes wrote: > Hi, > > Thanks! > > I guess you did not push yet? > I tried > > i -"sound" 1 0 > > but no effect yet. > > > tarmo > > > 2017-03-30 12:59 GMT+03:00 John ff |
Date | 2017-03-30 15:19 |
From | Steven Yi |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
I suppose this feature would also touch upon the issue of fractional named instruments too... perhaps a i "-sound.1" would be next logical thing? On Thu, Mar 30, 2017 at 7:55 AM, jpff |
Date | 2017-03-30 15:24 |
From | Dave Seidel |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
I've certainly wanted to be able to use fractional named instruments more than once. On Thu, Mar 30, 2017 at 10:19 AM, Steven Yi <stevenyi@gmail.com> wrote: I suppose this feature would also touch upon the issue of fractional |
Date | 2017-03-30 15:51 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Harder but possible. Too late to start that today I think, but modifying named_inst_find to do that and then finding the use points..... maybe tomorrow. On Thu, 30 Mar 2017, Steven Yi wrote: > I suppose this feature would also touch upon the issue of fractional > named instruments too... perhaps a i "-sound.1" would be next > logical thing? > > On Thu, Mar 30, 2017 at 7:55 AM, jpff |
Date | 2017-03-30 19:28 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Perfect! Thanks a lot! this way I can solve one small problem in CsoundQt (using named instruments onder on/off event buttons)2017-03-30 14:55 GMT+03:00 jpff <jpff@codemist.co.uk>: i "-sound" 1 0 |
Date | 2017-03-31 21:36 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Hi, I did some testing how it works in the context of orchestra and found out that it works withe event and schedule opcode, but not with scoreline and readscore. Also it fails with csoundInputEvent API call. A testikng csd is below.---- <CsoundSynthesizer> <CsOptions> -odac -d </CsOptions> <CsInstruments> sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 schedule "sound",0,-1 instr sound out poscil(0.1,500) ksec init 0 if (metro(1)==1) then printk2 ksec ksec += 1 endif endin ; these fail: ires readscore {{ i "-sound" 1 0 }} scoreline_i {{ i "-sound" 2 0 }} ; these work: schedule "-sound",3,0 schedule "sound",4,-1 ; restart sound event_i "i", "-sound",5,0 </CsInstruments> <CsScore> f 0 7 </CsScore> </CsoundSynthesizer> ----- 2017-03-30 21:28 GMT+03:00 Tarmo Johannes <trmjhnns@gmail.com>:
|
Date | 2017-03-31 21:38 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
scoreline and readscore use csoundInputEvent, so the issue is the same.
Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2017-04-01 21:32 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Can you try again? And also try the d opcode -- in git now On Fri, 31 Mar 2017, Tarmo Johannes wrote: > Hi, > > I did some testing how it works in the context of orchestra and found out that > it works withe event and schedule opcode, but not with scoreline and > readscore. Also it fails with csoundInputEvent API call. A testikng csd is > below. > > I hope it is easy to fix! > > tarmo > ---- > > |
Date | 2017-04-01 22:37 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Thank you, John! work both perfectly in the orchestra but it seems to me that InputMessage API call does not work at all any more - it does not even start an instrument, nor numbered, nor named.ires readscore {{ i "-sound" 1 0 }} scoreline_i {{ i "-sound" 0 0 }} 2017-04-01 23:32 GMT+03:00 jpff <jpff@codemist.co.uk>: Can you try again? And also try the d opcode -- in git now |
Date | 2017-04-04 14:43 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Hi John, Have you had chance to look at csoundInputMessaage function (or maybe somewhere else) - after recent changes no events are produced when host application is calling csoundInputMessage... Thanks! Tarmo 02.04.2017 0:37 kirjutas kuupäeval "Tarmo Johannes" <trmjhnns@gmail.com>:
|
Date | 2017-04-04 15:22 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Any chance of a program that fauls/ I never use the API so have noting trustworty to use as a test. re egaive p3 tee is a differece as to when te p1 is egated whih migt eplain it -- but again I never use eative pi, p2 or p3, or amed instruents. On Tue, 4 Apr 2017, Tarmo Johannes wrote: > Hi John, > Have you had chance to look at csoundInputMessaage function (or maybe > somewhere else) - after recent changes no events are produced when host > application is calling csoundInputMessage... > > Thanks! > Tarmo > > 02.04.2017 0:37 kirjutas kuupäeval "Tarmo Johannes" |
Date | 2017-04-05 09:03 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Oh, John, I am sorry for the noise - I was preparing an example and it worked as expected - I just needed to make clean and rebuild the other program. Only thing - what is the syntax of 'd' command? I tried d "sound" 1 d "sound" 1 0 d "-sound" 1 but no effect. Thanks! tarmo On teisipäev, 4. aprill 2017 15:22.34 EEST you wrote: > Any chance of a program that fauls/ I never use the API so have noting > trustworty to use as a test. > > re egaive p3 tee is a differece as to when te p1 is egated whih migt > eplain it -- but again I never use eative pi, p2 or p3, or amed > instruents. > > On Tue, 4 Apr 2017, Tarmo Johannes wrote: > > Hi John, > > Have you had chance to look at csoundInputMessaage function (or maybe > > somewhere else) - after recent changes no events are produced when host > > application is calling csoundInputMessage... > > > > Thanks! > > Tarmo > > > > 02.04.2017 0:37 kirjutas kuupäeval "Tarmo Johannes" |
Date | 2017-04-18 04:18 |
From | Michael Gogins |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
What is the status of this? Does the "d" opcode now work with csoundReadScore? Best, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Wed, Apr 5, 2017 at 4:03 AM, Tarmo Johannes |
Date | 2017-04-18 10:14 |
From | jpff |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Believed working until someone produces a counter-example On Mon, 17 Apr 2017, Michael Gogins wrote: > What is the status of this? Does the "d" opcode now work with csoundReadScore? > > Best, > Mike > > ----------------------------------------------------- > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Wed, Apr 5, 2017 at 4:03 AM, Tarmo Johannes |
Date | 2017-04-18 12:42 |
From | Tarmo Johannes |
Subject | Re: [Csnd-dev] negative p1 with named instrument |
Attachments | inputMessageTest.c |
Hi, syntax like scoreline_i {{ d "sound" 0 0 }} does not work yet and accordingly aslo csoundReadScore a small testing c-file below and attached. tarmo -------- // compile gcc -DUSE_DOUBLE -o imtest inputMessageTest.c -lcsound64 #include |