From bc3285b3f1e91cc2e58d9dc0f0b15ccef4b4f386 Mon Sep 17 00:00:00 2001 From: rorist <rorist@0xcafe.ch> Date: Sat, 19 Aug 2023 19:53:04 +0200 Subject: [PATCH] Use custom samples --- __init__.py | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/__init__.py b/__init__.py index 04d2aa8..99b7428 100755 --- a/__init__.py +++ b/__init__.py @@ -26,25 +26,18 @@ class EndlessSequencer(Application): self.notes = [] self.samples = [] self.leds_ids = list(range(40)) - self.app_path = '/flash/sys/apps/seq/' - #self.sample_names = [ - # 'kick.wav', - # 'snare.wav', - # 'hihat.wav', - # 'cowbell.wav', - # ] - self.sample_names = [ #default samples + self.sample_names = [ 'kick.wav', 'snare.wav', - 'hihat.wav', - 'close.wav', + 'rimshot.wav', + 'closed.wav', 'open.wav', + 'ride.wav', 'crash.wav', - 'bark.wav', - 'nya.wav', + 'cowbell.wav', ] #self.sample_names = [ - # 'close.wav' ] + # 'kick.wav' ] self.current_sample = None self.current_note = 0 self.startTime = time.ticks_ms() @@ -125,8 +118,7 @@ class EndlessSequencer(Application): if self.DEBUG: print("Loading {}".format(spl)) - #sample = self.blm.new(bl00mbox.patches.sampler, self.app_path + spl) - sample = self.blm.new(bl00mbox.patches.sampler, spl) + sample = self.blm.new(bl00mbox.patches.sampler, 'assets/' + spl) sample.signals.output = self.blm.mixer self.samples.append(sample) else: -- GitLab