Electric oscillators might be made using transistors. They turn electricity into electrical patterns, or signals, that repeat over and over. When different keys are pressed, different notes are heard. This is done by making the signal from the oscillator repeat at different rates. 