@Christoph-Hart And I get an error here
template <typename T> void process(T& data) { DataReadLock sl(data); // Can't find constructor that matches init values { $p0 } for(auto ch: data) { for(auto& s: data.toChannelData(ch)) { s = getSample(s); } } }