Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2015104176
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
박진형
2020-11-29 19:30:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3e39a713f86aaff1dc0bd2aac8a0284a5b0bf38b
3e39a713
1 parent
0c76a3f2
python file
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
playwave.py
sfsd.py
playwave.py
View file @
3e39a71
...
@@ -4,5 +4,5 @@ import time
...
@@ -4,5 +4,5 @@ import time
4
pygame
.
mixer
.
init
()
4
pygame
.
mixer
.
init
()
5
test
=
pygame
.
mixer
.
Sound
(
"test1.wav"
)
5
test
=
pygame
.
mixer
.
Sound
(
"test1.wav"
)
6
while
True
:
6
while
True
:
7
-
bang
.
play
()
7
+
test
.
play
()
8
time
.
sleep
(
2.0
)
8
time
.
sleep
(
2.0
)
...
...
sfsd.py
0 → 100644
View file @
3e39a71
1
+
import
soundfile
as
sf
2
+
import
sounddevice
as
sd
3
+
4
+
weight
=
1.7
5
+
6
+
data
,
fs
=
sf
.
read
(
'test1.wav'
)
7
+
sd
.
play
(
data
*
weight
,
fs
,
blocking
=
True
)
Please
register
or
login
to post a comment