Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
university
music_proj
Commits
10c44fdd
Commit
10c44fdd
authored
May 28, 2019
by
Kamal Nasser
Browse files
Yas
parent
35ae880b
Changes
1
Hide whitespace changes
Inline
Side-by-side
socket-server/server.py
View file @
10c44fdd
...
...
@@ -2,6 +2,7 @@ import optirx as rx
import
optirx_utils
import
eventlet
import
socketio
eventlet
.
monkey_patch
()
from
utils
import
clip_value
,
remap_range
,
round_to_precision
import
math
...
...
@@ -32,7 +33,7 @@ DEFAULT_NOTE_DURATION_PRECISION = 0.125
DEFAULT_OPTITRACK_RANGES_DICT
=
{
'x'
:
(
-
0.9
,
1.5
),
'y'
:
(
-
2.1
,
1.2
),
'z'
:
(
-
0.1
,
2
),
'z'
:
(
-
0.1
,
1.7
),
'rh_roll'
:
(
-
180
,
180
)
}
DEFAULT_RTSCS_PARAM_RANGES_DICT
=
{
...
...
@@ -40,7 +41,7 @@ DEFAULT_RTSCS_PARAM_RANGES_DICT = {
#'sins': (0, 0.45),
'frequency'
:
(
0
,
7
),
'sins'
:
(
0
,
7
),
'amplitude'
:
(
0.1
,
1
),
'amplitude'
:
(
5
,
200
),
'numerical_hint'
:
(
0
,
1
)
}
def
transform_params
(
rh_position
,
rh_roll
,
lh_position
=
None
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment