Csound Csound-dev Csound-tekno Search About

To trigger a release state.

Date2017-04-03 21:56
FromForrest Curo
SubjectTo trigger a release state.
In the example for xtratim, we find the 'release' opcode which

detects a release state:

krel release ;outputs release-stage flag (0 or 1 values)

How can I set that flag when I'm using real-time input, but not via midi?

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

Date2017-04-03 21:59
FromSteven Yi
SubjectRe: To trigger a release state.
The release flag is set to true when the p3 duration is done and
xtratim is initiated. Csound will execute an instrument for the total
time of p3 + xtratim.

On Mon, Apr 3, 2017 at 4:56 PM, Forrest Curo  wrote:
> In the example for xtratim, we find the 'release' opcode which
>
> detects a release state:
>
> krel release ;outputs release-stage flag (0 or 1 values)
>
> How can I set that flag when I'm using real-time input, but not via midi?
>
>
> 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

Date2017-04-03 22:12
FromForrest Curo
SubjectRe: To trigger a release state.
In this case p3 is always set negative...
but anyway, I see that this works:

kvel = p4
if(kvel != 0) goto leaveon
turnoff2 p1, 5, 1
leaveon:


On Mon, Apr 3, 2017 at 1:59 PM, Steven Yi <stevenyi@gmail.com> wrote:
The release flag is set to true when the p3 duration is done and
xtratim is initiated. Csound will execute an instrument for the total
time of p3 + xtratim.

On Mon, Apr 3, 2017 at 4:56 PM, Forrest Curo <treegestalt@gmail.com> wrote:
> In the example for xtratim, we find the 'release' opcode which
>
> detects a release state:
>
> krel release ;outputs release-stage flag (0 or 1 values)
>
> How can I set that flag when I'm using real-time input, but not via midi?
>
>
> 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

Date2017-04-03 23:20
FromForrest Curo
SubjectRe: To trigger a release state.
Not quite yet -- Should probably be:

kvel init p4
if(kvel != 0) goto leaveon
turnoff2 p1, 5, 1
kvel =1
leaveon:

???

On Mon, Apr 3, 2017 at 2:12 PM, Forrest Curo <treegestalt@gmail.com> wrote:
In this case p3 is always set negative...
but anyway, I see that this works:

kvel = p4
if(kvel != 0) goto leaveon
turnoff2 p1, 5, 1
leaveon:


On Mon, Apr 3, 2017 at 1:59 PM, Steven Yi <stevenyi@gmail.com> wrote:
The release flag is set to true when the p3 duration is done and
xtratim is initiated. Csound will execute an instrument for the total
time of p3 + xtratim.

On Mon, Apr 3, 2017 at 4:56 PM, Forrest Curo <treegestalt@gmail.com> wrote:
> In the example for xtratim, we find the 'release' opcode which
>
> detects a release state:
>
> krel release ;outputs release-stage flag (0 or 1 values)
>
> How can I set that flag when I'm using real-time input, but not via midi?
>
>
> 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