|
From: <be...@ga...> - 2003-11-15 21:57:41
|
Scrive Mark Knecht <mar...@co...>: > Hi Benno, > I built CVS this morning and gave it a shot. Sustain is working. > Still big clicks on each key release, so I guess no release samples or > default envelope yet. (I think that's expected, but just in case it's > supposed to be there I'll report it's not working for me.) No envelopes implemented yet. So click is normal. > > This version seems to load very much faster for me. Have you done > something in that area? It's probably because I set the preload size to 32k samples (instead of the previous 64k). This is because I was developing on a 256MB box which was not able to load a big piano GIG with 64k preloading. The fun thing is that even with this relatively short preloading time. (0.7sec). the heavy sustain piano MIDI file was able to play 100 stereo voices without getting dropouts. I heard in NI Kontakt for stable operation sometimes you need 600KB (150K samples) of preload ! :-) > > I am not hearing the high pitched noise on my system, > and I'm never > getting very high on CPU usage. I never see about about 3% on gkrellm > even at close to 64 voices. Cool, for completeness use 'top' too its CPU usage measurement is convincing IMHO (look at the CPU usage of the linuxsampler process) > > I do see the segfault when I get to 64 voices. (I thought LS wasn't > going to have a voice limitation?) it's just a define, no limitation :-) for example for 256 voices define: audiothread.h:#define MAX_AUDIO_VOICES 256 diskthread.h:#define MAX_INPUT_STREAMS 256 and recompile. You could try to load up LS to 256 voices and see how much CPU it uses. but in that case increase the preload size too audiothread.h:#define NUM_RAM_PRELOAD_SAMPLES 65536 > > I am also seeing a stranger, and different segfault. I hold the > sustain pedal and just arpeggiate a C major chord and let the voices > build up, but only to about 55-60 voices. Next I hold the sustain pedal > and let the voice count decay back to 0. Now, with the sustain pedal > still held, I start the arpeggio again, it segfaults immediately and > differently: Keep in mind that there are linked lists holding the current on notes (voice) and the currently sustained notes. When a voice fades out due to the sample ending the corresponding voice is not yet removed from those lists. Thus the next time you press a key (or relase the pedal) it could crash the engine because it is accessing to voices used twice etc. It's a known bug but the important thing was getting sustain working for now. > > Request: Could you possibly put the plughw:0 hack instructions in a > README that gets downloaded with the code? Yes we should add a --alsadevice option too. Plus Christian on his delta 1010 was not able to make plughw work so probably we need a special hw:0 routine for his delta (otherwise LS does not work on his workstation connected to the midi keyboard). cheers, Benno http://www.linuxsampler.org ------------------------------------------------- This mail sent through http://www.gardena.net |