Server can't keep up

Hi! I’m sonifying a very large dataset of timestamped linux kernel activity and I’m trying to go from very short sounds slowly expanding the time between events. The trouble I’m quite naturally running into is that when the time between events is very short scsynth doesn’t seem to be able to keep up with all the messages and Synths.

I’ve tried adding latency with s.makeBundle which didn’t help (I’m getting “late” messages with increasing lateness until the playrate slows down).

Is there a smart way of doing this with the Client-Server architecture or is going all signal domain the only way to go?

The timecodes are in microseconds, I’m starting of at 1/10th that speed with 100000 events/sec. This code exemplifies the general idea:

s.options.maxNodes = 8196; // default is 1024
s.options.memSize = 256 * 1024;
SynthDef(\tick2, {
	var sig, env, rq = \;
	env = Env.perc(\, \;
	sig =;
	sig = sig * 0.5;
	sig =, \, rq) * env;
	sig =, \ * \;\, sig);
~latency = 1.0;

// 0.001 works fine, 0.0001 stutters but sounds good, 0.00001 stutters and is distorted
{ var waitTime = 0.00001;{ // non-endless since that froze my system sometimes
		if(rrand(0.0, 1.0) > 0.7) {
			0.00001.wait; // simulate some calculations happening here
			s.makeBundle(~latency, {
					// (exprand(5, 500) * [-1, 1].choose)
						\freq, rrand(1000, 8000),
						\rq, exprand(0.001, 0.1),
						\out, 0,
						\amp, rrand(0.001, 0.01),
						\rel, waitTime * 300, //0.01,
						\pan, rrand(-1.0, 1.0)

Hi Erik,

Do you need it to be played in real time? You may have considered it already, but you could try to Non-Realtime Synthesis: if you haven’t already?

If you need it realtime playback, but can accept some time delay you cold maybe calculate sections of audio using NRT, and stich them together in a real time playback stream?


1 Like

You’re right, I can’t remember why I dismissed that before, but it seems smart right now, I’ll give it a go! Thanks!