Re: [Csnd] Waiting for Trigger in CsScore?
Date | 2018-09-09 03:51 |
From | "Yeh Z." |
Subject | Re: [Csnd] Waiting for Trigger in CsScore? |
Hi Joachim and Steven, Thank you very much for your help. I have just tried the codes; they work, although, they are not exactly what I am looking for. the problem of "scoreline_i" is that: it doesn't work with score statements including "s" and "{}" (loops). For sco trigger, it is a little bit complex to me, I am still trying to understand it; it executes only a part of my score. Actually, I am looking for something like: |
Date | 2018-09-09 16:09 |
From | jpff |
Subject | Re: [Csnd] Waiting for Trigger in CsScore? |
Thinking aloud.... would it be a solution if there was an opcode like exitnow which ended section now? Not sure if that is implementable or just hard..... On Sun, 9 Sep 2018, Yeh Z. wrote: > Hi Joachim and Steven, > > Thank you very much for your help. > > I have just tried the codes; they work, although, they are not exactly what I am looking for. > > the problem of "scoreline_i" is that: > > it doesn't work with score statements including "s" and "{}" (loops). > > For sco trigger, it is a little bit complex to me, I am still trying to understand it; it executes only a part of my score. > > Actually, I am looking for something like: > > |
Date | 2018-09-09 23:04 |
From | Steven Yi |
Subject | Re: [Csnd] Waiting for Trigger in CsScore? |
Attachments | process_signalling.csd |
I'm not sure we need an opcode. I put together a generative CSD example that has: * two score generating process instruments * one conductor instrument The two process instruments play instr 1 until klimit number of times, then play a held note. They each signal via increment of global variable. A conductor instrument checks the global var and when both processes are done it resets the variable. The process instruments then see the signal and turn off their held notes and restart their processes. The process repeats ad infinitum. The example illustrates the coding style but the parts could easily be replaced. The signal from the conductor could be instead from a user input, the score generation could be from playing a sco fragment, etc. Hopefully there's enough here to show an approach that might be usable as a starting point for other coding. I imagine instead of hard-coded processes, one could make some reusable instruments. For example, one that takes in a score file as a pfield and checks different global signal states to figure out what to do. Cheers! steven On Sun, Sep 9, 2018 at 11:09 AM jpff |
Date | 2018-09-10 09:37 |
From | joachim heintz |
Subject | Re: [Csnd] Waiting for Trigger in CsScore? |
hi yeh - you are right about the limitations of the scoreline opcode, but on the other hand: it is not hard to implement them. i attach a small example below, showing how you can loop over an array (can be compared to a section i think), and then have a bigger loop to call this section again and again. i personally are not using any more scores, even if i work out a tape piece in csound. i find it more flexible, and more straightforward to create the events in instruments. then i can do anything what is possible in the csound language; and this is a lot ... for instance, rather than using iStart += 2 in the code below, i can write iStart += random:i(1,3) thus creating a pause between the sections which is not always the same. this is so easy, and i think your actually interactive model ("waiting for a trigger") is really easy to implement in the orchestra, but more or less a pain in the score. the score is neither csound language not any programming language at all, but an event list. some features has been added, but these remain crutches, in my opinion. i just read steven's mail and i think his (much complexer) example goes in a similar direction. best - joachim |
Date | 2019-03-04 01:54 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Waiting for Trigger in CsScore? |
- learning every day. Grateful for all the work you do. Best. -dB _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music ______________________________________________ OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger) ______________________________________________ President of Boulanger Labs - http://boulangerlabs.com Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book ______________________________________________ about: http://www.boulangerlabs.com/#about about: http://www.csounds.com/community/developers/dr-richard-boulanger/ music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/ ______________________________________________ email: rboulanger@berklee.edu facebook: https://www.facebook.com/richard.boulanger.58 On Mon, Sep 10, 2018 at 4:38 AM joachim heintz <joachim.heintz@hmtm-hannover.de> wrote: hi yeh - |