# Pitchbend

**URL:** <https://forum.electra.one/t/pitchbend/1149>\
**Category:** General discussion\
**Created:** [November 26, 2021, 8:10pm UTC](https://forum.electra.one/t/pitchbend/1149 "2021-11-26T20:10:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![petruccigp](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/petruccigp/32/554_2.png) [@petruccigp](https://forum.electra.one/u/petruccigp)\
**Post date:** [November 27, 2021, 7:05pm UTC](https://forum.electra.one/t/pitchbend/1149/3 "2021-11-27T19:05:26Z")

</div>

For the time being - @RobinC I do that with a Lua function:

```auto
function handle_slider (valueObject, value)
	    local control = valueObject:getControl()
        local id = control:getId()
        local channel = id % 6
        local pitch = math.floor( (value * 16383)/100 ) - 8192
        midi.sendPitchBend (PORT_1, channel, pitch)
end

```

Then assign `handle_slider` to a virtual parameter slider set values 0 to 100. Maybe this can help you.

---

_[View the full topic](https://forum.electra.one/t/pitchbend/1149)._
