Open baigua opened 9 months ago
turn on multiple notes at the same time in the synth
timing is controlled by rendering more samples
Thanks a lot, I don't know if my understanding is correct?
you need to feed every buffer, not just the last one
or combine the buffers into one big one
sure, the feed part should be like:
Future.delayed(Duration(milliseconds: gapTime), () { FlutterPcmSound.feed(PcmArrayInt16(bytes: buffer.bytes)); }
just make sure, if I don't noteOff any notes, they will keep active in the following render.
I found FlutterPcmSound is single threaded.
so what should I do, if I want my note not play one after another or play at the same time, but like this: