Csound Csound-dev Csound-tekno Search About

[Csnd] Send "z" to event or scoreline

Date2019-01-11 18:17
FromBeinan Li
Subject[Csnd] Send "z" to event or scoreline
Hello Csound,

I'm pretty new and trying to fire an infinite long event on the fly using "z" with event and scoreline, just as I do in a hard-coded score, but couldn't get it working.

According to the manual, I understand that 
  • I cannot pass "z" to the event opcode because it does not accept strings there.
  • I also tried to combine sprintfk and scoreline in the following way: 
String sprintfk {{i %d 0 z}}, gkinstr
scoreline String, 1

The code runs, but my instrument wasn't triggered unless I replace z with a number, 
in the console I see the following log:

i 10 0 z
          ^

... looking like an error indication, without other clues.

What am I missing?

Thanks,
Beinan

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

Date2019-01-11 18:49
FromVictor Lazzarini
SubjectRe: [Csnd] Send "z" to event or scoreline
z is only interpreted in the score, not a realtime event. Use -1 instead.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 11 Jan 2019, at 18:18, Beinan Li <li.beinan@gmail.com> wrote:

Hello Csound,

I'm pretty new and trying to fire an infinite long event on the fly using "z" with event and scoreline, just as I do in a hard-coded score, but couldn't get it working.

According to the manual, I understand that 
  • I cannot pass "z" to the event opcode because it does not accept strings there.
  • I also tried to combine sprintfk and scoreline in the following way: 
String sprintfk {{i %d 0 z}}, gkinstr
scoreline String, 1

The code runs, but my instrument wasn't triggered unless I replace z with a number, 
in the console I see the following log:

i 10 0 z
          ^

... looking like an error indication, without other clues.

What am I missing?

Thanks,
Beinan

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

Date2019-01-15 19:14
FromBeinan Li
SubjectRe: [Csnd] Send "z" to event or scoreline
Thanks, Dr. Lazzarini. That works.

Thanks,
Beinan



On Fri, Jan 11, 2019 at 1:49 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
z is only interpreted in the score, not a realtime event. Use -1 instead.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 11 Jan 2019, at 18:18, Beinan Li <li.beinan@gmail.com> wrote:

Hello Csound,

I'm pretty new and trying to fire an infinite long event on the fly using "z" with event and scoreline, just as I do in a hard-coded score, but couldn't get it working.

According to the manual, I understand that 
  • I cannot pass "z" to the event opcode because it does not accept strings there.
  • I also tried to combine sprintfk and scoreline in the following way: 
String sprintfk {{i %d 0 z}}, gkinstr
scoreline String, 1

The code runs, but my instrument wasn't triggered unless I replace z with a number, 
in the console I see the following log:

i 10 0 z
          ^

... looking like an error indication, without other clues.

What am I missing?

Thanks,
Beinan

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