Home Tutorials
Last
Next
1/14
Previous
First

Creating virtual instrument with samples not played in loop

By using samples played in loop, the amplitude of the produced sounds is modulated by the envelope generator. The major impact is that the note duration is depending on the MIDI events (for such samples, the size only affects the sound quality), but such samples may be not realistic because the transient part of the sound (the attack part) is not supported for now by my MIDS player.

For more realistic sound of instrument you can use good samples having the attack part, but as such samples are not played in loop we must have a mean to cut off the note (when receiving the "note off" MIDI event). My MIDS player uses the release time parameter of the ADSR envelope to cut off the note. Of course, the note duration is limited by the sample size (about 1.5 s) but for shorter durations the effect is quite good.

Here an example of a recorded Finger Bass sound, you can listen the recorded sound as uncompressed wav file or as compressed mp3 file :

Finger Bass sound recording

And the same sample cut off using the release time parameter of the ADSR envelope:

Finger Bass sound recording

Listen the modified sound as uncompressed wav file or as compressed mp3 file :