petri-foo / Petri-Foo

A fork of the Specimen Sampler.
http://petri-foo.sourceforge.net
GNU General Public License v2.0
29 stars 8 forks source link

Velocity sensitivity for sample start/end/loop points? #15

Open naught101 opened 12 years ago

naught101 commented 12 years ago

It would be nice to allow the sample start, loop and end points to change depending on the velocity of the note being played. This is probably not high priority, as it has somewhat limited uses, but I think there are no other linux samplers with this feature, so it would be appreciated by some musicians.

An example of how this is useful (and how it is implemented in UltraBeat): https://www.youtube.com/watch?v=seNoiyze710

jwm-art-net commented 12 years ago

Velocity sensitive sample start, loop, and end points falls under the modulation umbrella and modulated start, loop, and end points has been on the TODO for a long time (or I've mentioned it on several occasions).

One of the things I particularly want to implement at the same time is the ability to trigger the sample playback by an LFO. Which would work like this:

Note On: Trigger amplitude envelope start sample playback

LFO phase... Trigger sample playback

Note-Off: Trigger envelope release

( if long release time then maybe) (LFO phase...) ( Trigger sample playback)

Envelope end end sample playback

The only problem here is the current LFO implementation does not provide any means (due to use of convoluted integer mathematics) to obtain phase information.

jwm-art-net commented 12 years ago

Will have to look at the video later... Thanks.