Help with Hamster Book tutorial (newbie stupid question inside) in Papilio Pro Posted October 16, 2017 · Report reply Hi Alvie ! First of all thank you for you taking the time for such a thorough answer: really appreciated I've used Excel in order to calculate the sine sample values, and your last formula: int(128+100*sin($n*2*pi/2048)) works as expected , giving values between 28 and 228, with 'n' from '0' to '2047'. The problem in Hamster Book's formula seems to be the '+1' after the sine (sine(n*PI()/1024)+1)*100), that you have ignored in your formula, that makes the multiplier of '100' to be between '0' and '2', instead between '-1' and '1', giving as a result a different range of values. Now to my Papilio ! Thanks again.