From e3f0f81a0aec8b1dd11a9b8af6d07a161a0a44ae Mon Sep 17 00:00:00 2001 From: dreamer Date: Wed, 6 Sep 2023 15:53:50 +0200 Subject: [PATCH] try basic bang~ implementation --- hvcc/generators/ir2c/templates/Heavy_NAME.cpp | 2 ++ hvcc/interpreters/pd2hv/libs/pd/bang~.pd | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 hvcc/interpreters/pd2hv/libs/pd/bang~.pd diff --git a/hvcc/generators/ir2c/templates/Heavy_NAME.cpp b/hvcc/generators/ir2c/templates/Heavy_NAME.cpp index c984c5d7..601c8693 100644 --- a/hvcc/generators/ir2c/templates/Heavy_NAME.cpp +++ b/hvcc/generators/ir2c/templates/Heavy_NAME.cpp @@ -161,6 +161,8 @@ void Heavy_{{name}}::{{x}} */ int Heavy_{{name}}::process(float **inputBuffers, float **outputBuffers, int n) { + sendBangToReceiver(0xDD21C0EB); // send to __hv_bang~ + while (hLp_hasData(&inQueue)) { hv_uint32_t numBytes = 0; ReceiverMessagePair *p = reinterpret_cast(hLp_getReadBuffer(&inQueue, &numBytes)); diff --git a/hvcc/interpreters/pd2hv/libs/pd/bang~.pd b/hvcc/interpreters/pd2hv/libs/pd/bang~.pd new file mode 100644 index 00000000..16034dc2 --- /dev/null +++ b/hvcc/interpreters/pd2hv/libs/pd/bang~.pd @@ -0,0 +1,6 @@ +#N canvas 502 0 450 300 12; +#X obj 99 115 r __hv_bang~; +#X obj 99 140 outlet; +#X obj 99 71 inlet; +#X text 151 69 inlet is inactive; +#X connect 0 0 1 0;