#7 Refactor oscillator methods to handle buffers directly