Permalink
Browse files

formatting

  • Loading branch information...
1 parent c5de68e commit 90610d68c4209a80fb00aa1c1329ee612a6ac9df @russellmcc committed Feb 20, 2013
Showing with 4 additions and 8 deletions.
  1. +2 −4 examples/osc-redirect.coffee
  2. +2 −4 examples/oscheartbeat.coffee
@@ -18,10 +18,8 @@ else
console.log "OSC redirecter running at http://localhost:" + inport
console.log "redirecting messages to http://localhost:" + outport
-`
-//~verbatim:examples[2]~
-//### A simple OSC redirecter
-`
+`//~verbatim:examples[2]~
+//### A simple OSC redirecter`
sock = udp.createSocket "udp4", (msg, rinfo) ->
try
redirected = osc.applyAddressTransform msg, (address) -> "/redirect" + address
@@ -12,10 +12,8 @@ else
outport = 41234
console.log "sending heartbeat messages to http://localhost:" + outport
-`
-//~verbatim:examples[1]~
-//### Send a bunch of args every two seconds
-`
+`//~verbatim:examples[1]~
+//### Send a bunch of args every two seconds`
sendHeartbeat = () ->
buf = osc.toBuffer(
address : "/heartbeat"

0 comments on commit 90610d6

Please sign in to comment.