# Add a Lua API preset info call

**URL:** <https://forum.electra.one/t/add-a-lua-api-preset-info-call/2947>\
**Category:** Ideas / Feature requests\
**Tags:** lua\
**Created:** [May 24, 2024, 11:00pm UTC](https://forum.electra.one/t/add-a-lua-api-preset-info-call/2947 "2024-05-24T23:00:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianvogel](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@christianvogel](https://forum.electra.one/u/christianvogel)\
**Post date:** [May 24, 2024, 11:00pm UTC](https://forum.electra.one/t/add-a-lua-api-preset-info-call/2947/1 "2024-05-24T23:00:07Z")

</div>

For a feature I am building I need to know which preset bank and slot the preset is in. I have not been able to find this in the Lua API (but I could be missing it?).

Suggestion: add the following functions:

- preset.getName()
- preset.getBankId()
- preset.getSlotId()

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [May 26, 2024, 6:53am UTC](https://forum.electra.one/t/add-a-lua-api-preset-info-call/2947/2 "2024-05-26T06:53:18Z")

</div>

This will be included in the upcoming firmware release. I am extending the Lua API with functions that will allow creating presets for external MIDI controllers. Getting info about preset(s) and preset slots is needed for that.
