Csound Csound-dev Csound-tekno Search About

[Csnd] Trigger callback

Date2020-08-29 15:02
FromPeter Burgess
Subject[Csnd] Trigger callback
Hi there Csoundians,

I've been looking through the API docs, I thought I'd previously seen a callback you can hook into that is called when a note is triggered in Csound, but I can't see such a thing now. Am I imagining that? I guess that would be a potentially wasteful system if you didn't have plans to use it, so maybe it doesn't make sense...

Assuming I'm not just blind, are there other options you guys can recommend for achieving the same result? The next best thing I can think of is using set/get channel methods so my c++ methods can check for triggers, but that would involve continuous polling of the channel... Not nesacarily an ideal workaround. It would also only be updated at k-rate, not sample accurate with the triggers, but I think for my purposes that at least would be acceptable.
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-08-29 20:13
FromRory Walsh
SubjectRe: [Csnd] Trigger callback
You were probably thinking of invalue and outvalue opcodes and callbacks? 

On Sat 29 Aug 2020, 3:02 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Hi there Csoundians,

I've been looking through the API docs, I thought I'd previously seen a callback you can hook into that is called when a note is triggered in Csound, but I can't see such a thing now. Am I imagining that? I guess that would be a potentially wasteful system if you didn't have plans to use it, so maybe it doesn't make sense...

Assuming I'm not just blind, are there other options you guys can recommend for achieving the same result? The next best thing I can think of is using set/get channel methods so my c++ methods can check for triggers, but that would involve continuous polling of the channel... Not nesacarily an ideal workaround. It would also only be updated at k-rate, not sample accurate with the triggers, but I think for my purposes that at least would be acceptable.
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-08-30 12:06
FromPeter Burgess
SubjectRe: [Csnd] Trigger callback
Those opcodes sound like they'll work yeah, cheers Rory!. But which callbacks do I hook into to receive updates from them? I can't see corresponding callbacks in the API docs.

Pete

On Sat, 29 Aug 2020, 20:13 Rory Walsh, <rorywalsh@ear.ie> wrote:
You were probably thinking of invalue and outvalue opcodes and callbacks? 

On Sat 29 Aug 2020, 3:02 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Hi there Csoundians,

I've been looking through the API docs, I thought I'd previously seen a callback you can hook into that is called when a note is triggered in Csound, but I can't see such a thing now. Am I imagining that? I guess that would be a potentially wasteful system if you didn't have plans to use it, so maybe it doesn't make sense...

Assuming I'm not just blind, are there other options you guys can recommend for achieving the same result? The next best thing I can think of is using set/get channel methods so my c++ methods can check for triggers, but that would involve continuous polling of the channel... Not nesacarily an ideal workaround. It would also only be updated at k-rate, not sample accurate with the triggers, but I think for my purposes that at least would be acceptable.
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-08-30 17:10
FromRory Walsh
SubjectRe: [Csnd] Trigger callback
csoundSetInputChannelCallback() and csoundSetOutputChannelCallback()...

On Sun 30 Aug 2020, 12:08 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Those opcodes sound like they'll work yeah, cheers Rory!. But which callbacks do I hook into to receive updates from them? I can't see corresponding callbacks in the API docs.

Pete

On Sat, 29 Aug 2020, 20:13 Rory Walsh, <rorywalsh@ear.ie> wrote:
You were probably thinking of invalue and outvalue opcodes and callbacks? 

On Sat 29 Aug 2020, 3:02 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Hi there Csoundians,

I've been looking through the API docs, I thought I'd previously seen a callback you can hook into that is called when a note is triggered in Csound, but I can't see such a thing now. Am I imagining that? I guess that would be a potentially wasteful system if you didn't have plans to use it, so maybe it doesn't make sense...

Assuming I'm not just blind, are there other options you guys can recommend for achieving the same result? The next best thing I can think of is using set/get channel methods so my c++ methods can check for triggers, but that would involve continuous polling of the channel... Not nesacarily an ideal workaround. It would also only be updated at k-rate, not sample accurate with the triggers, but I think for my purposes that at least would be acceptable.
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
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-08-30 17:32
FromPeter Burgess
SubjectRe: [Csnd] Trigger callback
Oh nice one! I'm not sure why I overlooked them, makes total sense now! Haha

Cheers for that!

Pete

On Sun, 30 Aug 2020, 17:11 Rory Walsh, <rorywalsh@ear.ie> wrote:
csoundSetInputChannelCallback() and csoundSetOutputChannelCallback()...

On Sun 30 Aug 2020, 12:08 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Those opcodes sound like they'll work yeah, cheers Rory!. But which callbacks do I hook into to receive updates from them? I can't see corresponding callbacks in the API docs.

Pete

On Sat, 29 Aug 2020, 20:13 Rory Walsh, <rorywalsh@ear.ie> wrote:
You were probably thinking of invalue and outvalue opcodes and callbacks? 

On Sat 29 Aug 2020, 3:02 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Hi there Csoundians,

I've been looking through the API docs, I thought I'd previously seen a callback you can hook into that is called when a note is triggered in Csound, but I can't see such a thing now. Am I imagining that? I guess that would be a potentially wasteful system if you didn't have plans to use it, so maybe it doesn't make sense...

Assuming I'm not just blind, are there other options you guys can recommend for achieving the same result? The next best thing I can think of is using set/get channel methods so my c++ methods can check for triggers, but that would involve continuous polling of the channel... Not nesacarily an ideal workaround. It would also only be updated at k-rate, not sample accurate with the triggers, but I think for my purposes that at least would be acceptable.
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
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