# Wavetable Question

**URL:** <https://forum.juce.com/t/wavetable-question/64206>\
**Category:** Getting Started\
**Created:** [November 13, 2024, 12:11pm UTC](https://forum.juce.com/t/wavetable-question/64206 "2024-11-13T12:11:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mengel136](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mengel136](https://forum.juce.com/u/mengel136)\
**Post date:** [November 13, 2024, 12:11pm UTC](https://forum.juce.com/t/wavetable-question/64206/1 "2024-11-13T12:11:54Z")

</div>

Hi,  
I’ve been experimenting with wave tables and I got to an issue that I need a sanity check on and can’t seem to find the answer anywhere. If I have a complex waveform that doesn’t repeat often enough to fit in a wavetable, I should use multiple wavetables and add them when rendering, correct? My example is this wave:

sample = std::sin (currentAngle)+.2_std::sin (2.3_currentAngle)

doesn’t fit into a wavetable properly without truncating:

 ![Screenshot 2024-11-13 at 7.03.21 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/c/1/c1b53de51652d4f96f3e36ae5ea35a633adbf0ef.png)

and therefore won’t play accurately. Am I thinking through this properly that each Sine has it’s own wavetable (or the same wave table just tweaking the frequency and level) but adding the components during rendering?

Thank you,  
Matt

---

<div class="post-metadata">

**Author:** ![kunz](https://avatars.discourse-cdn.com/v4/letter/k/f19dbf/32.png) [@kunz](https://forum.juce.com/u/kunz)\
**Post date:** [November 13, 2024, 12:50pm UTC](https://forum.juce.com/t/wavetable-question/64206/2 "2024-11-13T12:50:09Z")

</div>

I’m not a wavetable expert, but as far as I know, one period of the waveform has to fit exactly into the length of the wavetable.
