# Is it possible to run TidalCycles's script itself via OSC?

**URL:** <https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [1 April 2022 06:41 UTC](https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975 "2022-04-01T06:41:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mynkit](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mynkit/32/2605_2.png) [@mynkit](https://uzu.lurk.org/u/mynkit)\
**Post date:** [1 April 2022 06:41 UTC](https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975/1 "2022-04-01T06:41:37Z")

</div>

Is it possible to run TidalCycles's script itself via OSC?  
I know that SuperCollider sounds can be played via OSC, but I want to execute the code of Tidal Cycles from the outside(for example, an android device).

---

<div class="post-metadata">

**Author:** ![archaic.tech](https://uzu.lurk.org/user_avatar/uzu.lurk.org/archaic.tech/32/2965_2.png) [@archaic.tech](https://uzu.lurk.org/u/archaic.tech)\
**Post date:** [1 April 2022 14:50 UTC](https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975/2 "2022-04-01T14:50:46Z")

</div>

There's the [tidal-listener project](https://github.com/tidalcycles/Tidal/tree/main/tidal-listener), which is pretty experimental, but allows you to send OSC messages of the form `/code <id> <expression>`, so for example `/code 1 "s "cp*3" # lpf 1000"` would be equivalent to evaluating `d1 $ s "cp*3" # lpf 1000`.

If you haven't looked into it yet, there's also a [way to use OSC to send individual values into Tidal](https://tidalcycles.org/docs/configuration/MIDIOSC/osc/#controller-input) that you can use within Tidal expressions. If you just want to trigger different pieces of existing code (rather than write new code), this might work well enough. This [thread discusses more about how this feature can work for that](https://club.tidalcycles.org/t/trigger-tidal-code-with-midi/2168).

---

<div class="post-metadata">

**Author:** ![mynkit](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mynkit/32/2605_2.png) [@mynkit](https://uzu.lurk.org/u/mynkit)\
**Post date:** [1 April 2022 16:00 UTC](https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975/3 "2022-04-01T16:00:31Z")

</div>

I didn't know the tidal-listener project! thanks a lot!

---

<div class="post-metadata">

**Author:** ![ndr\_brt](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ndr_brt/32/396_2.png) [@ndr\_brt](https://uzu.lurk.org/u/ndr_brt)\
**Post date:** [2 April 2022 02:16 UTC](https://uzu.lurk.org/t/is-it-possible-to-run-tidalcycless-script-itself-via-osc/3975/4 "2022-04-02T02:16:55Z")

</div>

The tidal-listener binaries are available on github, so you don't need to build it by yourself:

> **[Release Tama b · tidalcycles/Tidal](https://github.com/tidalcycles/Tidal/releases/tag/1.7.10)**
>
> What's Changed
> 
> Derive RealFrac for Note by @ndr-brt in #876
> Add timescale and timewin control params by @yaxu in #878
> deriving typeclass memberships for ID by @polymorphicengine in #879
> Adds the j...
