Toggle navigation
Toggle navigation
This project
Loading...
Sign in
노현욱
/
AR_instrument
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
노현욱
2023-06-11 23:43:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b00b261d3284c4d85d0ef7a8443fefaf83d9a3c5
b00b261d
1 parent
2a42223e
debug : some little var names
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
low_latency.py
low_latency.py
View file @
b00b261
...
...
@@ -173,7 +173,12 @@ class Effector:
db
,
main_frequency
,
amplitude
=
self
.
get_decibel_freq_amplitude
(
active_sound
)
print
(
"touched, db {}, main_frequency {}, amplitude {}"
.
format
(
db
,
main_frequency
,
amplitude
))
param
=
self
.
get_distortion_rate
(
db
,
main_frequency
,
amplitude
)
print
(
"effect 정도 :"
,
param
)
if
(
self
.
effect
==
"echo"
):
print
(
"echo 정도 :"
,
param
)
if
(
self
.
effect
==
"pitch_shift"
):
print
(
"pitch_shift 정도 :"
,
param
*
3
-
1
,
"옥타브 이동"
)
if
(
self
.
effect
==
"low_filter"
):
print
(
"low_filter 정도 :"
,
param
*
RATE
/
8
,
"Hz 이하만 통과"
)
for
i
in
range
(
0
,
len
(
self
.
sound
),
CHUNK
):
temp_chunk
=
self
.
augumented_sound
[
self
.
effect
][
int
(
param
*
EFFECT_LEVEL
)][
i
:
i
+
CHUNK
]
Q
.
put
(
temp_chunk
)
...
...
Please
register
or
login
to post a comment