Theremin
Theremin
The Theremin is an electronic musical instrument that is played with the hands but without contact.
The tone of the instrument varies depending on the distance to the hand. Use the other hand to adjust the volume.
Theremin without volume control
Boards: Citilab ED1, micro:bit, micro:STEAMakers, M5Stack-Core, Boardie and others with integrated speaker.
- We will use the touch block
play frequency _ for _ ms
, adapting the distance values 0-500) to the frequency values 100-5000).
- We will notice that the sound is not continuous, as the sensor takes time to read. To solve it, you need to make two separate programs, one that does the reading and another that reproduces the sound.
Challenge 1: Make a Theremin, without volume control, with the distance sensor.
Solution to challenge 1
Theremin with volume control
Boards: Citilab ED1, micro:bit V2, micro:STEAMakers, M5Stack-Core and others with DAC or fast PWM.
To adjust the volume of the generated tone we can use the System→sound Prims library.
With the
DAC write _
block we can generate a wave of the desired frequency where the volume is affected by the values;We can connect a potentiometer to analog pin 1 to control the volume.
⬅️ Previous activity | Next activity ➡️ |
---|
© von Citilab Edutec 2019-2022.
This work is licensed under a CC-BY-SA 4.0 license.