# Live-Looper with touchOSC control

**URL:** <https://in-thread.sonic-pi.net/t/live-looper-with-touchosc-control/363>\
**Category:** \[P\] Patreon Support\
**Created:** [October 31, 2017, 4:37pm UTC](https://in-thread.sonic-pi.net/t/live-looper-with-touchosc-control/363 "2017-10-31T16:37:10Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [November 1, 2017, 7:18pm UTC](https://in-thread.sonic-pi.net/t/live-looper-with-touchosc-control/363/21 "2017-11-01T19:18:02Z")

</div>

@robin.newman, thanks a lot for you patience and help!

Yes, I do get the errors after sending osc messages from Sonic Pi:

Sonic Pi code:

```ruby
use_osc "192.168.2.120", 9000
live_loop :test do
  osc "/rec/track1_play",1
  osc "/rec/track2_vol",0.5
  sleep 2
  osc "/rec/track1_play",0
  osc "/rec/track2_vol",0
  sleep 2
end

```

Sonic Pi-protocol:

```ruby
=> Starting run 1
=> Defining fn :live_loop_test
{run: 1, time: 0.0}
 ├─ OSC -> 192.168.2.120, 9000, /rec/track1_play, [1]
 └─ OSC -> 192.168.2.120, 9000, /rec/track2_vol, [0.5]
{run: 1, time: 2.0}
 ├─ OSC -> 192.168.2.120, 9000, /rec/track1_play, [0]
 └─ OSC -> 192.168.2.120, 9000, /rec/track2_vol, [0]
=> Stopping all runs...
=> Stopping run 1
=> Completed run 1
=> All runs completed
=> Pausing SuperCollider Audio Server

```

Errors in `erlang.log`:

```ruby
+--------------------------------+
+ This is the Sonic Pi IO Server +
+ Powered by Erlang +
+ Listening on port 4560 +
+--------------------------------+

=ERROR REPORT==== 1-Nov-2017::20:13:45 ===
Error in process <0.33.0> with exit value:
{badarg,[{erlang,system_time,[nanosecond],[]},
         {osc,now,0,[{file,"osc.erl"},{line,54}]},
         {pi_server,send_later,7,[{file,"pi_server.erl"},{line,177}]}]}

=ERROR REPORT==== 1-Nov-2017::20:13:45 ===
Error in process <0.34.0> with exit value:
{badarg,[{erlang,system_time,[nanosecond],[]},
         {osc,now,0,[{file,"osc.erl"},{line,54}]},
         {pi_server,send_later,7,[{file,"pi_server.erl"},{line,177}]}]}

=ERROR REPORT==== 1-Nov-2017::20:13:47 ===
Error in process <0.35.0> with exit value:
{badarg,[{erlang,system_time,[nanosecond],[]},
         {osc,now,0,[{file,"osc.erl"},{line,54}]},
         {pi_server,send_later,7,[{file,"pi_server.erl"},{line,177}]}]}

=ERROR REPORT==== 1-Nov-2017::20:13:47 ===
Error in process <0.36.0> with exit value:
{badarg,[{erlang,system_time,[nanosecond],[]},
         {osc,now,0,[{file,"osc.erl"},{line,54}]},
         {pi_server,send_later,7,[{file,"pi_server.erl"},{line,177}]}]}

```

---

_[View the full topic](https://in-thread.sonic-pi.net/t/live-looper-with-touchosc-control/363)._
