[Csnd] Trigger callback
Date | 2020-08-29 15:02 |
From | Peter Burgess |
Subject | [Csnd] Trigger callback |
Hi there Csoundians,
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
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. |
Date | 2020-08-29 20:13 |
From | Rory Walsh |
Subject | Re: [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:
|
Date | 2020-08-30 12:06 |
From | Peter Burgess |
Subject | Re: [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:
|
Date | 2020-08-30 17:10 |
From | Rory Walsh |
Subject | Re: [Csnd] Trigger callback |
csoundSetInputChannelCallback() and csoundSetOutputChannelCallback()... On Sun 30 Aug 2020, 12:08 p.m. Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
|
Date | 2020-08-30 17:32 |
From | Peter Burgess |
Subject | Re: [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:
|