added my code, triangle wave at high frequency