This activity is part of the Citilab Course. Check it out!
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
- From version 2.2 of the ED1 board it can be connected directly to the Groove I2C connector.
- We will use the touch block play frequency _ for _, 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
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 and with depending on the values the volume changes.
We can connect a potentiometer to analog pin 1 to control the volume.
This activity is part of the Citilab Course.
⬅️ Previous activity | Next activity ➡️ |
---|
© por Citilab Edutec 2019-2022.
Este trabajo tiene una licencia CC-BY-SA 4.0.