Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixlpa/unity-synth-experiments
A set of simple generative synth scripts for Unity written in C# (OnAudioFilterRead)
https://github.com/pixlpa/unity-synth-experiments
audio csharp generative-music unity-scripts
Last synced: about 1 month ago
JSON representation
A set of simple generative synth scripts for Unity written in C# (OnAudioFilterRead)
- Host: GitHub
- URL: https://github.com/pixlpa/unity-synth-experiments
- Owner: pixlpa
- License: mit
- Created: 2019-01-14T00:16:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T01:04:09.000Z (almost 6 years ago)
- Last Synced: 2024-10-10T10:24:13.032Z (about 1 month ago)
- Topics: audio, csharp, generative-music, unity-scripts
- Language: C#
- Homepage:
- Size: 935 KB
- Stars: 112
- Watchers: 3
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Unity-Synth-Experiments
A set of simple generative sound engines using OnAudioFilterRead() for Unity3D. I borrowed pretty heavily from [JZito's Unity Synthesizer in C Sharp](https://github.com/JZito/Unity-Synthesizer-in-C-Sharp) to get started, and recommend checking that repository out for a more modular implementation. Ultimately I reorganized things for myself so each engine is pretty self contained.
## How to Use
The scripts inside of Scripts/SoundEngines/ are the fun part. Add one of those to a gameObject along with an AudioSource and you are in business. You will need to make a script that calls the KeyOn() method to activate the sounds. The inspectors for these are very minimal, but there should be plenty there to play with and extend. The included scene shows some ways the audio could interact with a gameObject.Hopefully the 3 demo scenes will give an idea on how to integrate these sound engines in fun ways.
## pxFemme
A quirky 2-op FM design with feedback on both the modulator and the carrier. Makes some good growly sounds.## pxSnarple
Simple loopy sample player/synth loosely inspired by the Volca Sample in loop mode## pxStrax
2-osc subtractive square+triangle synth design with a Moog-style VCF and waveshaping distortion## Modulation Classes
### pxLFO
Basic triangle LFO class can be added using "new pxLFO()" in your synth code.
### pxLope
Basic AD/ASR envelope generator class. Can be used as "new pxLope()"