Skip to content

Commit dc5abf8

Browse files
committed
Rename project
1 parent 574f92f commit dc5abf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+34
-34
lines changed

README.md

+4-4

primasynth.sln renamed to primesynth.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.27703.2026
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "primasynth", "primasynth\primasynth.vcxproj", "{4741E648-BCB4-4936-8025-E35396041706}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "primesynth", "primesynth\primesynth.vcxproj", "{4741E648-BCB4-4936-8025-E35396041706}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
File renamed without changes.

primasynth/include/audio_output.h renamed to primesynth/include/audio_output.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "third_party/portaudio.h"
55
#include <atomic>
66

7-
namespace primasynth {
7+
namespace primesynth {
88
class AudioOutput {
99
public:
1010
AudioOutput(Synthesizer& synth, std::size_t bufferSize, int deviceID = getDefaultDeviceID(),

primasynth/include/channel.h renamed to primesynth/include/channel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "voice.h"
44
#include <mutex>
55

6-
namespace primasynth {
6+
namespace primesynth {
77
class Channel {
88
public:
99
explicit Channel(double outputRate);

primasynth/include/conversion.h renamed to primesynth/include/conversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <cstdint>
33

4-
namespace primasynth {
4+
namespace primesynth {
55
namespace conv {
66
void initialize();
77

primasynth/include/envelope.h renamed to primesynth/include/envelope.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <array>
33

4-
namespace primasynth {
4+
namespace primesynth {
55
class Envelope {
66
public:
77
enum class Phase { Delay, Attack, Hold, Decay, Sustain, Release, Finished };

primasynth/include/fixed_point.h renamed to primesynth/include/fixed_point.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
namespace primasynth {
3+
namespace primesynth {
44
// 64 bit fixed-point number
55
// higher 32 bit for integer part and lower 32 bit for fractional part
66
class FixedPoint {

primasynth/include/lfo.h renamed to primesynth/include/lfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "conversion.h"
33

4-
namespace primasynth {
4+
namespace primesynth {
55
class LFO {
66
public:
77
LFO(double outputRate, unsigned int interval)

primasynth/include/midi.h renamed to primesynth/include/midi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <cstddef>
33
#include <cstdint>
44

5-
namespace primasynth {
5+
namespace primesynth {
66
namespace midi {
77
static constexpr std::uint8_t PERCUSSION_CHANNEL = 9;
88
static constexpr std::size_t NUM_CONTROLLERS = 128;

primasynth/include/midi_input.h renamed to primesynth/include/midi_input.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define NOMINMAX
55
#include <Windows.h>
66

7-
namespace primasynth {
7+
namespace primesynth {
88
class MIDIInput {
99
public:
1010
struct SharedParam {

primasynth/include/modulator.h renamed to primesynth/include/modulator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "soundfont_spec.h"
33

4-
namespace primasynth {
4+
namespace primesynth {
55
class Modulator {
66
public:
77
explicit Modulator(const sf::ModList& param);

primasynth/include/ring_buffer.h renamed to primesynth/include/ring_buffer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <vector>
33

4-
namespace primasynth {
4+
namespace primesynth {
55
class RingBuffer {
66
public:
77
explicit RingBuffer(std::size_t size) : size_(size), data_(size) {}

primasynth/include/soundfont.h renamed to primesynth/include/soundfont.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <array>
44
#include <vector>
55

6-
namespace primasynth {
6+
namespace primesynth {
77
static constexpr std::size_t NUM_GENERATORS = static_cast<std::size_t>(sf::Generator::Last);
88
static constexpr std::uint16_t PERCUSSION_BANK = 128;
99

primasynth/include/soundfont_spec.h renamed to primesynth/include/soundfont_spec.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <cstdint>
33

4-
namespace primasynth {
4+
namespace primesynth {
55
namespace sf {
66
enum class SampleLink : std::uint16_t {
77
MonoSample = 1,
File renamed without changes.

primasynth/include/stereo_value.h renamed to primesynth/include/stereo_value.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
namespace primasynth {
3+
namespace primesynth {
44
struct StereoValue {
55
double left, right;
66

primasynth/include/synthesizer.h renamed to primesynth/include/synthesizer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "channel.h"
33

4-
namespace primasynth {
4+
namespace primesynth {
55
class Synthesizer {
66
public:
77
Synthesizer(double outputRate = 44100, std::size_t numChannels = 16);

primasynth/include/voice.h renamed to primesynth/include/voice.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "soundfont.h"
77
#include "stereo_value.h"
88

9-
namespace primasynth {
9+
namespace primesynth {
1010
class Voice {
1111
public:
1212
enum class State { Playing, Sustained, Released, Finished };
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

primasynth/primasynth.vcxproj renamed to primesynth/primesynth.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<VCProjectVersion>15.0</VCProjectVersion>
6161
<ProjectGuid>{4741E648-BCB4-4936-8025-E35396041706}</ProjectGuid>
6262
<Keyword>Win32Proj</Keyword>
63-
<RootNamespace>primasynth</RootNamespace>
63+
<RootNamespace>primesynth</RootNamespace>
6464
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
6565
</PropertyGroup>
6666
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

primasynth/src/audio_output.cpp renamed to primesynth/src/audio_output.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define NOMINMAX
44
#include <Windows.h>
55

6-
namespace primasynth {
6+
namespace primesynth {
77
int streamCallback(const void*, void* output, unsigned long frameCount, const PaStreamCallbackTimeInfo*,
88
PaStreamCallbackFlags, void* userData) {
99
const auto out = static_cast<float*>(output);

primasynth/src/channel.cpp renamed to primesynth/src/channel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "channel.h"
22

3-
namespace primasynth {
3+
namespace primesynth {
44
Channel::Channel(double outputRate)
55
: outputRate_(outputRate),
66
controllers_(),

primasynth/src/conversion.cpp renamed to primesynth/src/conversion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "conversion.h"
22
#include <array>
33

4-
namespace primasynth {
4+
namespace primesynth {
55
namespace conv {
66
std::array<double, 1441> attenToAmpTable;
77
std::array<double, 1200> centToHertzTable;

primasynth/src/envelope.cpp renamed to primesynth/src/envelope.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "conversion.h"
22
#include "envelope.h"
33

4-
namespace primasynth {
4+
namespace primesynth {
55
Envelope::Envelope(double outputRate, unsigned int interval)
66
: effectiveOutputRate_(outputRate / interval), params_(), phase_(Phase::Delay), phaseSteps_(0), value_(1.0) {}
77

primasynth/src/main.cpp renamed to primesynth/src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
int main(int argc, char** argv) {
77
try {
8-
using namespace primasynth;
8+
using namespace primesynth;
99

1010
cmdline::parser argparser;
11-
argparser.set_program_name("primasynth");
11+
argparser.set_program_name("primesynth");
1212
argparser.add<unsigned int>("in", 'i', "input MIDI device ID", false, 0);
1313
argparser.add<unsigned int>("out", 'o', "output audio device ID", false);
1414
argparser.add<double>("volume", 'v', "volume (1 = 100%)", false, 1.0);

primasynth/src/midi.cpp renamed to primesynth/src/midi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "midi.h"
22

3-
namespace primasynth {
3+
namespace primesynth {
44
namespace midi {
55
std::uint16_t joinBytes(std::uint8_t msb, std::uint8_t lsb) {
66
return (static_cast<std::uint16_t>(msb) << 7) + static_cast<std::uint16_t>(lsb);

primasynth/src/midi_input.cpp renamed to primesynth/src/midi_input.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <iostream>
44
#include <sstream>
55

6-
namespace primasynth {
6+
namespace primesynth {
77
void checkMMResult(MMRESULT result) {
88
if (result != MMSYSERR_NOERROR) {
99
char msg[MAXERRORLENGTH];

primasynth/src/modulator.cpp renamed to primesynth/src/modulator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "modulator.h"
33
#include <stdexcept>
44

5-
namespace primasynth {
5+
namespace primesynth {
66
Modulator::Modulator(const sf::ModList& param) : param_(param), source_(0.0), amountSource_(1.0), value_(0.0) {}
77

88
sf::Generator Modulator::getDestination() const {

primasynth/src/soundfont.cpp renamed to primesynth/src/soundfont.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "soundfont.h"
33
#include <fstream>
44

5-
namespace primasynth {
5+
namespace primesynth {
66
std::string achToString(const char ach[20]) {
77
return {ach, strnlen(ach, 20)};
88
}
File renamed without changes.

primasynth/src/stereo_value.cpp renamed to primesynth/src/stereo_value.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "stereo_value.h"
22

3-
namespace primasynth {
3+
namespace primesynth {
44
StereoValue StereoValue::operator*(double b) const {
55
return {left * b, right * b};
66
}

primasynth/src/synthesizer.cpp renamed to primesynth/src/synthesizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "synthesizer.h"
22

3-
namespace primasynth {
3+
namespace primesynth {
44
Synthesizer::Synthesizer(double outputRate, std::size_t numChannels)
55
: volume_(1.0), midiStd_(midi::Standard::GM), defaultMIDIStd_(midi::Standard::GM), stdFixed_(false) {
66
conv::initialize();

primasynth/src/voice.cpp renamed to primesynth/src/voice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "voice.h"
22

3-
namespace primasynth {
3+
namespace primesynth {
44
static constexpr unsigned int CALC_INTERVAL = 64;
55

66
// for compatibility

0 commit comments

Comments
 (0)