Skip to content

Commit

Permalink
try basic bang~ implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Sep 6, 2023
1 parent 4fbaa17 commit e3f0f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hvcc/generators/ir2c/templates/Heavy_NAME.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReceiverMessagePair *>(hLp_getReadBuffer(&inQueue, &numBytes));
Expand Down
6 changes: 6 additions & 0 deletions hvcc/interpreters/pd2hv/libs/pd/bang~.pd
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e3f0f81

Please sign in to comment.