Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Support of Xcode
(No functional update)
  • Loading branch information
suzumushi0 authored Feb 5, 2022
1 parent b8804be commit 067ead5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 18 deletions.
8 changes: 6 additions & 2 deletions source/SODSPparam.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021 suzumushi
// Copyright (c) 2021-2022 suzumushi
//
// 2021-12-31 SODSPparam.h
// 2022-12-20 SODSPparam.h
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand All @@ -19,8 +19,12 @@ using namespace Vst;

#include <valarray>
using std::valarray;
#ifdef _MSC_VER // Visual C++
#include <numbers>
using std::numbers::pi;
#else // __clang__ // XCode C++
constexpr double pi {3.141'592'653'589'793'116};
#endif


namespace suzumushi {
Expand Down
12 changes: 6 additions & 6 deletions source/SOextparam.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021 suzumushi
// Copyright (c) 2021-2022 suzumushi
//
// 2021-8-8 SOextparam.cpp
// 2022-1-19 SOextparam.cpp
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand Down Expand Up @@ -47,7 +47,7 @@ ParamValue LogTaperParameter:: toPlain (ParamValue valueNormalized) const

ParamValue LogTaperParameter:: toNormalized (ParamValue plainValue) const
{
return (log ((plainValue - minPlain) / (maxPlain - minPlain) * 80.0 + 1.0) / log (81.0));
return (std::log ((plainValue - minPlain) / (maxPlain - minPlain) * 80.0 + 1.0) / std::log (81.0));
}


Expand All @@ -62,9 +62,9 @@ void InfParameter:: toString (ParamValue valueNormalized, String128 string) cons
{
UString wrapper (string, str16BufferSize (String128));
if (min_Inf && valueNormalized == 0.0)
wrapper.assign (L"-‡");
wrapper.assign ((char16 *) u"-\x221E");
else if (max_Inf && valueNormalized == 1.0)
wrapper.assign (L"‡");
wrapper.assign ((char16 *) u"\x221E");
else if (! wrapper.printFloat (toPlain (valueNormalized), precision))
string[0] = 0;
}
Expand All @@ -79,7 +79,7 @@ void InfLogTaperParameter:: toString (ParamValue valueNormalized, String128 stri
{
UString wrapper (string, str16BufferSize (String128));
if (valueNormalized == 1.0)
wrapper.assign (L"‡");
wrapper.assign ((char16 *) u"\x221E"); // U+221E: Infinity
else if (! wrapper.printFloat (toPlain (valueNormalized), precision))
string[0] = 0;
}
Expand Down
7 changes: 4 additions & 3 deletions source/SOextparam.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021 suzumushi
// Copyright (c) 2021-2022 suzumushi
//
// 2021-8-8 SOextparam.h
// 2022-1-17 SOextparam.h
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand All @@ -14,6 +14,7 @@
// Extended parameters
//

#include <cmath>
#include "public.sdk/source/vst/vsteditcontroller.h"

namespace Steinberg{
Expand Down Expand Up @@ -54,7 +55,7 @@ class LogTaperParameter: public Parameter

inline ParamValue LogTaperParameter:: to_plain (ParamValue normalized, ParamValue min_param, ParamValue max_param)
{
return ((pow (81.0, normalized) - 1.0) / 80.0 * (max_param - min_param) + min_param);
return ((std::pow (81.0, normalized) - 1.0) / 80.0 * (max_param - min_param) + min_param);
}


Expand Down
6 changes: 4 additions & 2 deletions source/SOpinna.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021 suzumushi
// Copyright (c) 2021-2022 suzumushi
//
// 2021-10-21 SOpinna.h
// 2022-1-20 SOpinna.h
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand All @@ -11,8 +11,10 @@
#pragma once

#include "SODDL.h"
#ifdef _MSC_VER // Visual C++
#include <numbers>
using std::numbers::pi;
#endif


namespace suzumushi {
Expand Down
6 changes: 4 additions & 2 deletions source/SOudsampling.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021 suzumushi
// Copyright (c) 2021-2022 suzumushi
//
// 2021-8-15 SOudsampling.h
// 2022-1-20 SOudsampling.h
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand All @@ -12,8 +12,10 @@

#include "SODDL.h"
#include "SOconfig.h"
#ifdef _MSC_VER // Visual C++
#include <numbers>
using std::numbers::pi;
#endif


namespace suzumushi {
Expand Down
6 changes: 3 additions & 3 deletions source/version.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Copyright (c) 2021-2022 suzumushi
//
// 2022-1-1 version.h
// 2022-1-17 version.h
//
// Licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0).
//
Expand All @@ -19,8 +19,8 @@
#define SUB_VERSION_STR "0"
#define SUB_VERSION_INT 0

#define RELEASE_NUMBER_STR "0"
#define RELEASE_NUMBER_INT 0
#define RELEASE_NUMBER_STR "1"
#define RELEASE_NUMBER_INT 1

#define BUILD_NUMBER_STR "1" // Build number to be sure that each result could be identified.
#define BUILD_NUMBER_INT 1
Expand Down

0 comments on commit 067ead5

Please sign in to comment.