##Audio to Spline code in Audulus ####Description In Audulus 3[πŸͺ](https://itunes.apple.com/us/app/audulus-3/id1027525593?mt=8), a modular visual programming app, you can create splines which can be used to modulate controls in your patches. Generating complex splines can be very labor intensive. One of the users on the [Audulus forum](https://forum.audulus.com) @jjthrash created a Ruby script which uses audio wav files to automatically generate the code for an Audulus patch. You will need to run the script on a computer and know about how to use Github and install the script. Use the @jjthrash script GitHub [repository for creating wavetables](https://github.com/jjthrash/audulus_wave_table) to get directions and the script. He’s updated and added scripts. The [spline tutorial](https://forum.audulus.com/t/know-your-nodes-pt-5-5-5-splines-streamlining-a-large-patch/506/67) by @robertsyrett from the Audulus forum shows an example of how to use splines in your Audulus patches. ####Editing audio files If you have too many points in your spline it will overload your Audulus patch. The idea is to use high frequency audio with lots of variation in order to sample a few milliseconds of sound to create a useful wav file for auto generating the spline. On iOS I use AudioShare[πŸͺ](https://itunes.apple.com/us/app/audioshare/id543859300?mt=8) to store my samples, convert them to mono, and down sample. TwistedWave[πŸͺ](https://itunes.apple.com/us/app/twistedwave-audio-editor/id401438496?mt=8) is used for fine edits to create a single cycle waveform .wav file. Its ability to work at sample zoom levels and to detect zero crossing points is very helpful. ####Running the Script The program to create the Audulus patch from the .wav file input was run on macOS using a terminal window. The output patches were saved to an iCloud location where it can then be opened up in Audulus 3 on iOS, macOS, Windows, or Linux with Audulus. [Video Tutorial](https://youtu.be/g___xZqmIO8) ![](https://forum.audiob.us/uploads/editor/56/lyl9zvcbd9xx.jpeg "") {{tag> Audulus modular tutorial video}}