Expose WindowingFunction array

As the title suggests, is it possible to add a method to return a const reference to the underlying window array?

I need to calculate something with it and it’s not possible with just the multiplyWith() method.

Bumpty bump.

const Array<FloatType>& getWindow () const
{
	return windowTable;
}

Something like this would be nice.

Any kind of answer yes or no?

You could also use the static public method fillWindowingTables() to write the window to your buffer, without the need of instantiating a WindowingFunction object.

https://docs.juce.com/master/classdsp_1_1WindowingFunction.html#a1b757fdcd8984d368834bc6b6a9d1aa5

1 Like

Ah flip sake… I missed the static version of that function. I can just use that so. Thanks.