Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Apr 23, 2021
1 parent 24eff9e commit b8dac9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/amen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ function Amen:setup_parameters()
end
local ch,samples,samplerate=audio.file_info(fname)
self.voice[i].bpm=tonumber(string.match(fname,'bpm(%d*)'))
print("loaded with bpm "..self.voice[i].bpm)
if self.voice[i].bpm==nil or self.voice[i].bpm<1 then
self.voice[i].bpm=clock.get_tempo()
end
print("loaded with bpm "..self.voice[i].bpm)
self.voice[i].duration=samples/samplerate
self.voice[i].samples=samples
self.voice[i].samplerate=samplerate
Expand Down

0 comments on commit b8dac9d

Please sign in to comment.