Page 2 of 2

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Mon Feb 22, 2016 5:36 pm
by ssj71
AFAIK the only linux SFZ player is linuxsampler. I'm satisfied with it though.

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Mon Feb 22, 2016 9:43 pm
by j_e_f_f_g
tavasti wrote:have some samples which are oscilating type, and having same tempo on that oscilation in any key played is important.
So you want a player that does "pitch shifting" to transpose the pitch, and then "time stretching" to restore the original tempo (and ideally the timbre/tone). First part is easy to do in realtime (ie, without a noticeable delay). All samplers do it. The second part is more math complex. To do it realtime, most products use a DSP chip. Most wave editors, such as audacity, can do time stretching to a waveform. But there may be an audible delay before you hear the result. Especially if you tried to do it with several waves simultaneously. not gonna happen on your dell laptop.

https://en.wikipedia.org/wiki/Audio_tim ... dification

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Tue Feb 23, 2016 1:06 pm
by tavasti
j_e_f_f_g wrote:
tavasti wrote:have some samples which are oscilating type, and having same tempo on that oscilation in any key played is important.
So you want a player that does "pitch shifting" to transpose the pitch, and then "time stretching" to restore the original tempo (and ideally the timbre/tone). First part is easy to do in realtime (ie, without a noticeable delay). All samplers do it. The second part is more math complex. To do it realtime, most products use a DSP chip.
Mostly correct. However, there is no need to do calculation realtime. Samples can be calculated when defining 'instrument'. Using pitch bend would not work, but I don't think that's a problem.

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Tue Feb 23, 2016 4:57 pm
by ssj71
so I think your only option is to use rubberband or similar to do a (time preserving) pitch shift to generate all the notes you want offline, then you can put them into a SFZ or make an sf2 with swami or whatever.

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Tue Feb 23, 2016 8:07 pm
by tavasti
ssj71 wrote:so I think your only option is to use rubberband or similar to do a (time preserving) pitch shift to generate all the notes you want offline, then you can put them into a SFZ or make an sf2 with swami or whatever.
Yes, that's most likely the situation. Remaining question is, what would be command-line tool providing best quality? At the moment, only option I know is sox, but maybe there is others also.

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Tue Feb 23, 2016 9:10 pm
by ssj71
rubberband is the one I've heard most of and seen used the most. https://bitbucket.org/breakfastquay/rubberband

Re: Sample based synth with pitch change, playing samples in original velocity

Posted: Thu Jun 16, 2016 2:56 pm
by briandc
Thanks to everyone here for this info! I've been toying with the idea of trying to have same-length samples across the keyboard, for the same reasons. This looks like a good start indeed! ;)


brian