Percussive Synth

 

General Info:
The synth has four voices. These voices play at the same time and are triggered by midi_on events.
Notes are triggered with a preset ADRS curve and do not sustain while the key is pressed.

 

Setup & Use:
By default, the synth will use any midi-device.
You can specify a device or channel to exclusively use by changing the midi_on variable. Press a key on your device and copy the adress displayed in the lower-right sub-window.
The default sound is a generic piano sound. The preset system uses an APC pad matrix. Colours indicate the preset type: green = piano, red = pluck, yellow = synth. Flashing means the preset is active.
The amp values control the volume of the voices and should be between 0 and 2, higher values will clip the signal.
The trans values control the transposition from the pressed key. It goes up and down in semitones. It only handles fine detuning with non-KS synths.
The synth values control the synth source used by the voices. This can be any synth supported by Sonic Pi, including external synths.
The attack and release values control all synths.

 

Here’s the code:

https://github.com/DavidsFiddle/Sonic-Pi-Code-Bits/blob/master/Synths/Perc-Synth

Leave a comment