Merge pull request #287 from owennewo/master
fixing audioio.AudioOut which now seems to have only one param
This commit is contained in:
commit
6fe6d640b2
1 changed files with 3 additions and 2 deletions
|
|
@ -27,12 +27,13 @@ audiofiles = ["bd_tek.wav", "elec_hi_snare.wav", "elec_cymbal.wav",
|
|||
"elec_blip2.wav", "bd_zome.wav", "bass_hit_c.wav",
|
||||
"drum_cowbell.wav"]
|
||||
|
||||
a = audioio.AudioOut(board.A0)
|
||||
|
||||
def play_file(filename):
|
||||
print("playing file " + filename)
|
||||
f = open(filename, "rb")
|
||||
a = audioio.AudioOut(board.A0, f)
|
||||
a.play()
|
||||
wave = audioio.WaveFile(f)
|
||||
a.play(wave)
|
||||
time.sleep(bpm / 960) # sixteenthNote delay
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue