Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.37k stars 976 forks source link

Some sampler features (rr, vel, loop in sample) #1156

Open alfedukovich opened 1 year ago

alfedukovich commented 1 year ago

https://github.com/Tonejs/Tone.js/issues/967#issuecomment-951026870_

It has been discussed here that the circle selection or random sampling functionality for a single note set is not for implementation in the Sampler class.

I, on the other hand, want to ask about more functionality

  1. "Round-robin", "random", "true random" selection from a set of samples when playing.
  2. "Velocity" - separate recordings for different volume.
  3. "Automatic pitch" on range of notes for all of this.
  4. "Loop in seample" to set the start and end of looping so that the note does not end playing at the end of the sampler.

Maybe these are tasks for Sampler class? Or can I implement all of them outside of it somehow?

I need a playback functionality close to this sampler - https://www.decentsamples.com/product/decent-sampler-plugin/. An example of tool with functionality 1,2,3 - https://www.decentsamples.com/product/the-ektara-by-rajobrata-das/ Example of tool with functionality 1,2,3,4 - https://www.decentsamples.com/product/chord-organ-free/ DS has its own open file format with xml description of sampler - https://www.decentsamples.com/docs/format-documentation.html