Performance issue when starting sequencing of instrument ( v2 )
JTriggerFish opened this issue · comments
It seems that beginning to sequence one or more instruments results in delays and glitches, sometimes it takes several seconds if starting several instruments (3-4) and sometimes the playback speed glitches and accelerates / decelerates until it stabilises.
I've tried on several machines including some very high spec ones and while the more powerful ones have less issues they can still experience these multi second pauses.
Here's an example to reproduce the issue:
// Let's get started
Clock.bpm = 82
Theory.root = 'b2'
Theory.mode = 'ionian'
verb = Bus2('spaceverb')
//Synth defs
{
pad = PolySynth('stringPad', {gain:0.1})
pad.connect(verb, .7).connect()
sprinkle = Monosynth('pluck', {antialias:true, octave: 3,
attack: audio => audio.Clock.ms(2), decay: 1/24, Q: 0.9, cutoff:0.1})
sprinkle.connect( verb, .6 ).connect()
pluck = Monosynth('pluck', {gain:.2})
pluck.connect( verb, .35 ).connect()
bass = Monosynth('bassPad', {decay:2})
bass.connect(verb, 0.35).connect()
drums= Drums()
drums.connect(verb, 0.1).connect()
}
drums.tidal('[kd kd ~~~~~~]*2')
sprinkle.note.seq([0,2,4,6,7,7,6,4,2,0], 1/36)
sprinkle.gain.fade(0.2, 0, 2)
pad.chord.seq([[0,2,4,6]], 3)
pluck.cutoff.fade(0,1,4)
pluck.note.seq([0,2,4,6,7,6,4,2],1/16)
bass.note.seq([14],1)
Moved to gibber.audio.lib