# Tablei not working as I assume it would

**URL:** <https://forum.csound.com/t/tablei-not-working-as-i-assume-it-would/1026>\
**Category:** General\
**Created:** [January 1, 2023, 9:29pm UTC](https://forum.csound.com/t/tablei-not-working-as-i-assume-it-would/1026 "2023-01-01T21:29:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![littleowl](https://forum.csound.com/letter_avatar_proxy/v4/letter/l/df705f/32.png) [@littleowl](https://forum.csound.com/u/littleowl)\
**Post date:** [January 1, 2023, 9:29pm UTC](https://forum.csound.com/t/tablei-not-working-as-i-assume-it-would/1026/1 "2023-01-01T21:29:23Z")

</div>

Hey Guys, I am looking for someone to explain what I do not understand about the tablei or table opcodes.  
I have been working with the waveshaping instrument and phase-quadrature instruments from pages 79 and 85 of The Csound Book, respectively, but I don’t find the table opcode working as I expect it to. I thought that one had to feed the table opcode an index signal in the range of 0 -1 and set mode to 1 and set offset to 0.5 to get the proper output but while working I noticed that if I feed tablei a index in the 0-1 range and with an offset of 0.5 I would only get the top half of a bipolar signal out. Alternatively if I feed it a index ranging from -1 to 1 with an offset of 0, I will only get the bottom half of a bipolar signal out. So the only way to get it to work correctly from what I see is to feed tablei an index ranging from -1 to 1 but with an offset of 0.5 which does not seem intuitive to me. Can anyone explain this behavior to me. I have included screenshots of my phase-quadrature instrument and ftgens.

 ![Screenshot from 2023-01-01 16-11-05](https://forum.csound.com/uploads/default/original/1X/e7ae68d0fc51d21a5a12bdc5400c27f9794437dd.png)  
 ![Screenshot from 2023-01-01 16-11-29](https://forum.csound.com/uploads/default/original/1X/3322c8d4a3ca41df7ea6f155cc72dfc39ff3224c.png)

---

<div class="post-metadata">

**Author:** ![littleowl](https://forum.csound.com/letter_avatar_proxy/v4/letter/l/df705f/32.png) [@littleowl](https://forum.csound.com/u/littleowl)\
**Post date:** [January 1, 2023, 9:47pm UTC](https://forum.csound.com/t/tablei-not-working-as-i-assume-it-would/1026/2 "2023-01-01T21:47:20Z")

</div>

I just realized I should have been using Gen 15 for this. I still works the same however.
