# How to write device active/bypass state to automation?

**URL:** <https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116>\
**Category:** Renoise Tool Development\
**Created:** [February 10, 2015, 10:47pm UTC](https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116 "2015-02-10T22:47:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![afta8](https://forum.renoise.com/user_avatar/forum.renoise.com/afta8/32/410_2.png) [@afta8](https://forum.renoise.com/u/afta8)\
**Post date:** [February 10, 2015, 10:47pm UTC](https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116/1 "2015-02-10T22:47:11Z")

</div>

This is easy to do for other device parameters except for the bypass/active state.

To create automation I need to use:

```auto
renoise.song().patterns[pattern].tracks[track]:create_automation(parameter_object)

```

Where ‘parameter\_object’ is referencing

```auto
renoise.song().tracks[track].devices[device].parameters[parameter]

```

However the active/bypass parameter is not available in the parameters table, only the device controls are available there.

I know the DeviceParameter object for Active/Bypass exists somewhere as I can query it using:

```auto
renoise.song().patterns[].tracks[].automation[].dest_parameter

```

But I don’t know how to reference it before it is created so that I can create it using the :create\_automation() method…

It’s quite confusing. Anyone got any ideas?

---

<div class="post-metadata">

**Author:** ![Jonas](https://forum.renoise.com/user_avatar/forum.renoise.com/jonas/32/6937_2.png) [@Jonas](https://forum.renoise.com/u/Jonas)\
**Post date:** [February 11, 2015, 10:25pm UTC](https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116/2 "2015-02-11T22:25:18Z")

</div>

Any words from the devs on this?

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [February 13, 2015, 10:23am UTC](https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116/3 "2015-02-13T10:23:50Z")

</div>

Seems we forgot to publish this guy to the Lua API. Will fix that and add a:  
renoise.song().tracks[].devices[].is\_active\_parameter

---

<div class="post-metadata">

**Author:** ![afta8](https://forum.renoise.com/user_avatar/forum.renoise.com/afta8/32/410_2.png) [@afta8](https://forum.renoise.com/u/afta8)\
**Post date:** [February 13, 2015, 12:16pm UTC](https://forum.renoise.com/t/how-to-write-device-active-bypass-state-to-automation/43116/4 "2015-02-13T12:16:26Z")

</div>

Thanks for responding Taktik, that’s good to know and I look forward to trying out the new beta in due course.

Cheers!
