Skip to content

Commit

Permalink
add oscMessenger method to UGen
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G committed Aug 12, 2024
1 parent fea58e1 commit 204b617
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/OSCMessenger.sc
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,19 @@ OSCMessenger : UGen {
^super.new1(*args);
}
}

+ UGen {
oscMessenger {|portNumber, oscAddress, trigger=60, doneAddress=nil, doneValue=1, host="127.0.0.1", appendNodeId=false|
OSCMessenger.kr(
portNumber: portNumber,
oscAddress: oscAddress,
values: this,
trigger: trigger,
doneAddress: doneAddress,
doneValue: doneValue,
host: host,
appendNodeId: appendNodeId,
)
^this;
}
}

0 comments on commit 204b617

Please sign in to comment.