File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,6 @@ export class BoardAudio {
242
242
this . stopRecording ( ) ;
243
243
}
244
244
} ;
245
-
246
- this . sensitivityNode ! . connect ( recorder ) ;
247
- recorder . connect ( this . context ! . destination ) ;
248
-
249
245
this . stopActiveRecording = ( ) => {
250
246
recorder . disconnect ( ) ;
251
247
this . sensitivityNode ! . disconnect ( ) ;
@@ -254,6 +250,9 @@ export class BoardAudio {
254
250
this . microphoneEl . style . display = "none" ;
255
251
this . stopActiveRecording = undefined ;
256
252
} ;
253
+
254
+ this . sensitivityNode ! . connect ( recorder ) ;
255
+ recorder . connect ( this . context ! . destination ) ;
257
256
}
258
257
259
258
boardStopped ( ) {
Original file line number Diff line number Diff line change 4
4
rate_index = 0
5
5
6
6
print ("Recording..." )
7
- my_track = microphone .record (3000 )
7
+ my_recording = microphone .record (3000 )
8
+ my_track = my_recording .track ()
8
9
print ("Button A to play" )
9
10
while True :
10
11
if button_a .was_pressed ():
You can’t perform that action at this time.
0 commit comments