MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / renoise

Function renoise

src/framework/sampling/diffusion_math.cpp:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202std::vector<float> renoise(
203 const std::vector<float> & denoised,
204 const std::vector<float> & noise,
205 float t) {
206 require_same_size(denoised.size(), noise.size(), "renoise input/noise size mismatch");
207 std::vector<float> out(denoised.size(), 0.0F);
208 for (size_t i = 0; i < denoised.size(); ++i) {
209 out[i] = t * noise[i] + (1.0F - t) * denoised[i];
210 }
211 return out;
212}
213
214std::vector<float> heun_combine_velocity(
215 const std::vector<float> & velocity_first,

Callers

nothing calls this directly

Calls 2

require_same_sizeFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected