Web Export Latency Tricks

Suns_and_Zeroes's icon

Hello All,

In the web export, what are some good ways to make audio output as instant as possible when reacting to user input? I notice with small patches it feels pretty instant, and as the polyphony turns up the latency starts to increase.

A few questions:

1- could it be faster to have multiple smaller RNBO devices running? Do they run on different threads by default if they are loaded in using @rnbo/js?

2- when it comes to setting parameters, is there a way where the current system time is explicitly defined as the time to do a command? (The equivalent in Tone.js is Time.now, defining it as the time to do the command improves latency greatly)

3- what are some general tricks for keeping web RNBO things snappy? Wondering if there are tricks that can be used for optimization?

also: is there an example somewhere of passing raw MIDI data straight from a controller to a RNBO patcher using JS?

Thank you!

R