|
From: Steve H. <S.W...@ec...> - 2003-08-05 16:22:24
|
On Tue, Aug 05, 2003 at 05:10:17 +0200, Benno Senoner wrote: > > Are we still planning to use downcompiling to make an efficient runtime > > sampler? > > yes. It is not a trivial task but should be manageable. > (some modules require special care like filters that mantain state information > etc). Yes, but if we use LADSPA's API (as was suggested a while back) this should be a non-problem, cos LADSPA defines how this is handled. > > Some questions: what does SamplePtr do? > > Basically when a MIDI event occurs the MIDI Keymap module picks the right > sample (key and velocity mapping) and sends pointer to sample data and > sample length to the sample module. > Same must be done for looping etc. > As for modulators I was thinking using events that send (base, increment) > values. That way you can approximate complex curves via small linear segment > while still having a fast engine. Wouldn't a streaming approach be more appropraite? So the sample source module streas PCM data to the audio output module. > >And is pitch really pitch, or is it rate. > > Sorry yes I think it is rate. Basically rate = 1.0 plays the sample at > normal speed. rate = 2.0 double speed (one octave up etc). Yup. NP, I just wanted to be clear. - Steve |