From b8dac9db38f33c27d72f08c1f97619f88bbd04b0 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 22 Apr 2021 20:44:15 -0700 Subject: [PATCH] quick fix --- lib/amen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/amen.lua b/lib/amen.lua index 9cd346d..490ca4c 100644 --- a/lib/amen.lua +++ b/lib/amen.lua @@ -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