Explorar o código

Add dynamic module for constructing a Sampler with entirely dynamic parameters

mitchmindtree %!s(int64=8) %!d(string=hai) anos
pai
achega
450fd4c40f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/dynamic.rs

+ 6 - 0
src/dynamic.rs

@@ -0,0 +1,6 @@
+use instrument;
+use sampler;
+
+/// An alias for a `Sampler` type that uses a dynamic instrument and note frequency mode.
+pub type Sampler<F> =
+    sampler::Sampler<instrument::mode::Dynamic, instrument::note_freq::DynamicGenerator, F>;