LMMS
Loading...
Searching...
No Matches
juce_MPEValue.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 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23namespace juce
24{
25
26//==============================================================================
37{
38public:
39 //==============================================================================
44 MPEValue() noexcept;
45
49 static MPEValue from7BitInt (int value) noexcept;
50
54 static MPEValue from14BitInt (int value) noexcept;
55
57 static MPEValue fromUnsignedFloat (float value) noexcept;
58
60 static MPEValue fromSignedFloat (float value) noexcept;
61
63 static MPEValue centreValue() noexcept;
64
66 static MPEValue minValue() noexcept;
67
69 static MPEValue maxValue() noexcept;
70
76 int as7BitInt() const noexcept;
77
83 int as14BitInt() const noexcept;
84
86 float asSignedFloat() const noexcept;
87
89 float asUnsignedFloat() const noexcept;
90
92 bool operator== (const MPEValue& other) const noexcept;
93
95 bool operator!= (const MPEValue& other) const noexcept;
96
97private:
98 //==============================================================================
100 int normalisedValue = 8192;
101};
102
103} // namespace juce
float asSignedFloat() const noexcept
Definition juce_MPEValue.cpp:74
static MPEValue maxValue() noexcept
Definition juce_MPEValue.cpp:61
static MPEValue centreValue() noexcept
Definition juce_MPEValue.cpp:60
static MPEValue from14BitInt(int value) noexcept
Definition juce_MPEValue.cpp:40
static MPEValue fromUnsignedFloat(float value) noexcept
Definition juce_MPEValue.cpp:46
static MPEValue fromSignedFloat(float value) noexcept
Definition juce_MPEValue.cpp:52
static MPEValue minValue() noexcept
Definition juce_MPEValue.cpp:59
float asUnsignedFloat() const noexcept
Definition juce_MPEValue.cpp:81
MPEValue() noexcept
Definition juce_MPEValue.cpp:26
int normalisedValue
Definition juce_MPEValue.h:100
int as7BitInt() const noexcept
Definition juce_MPEValue.cpp:63
int as14BitInt() const noexcept
Definition juce_MPEValue.cpp:68
static MPEValue from7BitInt(int value) noexcept
Definition juce_MPEValue.cpp:30
static PuglViewHint int value
Definition pugl.h:1708
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31