| This is a bit hackish using eval to dynamically read in .sco files and
trigger them. In this case, it's using random triggering, but one
could do so by other means. I think for a realtime setup, it might be
better to pre-read in the .sco files into strings and put the strings
into an array. I'm not used to using pre-generated .sco files myself,
but I imagine this could be a nice tool to have in case the situation
pops up.
On Thu, Aug 30, 2018 at 6:01 AM joachim heintz wrote:
>
> hi yeh -
>
> not sure it is possible anyhow in the score. but you could put your
> score sections in different instruments, using the scoreline_i opcode:
>
> instr section_1
> scoreline_i scoreline_i {{
> i 2 0 3 "flute.aiff"
> i 2 1 3 "beats.wav"
> }}
> endin
>
> instr section_2
> scoreline_i scoreline_i {{
> i 2 5 3 "flute.aiff"
> i 2 0 3 "beats.wav"
> }}
> endin
>
> the you can trigger these instrument at any time of your performance by
> MIDI, or widgets (if you use CsoundQt for instance), or by the computer
> keyboard with code like this:
>
> instr ReceiveKey
> ;get key number and moment be pressed
> kKey, kDown sensekey
> ;if pressed
> if kDown == 1 then
> ;trigger instr section_1 via number key 1
> if kKey == 49 then
> event "i", "section_1", 0, 1
> ;other instruments ...
> elseif kKey == 50 then
> event "i", "section_2", 0, 1
> endif
> endif
> endin
> schedule "ReceiveKey", 0, 99999
>
> best -
> joachim
>
>
> On 30/08/18 10:57, Yeh Z. wrote:
> > Hi Friends,
> >
> > I made a piece of music by csound, which includes some different sessions in CsScore (using "s" statement).
> >
> > I would like to performance it in live, thus, I am trying to find out a way:
> >
> > * to wait at the end of a session, keeping the last instrument; then,
> >
> > * to trigger the next session by a signal such as from computer keyboard.
> >
> > any ideas?
> >
> > Thanks a lot!
> >
> > Yeh Z.
> >
> > 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
> >
>
> 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
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
|