code: def delay(sig):
    
    smix = Streamix()
    sig = thub(sig, 3) # Auto-copy 3 times (remove this line if using feedback)
    smix.add(0, sig)
    # To get a feedback delay, use "smix.copy()" below instead of both "sig"
    smix.add(280 * ms, .1 * sig) # You can also try other constants
    smix.add(220 * ms, .1 * sig)
    return smix
docs: Simple feedforward delay effect