Skip to content
Snippets Groups Projects
Commit bc3285b3 authored by rorist's avatar rorist
Browse files

Use custom samples

parent 0646d739
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment