From 143f701925167628150cbf4614ee5bd6803e539c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 8 Sep 2012 05:22:43 +0200 Subject: show progress on stdout when reading files (stock samples) into the sampler also now stereo files may be read in --- live_sampler.ck | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/live_sampler.ck b/live_sampler.ck index 5e8a9bd..a62941a 100644 --- a/live_sampler.ck +++ b/live_sampler.ck @@ -7,8 +7,17 @@ LiSaX lisa[7]; Gain amp => Bus.out_left; amp => Bus.out_right; +fun void +read(int i, string file) +{ + chout <= "Loading \"" <= file <= "\" into sample bank " <= i <= "... "; + chout.flush(); + file => lisa[i].read; + chout <= "Done!" <= IO.newline(); +} + /* stock samples */ -"samples/stier_loop.wav" => lisa[0].read; +read(0, "samples/stier_loop_stereo.wav"); for (0 => int i; i < lisa.cap(); i++) { if (lisa[i].duration() == 0::samp) { -- cgit v1.2.3