theremin 0.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
theremin/__init__.py ADDED
@@ -0,0 +1,47 @@
1
+ """
2
+
3
+ The objective of this project is to make "instruments" that work like a theremin,
4
+ that is, whereby the features of the sounds produced are controlled by the position of
5
+ the left and right hand.
6
+
7
+ That, but generalized.
8
+ A theremin is an analog device that whose sound is parametrized by two features only:
9
+ Pitch and volume, respectively controlled by the left and right hand; the
10
+ distance from the device's sensor determines the pitch and volume of the sound produced.
11
+
12
+ Here, though, we'll use video as our sensor, so we can not only detect the positions
13
+ of the hands, but also the positions of the fingers, and the angles between them,
14
+ detect gestures, and so on. Further, we can use the facial expressions to add to
15
+ the parametrization of the sound produced.
16
+
17
+ What the project wants to grow up to be is a platform for creating musical instruments
18
+ that are controlled by the body, enabling the user to determine the mapping between
19
+ the video stream and the sound produced.
20
+ We hope this will enable the creation of new musical instruments that are more
21
+ intuitive and expressive than the traditional theremin.
22
+
23
+ Right now, the project is very much in its infancy, and we're just trying to get the
24
+ basics working.
25
+
26
+ Here's a bit about what exists so far:
27
+
28
+ * _03_hand_gesture_recognition_with_video_feedback.py: Detects hand gestures and overlays
29
+ the detected landmarks and categories on the video stream in real-time.
30
+ * _06_hand_gesture_w_slabs.py: The same, but using slabs, for a better framework setup
31
+ * _05_a_wrist_lines.py: Draws lines showing the wrist position on the video stream
32
+ in real-time.
33
+ * _07_wrist_lines_w_sound.py: Draws lines showing the wrist position on the video stream
34
+ and produces sound based on the wrist position. The resulting sound is horrible though,
35
+ due to the lack of a proper real-time setup (I believe). The sound produced is
36
+ produced in realtime, but only a small waveform chunk is produced.
37
+ It's choppy.
38
+ **We need to buffer the stream of sound features and have an independent process that
39
+ reads from the buffer and produces the sound, taking more than one chunk of
40
+ information to determine the sound produced.**
41
+ * _08_keyboard_theremin.py: To reduce the complexity of the sound produced, this script
42
+ uses a keyboard to produce sound, with the pitch and volume controlled by the
43
+ left and right hand, respectively. This doesn't work well at all. More work is needed.
44
+
45
+
46
+
47
+ """