LMMS
Loading...
Searching...
No Matches
juce_Windowing.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28namespace dsp
29{
30
41template <typename FloatType>
43{
44public:
45 //==============================================================================
59
60 //==============================================================================
66 WindowingFunction (size_t size, WindowingMethod,
67 bool normalise = true, FloatType beta = 0);
68
69 //==============================================================================
80 void fillWindowingTables (size_t size, WindowingMethod type,
81 bool normalise = true, FloatType beta = 0) noexcept;
82
93 static void fillWindowingTables (FloatType* samples, size_t size, WindowingMethod,
94 bool normalise = true, FloatType beta = 0) noexcept;
95
97 void multiplyWithWindowingTable (FloatType* samples, size_t size) noexcept;
98
100 static const char* getWindowingMethodName (WindowingMethod) noexcept;
101
102
103private:
104 //==============================================================================
105 Array<FloatType> windowTable;
106
108};
109
110} // namespace dsp
111} // namespace juce
#define noexcept
Definition DistrhoDefines.h:72
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
Definition juce_Array.h:56
Definition juce_Windowing.h:43
WindowingMethod
Definition juce_Windowing.h:48
@ blackman
Definition juce_Windowing.h:53
@ hamming
Definition juce_Windowing.h:52
@ kaiser
Definition juce_Windowing.h:56
@ blackmanHarris
Definition juce_Windowing.h:54
@ triangular
Definition juce_Windowing.h:50
@ flatTop
Definition juce_Windowing.h:55
@ rectangular
Definition juce_Windowing.h:49
@ numWindowingMethods
Definition juce_Windowing.h:57
@ hann
Definition juce_Windowing.h:51
WindowingFunction(size_t size, WindowingMethod, bool normalise=true, FloatType beta=0)
Definition juce_Windowing.cpp:39
Array< FloatType > windowTable
Definition juce_Windowing.h:105
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition juce_AudioBlock.h:29
Definition carla_juce.cpp:31
#define true
Definition ordinals.h:82
ulg size
Definition extract.c:2350
#define const
Definition zconf.h:137