add connect script
[piano] initialise comb array
inline helper functions
simplify update function
pass sample pointer to tweak function