# oscili source code

**URL:** <https://forum.cabbageaudio.com/t/oscili-source-code/4634>\
**Category:** Cabbage Farmers\
**Created:** [7 December 2024 10:10 UTC](https://forum.cabbageaudio.com/t/oscili-source-code/4634 "2024-12-07T10:10:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostchamb3r](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@ghostchamb3r](https://forum.cabbageaudio.com/u/ghostchamb3r)\
**Post date:** [7 December 2024 10:10 UTC](https://forum.cabbageaudio.com/t/oscili-source-code/4634/1 "2024-12-07T10:10:03Z")

</div>

I wanted to look over the source code for the oscili opcode to begin to get an idea of how to add my own oscillator opcodes to csound. I’m guessing I can gain a good understanding of how csound handles buffers and such in the backend by looking at how oscili or vco, vco2 are coded.

I’ve been combing through the github files for csound and can’t find anything for the oscillator opcodes.  
Can anyone provide a direct link?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [7 December 2024 10:18 UTC](https://forum.cabbageaudio.com/t/oscili-source-code/4634/2 "2024-12-07T10:18:25Z")

</div>

Hi @ghostchamb3r., Welcome to the forum. I believe most of the basic oscillators are contained in the [ugens](https://github.com/csound/csound/blob/ee46268e24eec8a644f2c07e9412fff1b8d03f5a/OOps/ugens2.c) source files. The vco2 stuff is [here](https://github.com/csound/csound/blob/ee46268e24eec8a644f2c07e9412fff1b8d03f5a/Opcodes/oscbnk.c#L1924). If you are interesting in writing some opcodes for Csound, then looking through the Csound source isn’t going to be all that helpful. You should really check out the [opcode sdk](https://github.com/csound/opcode_sdk). This is the best, and recommended, way of developing new opcodes for Csound.
