Skip to content

Commit e2ed4af

Browse files
committed
replace tabs with spaces
1 parent c5f8a49 commit e2ed4af

8 files changed

Lines changed: 516 additions & 516 deletions

File tree

include/Kaixo/SpectralRotator/Controller.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88

99
namespace Kaixo {
1010

11-
// ------------------------------------------------
11+
// ------------------------------------------------
1212

13-
class SpectralRotatorController : public Controller {
14-
public:
13+
class SpectralRotatorController : public Controller {
14+
public:
1515

16-
// ------------------------------------------------
16+
// ------------------------------------------------
1717

18-
SpectralRotatorController();
18+
SpectralRotatorController();
1919

20-
// ------------------------------------------------
20+
// ------------------------------------------------
2121

22-
};
22+
};
2323

24-
// ------------------------------------------------
24+
// ------------------------------------------------
2525

2626
}
2727

include/Kaixo/SpectralRotator/Processing/Fft.hpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,39 +34,39 @@
3434

3535
namespace Kaixo::Processing {
3636

37-
// ------------------------------------------------
37+
// ------------------------------------------------
3838

39-
struct Fft {
39+
struct Fft {
4040

41-
// ------------------------------------------------
41+
// ------------------------------------------------
4242

43-
std::size_t* stepRef = nullptr; // For progress bar
43+
std::size_t* stepRef = nullptr; // For progress bar
4444

45-
// ------------------------------------------------
45+
// ------------------------------------------------
4646

47-
void transform(std::vector<std::complex<float>>& vec, bool inverse);
48-
void transformRadix2(std::vector<std::complex<float>>& vec, bool inverse);
49-
void transformBluestein(std::vector<std::complex<float>>& vec, bool inverse);
47+
void transform(std::vector<std::complex<float>>& vec, bool inverse);
48+
void transformRadix2(std::vector<std::complex<float>>& vec, bool inverse);
49+
void transformBluestein(std::vector<std::complex<float>>& vec, bool inverse);
5050

51-
// ------------------------------------------------
51+
// ------------------------------------------------
5252

53-
std::vector<std::complex<float>> convolve(
54-
std::vector<std::complex<float>> xvec,
55-
std::vector<std::complex<float>> yvec);
53+
std::vector<std::complex<float>> convolve(
54+
std::vector<std::complex<float>> xvec,
55+
std::vector<std::complex<float>> yvec);
5656

57-
// ------------------------------------------------
57+
// ------------------------------------------------
5858

59-
std::size_t estimateSteps(std::size_t size, bool inverse);
59+
std::size_t estimateSteps(std::size_t size, bool inverse);
6060

61-
// ------------------------------------------------
62-
63-
void step() { if (stepRef) (*stepRef)++; }
61+
// ------------------------------------------------
62+
63+
void step() { if (stepRef) (*stepRef)++; }
6464

65-
// ------------------------------------------------
65+
// ------------------------------------------------
6666

67-
};
67+
};
6868

69-
// ------------------------------------------------
69+
// ------------------------------------------------
7070

7171
}
7272

include/Kaixo/SpectralRotator/Processing/Resampler.hpp

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,65 +13,65 @@
1313

1414
namespace Kaixo::Processing {
1515

16-
// ------------------------------------------------
16+
// ------------------------------------------------
1717

18-
struct AudioBufferResampler {
18+
struct AudioBufferResampler {
1919

20-
// ------------------------------------------------
20+
// ------------------------------------------------
2121

22-
constexpr static std::int64_t WINDOW_SIZE = 64; // Windowed-Sinc Function window size.
22+
constexpr static std::int64_t WINDOW_SIZE = 64; // Windowed-Sinc Function window size.
2323

24-
// ------------------------------------------------
24+
// ------------------------------------------------
2525

26-
void reset() { index(0); }
27-
void index(std::int64_t i) { playindex = i; lastinserted = i; finished = false; }
26+
void reset() { index(0); }
27+
void index(std::int64_t i) { playindex = i; lastinserted = i; finished = false; }
2828

29-
// ------------------------------------------------
30-
31-
bool reverse = false;
29+
// ------------------------------------------------
30+
31+
bool reverse = false;
3232

33-
// ------------------------------------------------
33+
// ------------------------------------------------
3434

35-
struct {
36-
double in;
37-
double out;
38-
} samplerate;
35+
struct {
36+
double in;
37+
double out;
38+
} samplerate;
3939

40-
// ------------------------------------------------
40+
// ------------------------------------------------
4141

42-
Stereo generate(const AudioBuffer& buffer);
42+
Stereo generate(const AudioBuffer& buffer);
4343

44-
// ------------------------------------------------
45-
46-
std::int64_t position() const { return lastinserted; }
47-
bool eof() const { return finished; }
44+
// ------------------------------------------------
45+
46+
std::int64_t position() const { return lastinserted; }
47+
bool eof() const { return finished; }
4848

49-
// ------------------------------------------------
49+
// ------------------------------------------------
5050

51-
private:
52-
std::int64_t lastinserted = 0;
53-
double playindex = 0; // Current non-integer index in input buffer.
54-
bool finished = false;
51+
private:
52+
std::int64_t lastinserted = 0;
53+
double playindex = 0; // Current non-integer index in input buffer.
54+
bool finished = false;
5555

56-
// ------------------------------------------------
56+
// ------------------------------------------------
5757

58-
struct CircleBuffer {
59-
Stereo data[WINDOW_SIZE]{};
60-
constexpr Stereo& operator[](std::int64_t i) { return data[(i + 10 * WINDOW_SIZE) % WINDOW_SIZE]; }
61-
} buffer;
58+
struct CircleBuffer {
59+
Stereo data[WINDOW_SIZE]{};
60+
constexpr Stereo& operator[](std::int64_t i) { return data[(i + 10 * WINDOW_SIZE) % WINDOW_SIZE]; }
61+
} buffer;
6262

63-
EllipticFilter aaf[2]{};
64-
EllipticParameters aafp[2]{};
63+
EllipticFilter aaf[2]{};
64+
EllipticParameters aafp[2]{};
6565

66-
// ------------------------------------------------
66+
// ------------------------------------------------
6767

68-
void applyWindowedSinc(Stereo& in);
68+
void applyWindowedSinc(Stereo& in);
6969

70-
// ------------------------------------------------
70+
// ------------------------------------------------
7171

72-
};
72+
};
7373

74-
// ------------------------------------------------
74+
// ------------------------------------------------
7575

7676
}
7777

include/Kaixo/Utils/AudioFile.hpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,41 @@
1212

1313
namespace Kaixo {
1414

15-
// ------------------------------------------------
15+
// ------------------------------------------------
1616

17-
enum class FileLoadStatus {
18-
Success, TooLarge, Error, FailedToOpen, NotExists
19-
};
17+
enum class FileLoadStatus {
18+
Success, TooLarge, Error, FailedToOpen, NotExists
19+
};
2020

21-
// ------------------------------------------------
21+
// ------------------------------------------------
2222

23-
struct AudioFile {
23+
struct AudioFile {
2424

25-
// ------------------------------------------------
25+
// ------------------------------------------------
2626

27-
FileLoadStatus open(std::filesystem::path file, std::size_t bitDepth = 16, double sampleRate = 48000);
27+
FileLoadStatus open(std::filesystem::path file, std::size_t bitDepth = 16, double sampleRate = 48000);
2828

29-
// ------------------------------------------------
29+
// ------------------------------------------------
3030

31-
std::filesystem::path path{};
32-
Processing::AudioBuffer buffer{};
33-
std::atomic_bool changed{};
31+
std::filesystem::path path{};
32+
Processing::AudioBuffer buffer{};
33+
std::atomic_bool changed{};
3434

35-
// ------------------------------------------------
36-
37-
void write(std::filesystem::path file);
35+
// ------------------------------------------------
36+
37+
void write(std::filesystem::path file);
3838

39-
void save(std::string filename = "rotated");
39+
void save(std::string filename = "rotated");
4040

41-
// ------------------------------------------------
42-
43-
static std::filesystem::path generationLocation();
41+
// ------------------------------------------------
42+
43+
static std::filesystem::path generationLocation();
4444

45-
// ------------------------------------------------
45+
// ------------------------------------------------
4646

47-
};
47+
};
4848

49-
// ------------------------------------------------
49+
// ------------------------------------------------
5050

5151
}
5252

0 commit comments

Comments
 (0)