This is inspired from Audio programming MIT (Lazzarini) book