[refactor]: c++ implementation #13

Merged
e1lama merged 19 commits from refactor/cpp into master 2023-08-08 19:08:19 +00:00
10 changed files with 362 additions and 0 deletions
Showing only changes of commit 64fa5c9271 - Show all commits

View File

@@ -1,4 +1,5 @@
#pragma once
#include <vector>
#include "Oscillator.h"

View File

@@ -4,7 +4,7 @@ std::vector<float> & Adder::SumOscillators(const std::vector<Oscillator*> & osci
{
size_t sample_count = (size_t)(duration * SAMPLE_RATE);
std::vector<float> output;// = new std::vector<float>();
std::vector<float> output = new std::vector<float>();
output.reserve(sample_count);
for (size_t i = 0; i < sample_count; i++)