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-12 17:09:04 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e90a46ef2036ac6f98e738fafcce8e3becb77090
e90a46ef
1 parent
e0069c93
docs : change gif
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
example.gif
low_latency.py
example.gif
View file @
e90a46e
229 KB
|
W:
|
H:
71.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
low_latency.py
View file @
e90a46e
...
...
@@ -194,14 +194,14 @@ class Effector:
global
Q
db
,
main_frequency
,
amplitude
=
self
.
get_decibel_freq_amplitude
(
active_sound
)
print
(
"
touched
, db {:2f}, main_frequency {:2f}, amplitude {:2f}"
.
format
(
db
,
main_frequency
,
amplitude
))
print
(
"
입력소리 분석
, db {:2f}, main_frequency {:2f}, amplitude {:2f}"
.
format
(
db
,
main_frequency
,
amplitude
))
param
=
self
.
get_distortion_rate
(
db
,
main_frequency
,
amplitude
)
if
(
self
.
effect
==
"echo"
):
print
(
"echo 정도 :"
,
param
)
print
(
"echo
변형
정도 :"
,
param
)
if
(
self
.
effect
==
"pitch_shift"
):
print
(
"pitch_shift 정도 :"
,
param
*
3
-
1
,
"옥타브 이동"
)
print
(
"pitch_shift
변형
정도 :"
,
param
*
3
-
1
,
"옥타브 이동"
)
if
(
self
.
effect
==
"low_filter"
):
print
(
"low_filter 정도 :"
,
param
*
RATE
/
8
,
"Hz 이하만 통과"
)
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
)
...
...
@@ -274,4 +274,4 @@ pa.terminate()
# 실시간 face-chat
# 실시간 변형을 조금더 강조하면 좋을듯 합니다.
# 추가적인 사용 예제나 스토리를 조금더 넣으면 좋을듯.
# 실시간으로
\ No newline at end of file
# "실시간으로" 라는 파트를 강조하고 왜 실시간 성이 중요한지 다시한번 어필하기
...
...
Please
register
or
login
to post a comment