Csound Csound-dev Csound-tekno Search About

[Csnd] nstance handles

Date2020-02-10 21:46
Fromthorin kerr
Subject[Csnd] nstance handles
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.

Thorin
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

Date2020-02-10 21:54
FromDave Seidel
SubjectRe: [Csnd] nstance handles
I'd like to know this as well!

On Mon, Feb 10, 2020 at 4:46 PM thorin kerr <thorin.kerr@gmail.com> wrote:
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.

Thorin
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

Date2020-02-10 22:16
FromEduardo Moguillansky
SubjectRe: [Csnd] nstance handles


On 10.02.20 22:46, thorin kerr wrote:
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.
take a look at pread opcode: https://csound-plugins.github.io/csound-plugins/opcodes/pread.html

Thorin
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

Date2020-02-10 22:40
Fromthorin kerr
SubjectRe: [Csnd] nstance handles
Hey Eduardo, that looks really interesting. I think the plugins you've made are really powerful.

Looking at your pread opcode - it's not quite same as interrogating a handle. For example, if there's lots of running instances with the same instrnum, there's no way to pick out a particular instance? Please correct me if I'm wrong.

I can definitely see a use for pread/pwrite though, and I'm keen to explore your plugins more.

Thorin



On Tue, Feb 11, 2020 at 8:17 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:


On 10.02.20 22:46, thorin kerr wrote:
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.
take a look at pread opcode: https://csound-plugins.github.io/csound-plugins/opcodes/pread.html

Thorin
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

Date2020-02-10 22:55
FromDave Seidel
SubjectRe: [Csnd] nstance handles
Nice! Echoing Thorin, I need to get familiar with your opcodes, a lot of useful stuff there.

On Mon, Feb 10, 2020 at 5:17 PM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:


On 10.02.20 22:46, thorin kerr wrote:
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.
take a look at pread opcode: https://csound-plugins.github.io/csound-plugins/opcodes/pread.html

Thorin
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

Date2020-02-10 23:21
FromEduardo Moguillansky
SubjectRe: [Csnd] nstance handles


On 10.02.20 23:40, thorin kerr wrote:
Hey Eduardo, that looks really interesting. I think the plugins you've made are really powerful.

Looking at your pread opcode - it's not quite same as interrogating a handle. For example, if there's lots of running instances with the same instrnum, there's no way to pick out a particular instance? Please correct me if I'm wrong.

The idea is that you would use a unique fractional p1 when addressing a particular event (see the uniqinstance or the pool opcodes for easy ways to do that). pread will return the current value of the requested pfield of the first event with a matching p1. Notice that you can also use pwrite to write to a pfield. In the case of pwrite, you would use a fractional p1 to communicate with a given event, or use an integer p1 to set pfields for all events with the same integer p1.




I can definitely see a use for pread/pwrite though, and I'm keen to explore your plugins more.

Thorin



On Tue, Feb 11, 2020 at 8:17 AM Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote:


On 10.02.20 22:46, thorin kerr wrote:
Are there other uses for the handle provided by the nstance opcode?

The manual suggests using turnoff 'for example', which suggests there are other possibilities. But what are the other possibilities?

For example, I wish there was some way to get information about the instance, such as pfield data.
take a look at pread opcode: https://csound-plugins.github.io/csound-plugins/opcodes/pread.html

Thorin
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