Small improvement in sample rate - Inserting a 2 pairs of brackets 

forces sample and lastSample to be subtracted as integers before the result is converted to float.  It was Robin who was the first to point this out, it increases the sample rate from about 52 to about 56 sample pairs per cycle - Robert Wall