commented theremin code and added getBuffer method with promises