Open source granular synthesizer for iOS, written in Swift using SwiftUI.
You can build from source or install a copy directly from the App Store.
You can share sounds from other applications, like Voice Memos. More details in Part 5.
You may first wish to peruse the Wikipedia entry on Granular Synthesis.
For a deeper dive, have a look at Microsound.
Some controls work in the horizontal and vertical directions. The vertical direction adds a random jitter to the parameter.
Some controls display two lfo:
labels. Dragging these vertically sets the amount of LFO applied to the parameter. Similarly, the env:
label lets you add envelope modulation to the respective parameter.
control | effect |
---|---|
density1 | number of grains playing at once |
ramp | amount of smoothing applied to each grain |
position2 | where in the source buffer grains are coming from |
size | size of each grain |
spread | spacing between subsequent grains |
pitch | playback speed a.k.a pitch |
attack | duration of amp envelope attack portion |
release | duration of amp envelope release portion |
lfo | low frequency oscillator modulator period |
volume | overall output volume |
- The number of grains playable at once depends on your device's CPU. Too many grains will result in crunch or silence on slower devices.
- Touching the top waveform enables the amp envelope and lets you play by tapping. To get back to continuous playback, simply touch the
position
control.
I wanted to explore Swift in the context of audio and see how much I could get away with. It seemed like a ride worth taking others on. It also made for an opportunity to monkey with SwiftUI, as my clients are still a little bit wary of diving in.