Skip to content

Commit 5f8ae33

Browse files
committed
Working on the Beatmodel class
1 parent d0bdf48 commit 5f8ae33

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

chapter12_compound/djview.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,8 @@ def __init__(self) -> None:
4242
clip = 'clap.wav'
4343

4444
def initialize():
45-
try:
46-
File resource = new File("clap.wav")
47-
clip = (Clip) AudioSystem.getLine(new Line.Info(Clip.class))
48-
clip.open(AudioSystem.getAudioInputStream(resource))
49-
except Exception as ex:
50-
print("Error: Can't load clip")
51-
print(ex)
52-
45+
"no need to initialise the clip for the playsound module"
46+
pass
5347

5448
def dj_test_drive():
5549
model = BeatModel()

0 commit comments

Comments
 (0)