How to better write Ryoji Ikeda/Alva Noto Style Synth

Use variables (var), not ‘globals’ because they don’t quite do what the name suggests. This is actually a bigger issue than it might seem at first.

Why is ~soundA a function?

B & C follow a similar pattern of Comb, reverb and mul, that pattern should be a function.

Do not copy and paste code, avoid duplication where possible by using functions.

The purpose of doing this is to make the code readable, so you know what is going on quickly. That way, you can reuse bits later in other projects. If you’re doing this on stage and the code is thrown away, does it really matter what it looks like? Probably not.

Also, you posted something similar a few months ago, whilst the first few points were specific about the structure, the others are valid here. Basically, if you have to scroll horizontally, something might be wrong, if the code has more that 3 indents, something might be wrong. There’s exceptions to everything, but that’s generally good advice.