Skip to content

Commit

Permalink
David Minnix - WIP commit. setting up testing project for arduino ada…
Browse files Browse the repository at this point in the history
…ptor
  • Loading branch information
XiNNiW committed Mar 4, 2017
1 parent c69748b commit 0289017
Show file tree
Hide file tree
Showing 31 changed files with 48,951 additions and 16 deletions.
17 changes: 17 additions & 0 deletions due-synth-library/include/DigitalAudioConverter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

#ifndef INCLUDE_DIGITALAUDIOCONVERTER_H_
#define INCLUDE_DIGITALAUDIOCONVERTER_H_
#include <IAudioGenerator.h>
#include <IDigitalAudioConverter.h>

class DigitalAudioConverter: public IDigitalAudioConverter{
private:
static DigitalAudioConverter* singleton;
DigitalAudioConverter();
public:
void addAudioGeneratorToOutput(IAudioGenerator* generator);
static IDigitalAudioConverter* instance();
~DigitalAudioConverter();
};

#endif /* INCLUDE_DIGITALAUDIOCONVERTER_H_ */
13 changes: 13 additions & 0 deletions due-synth-library/include/IDigitalAudioConverter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

#ifndef INCLUDE_IDIGITALAUDIOCONVERTER_H_
#define INCLUDE_IDIGITALAUDIOCONVERTER_H_
#include <IAudioGenerator.h>

class IDigitalAudioConverter {
public:
IDigitalAudioConverter(){};
virtual void addAudioGeneratorToOutput(IAudioGenerator* generator)=0;
virtual ~IDigitalAudioConverter(){};
};

#endif /* INCLUDE_IDIGITALAUDIOCONVERTER_H_ */
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef SRC_SINEWAVETABLEOSCILLATOR_H_
#define SRC_SINEWAVETABLEOSCILLATOR_H_
#include <IWavetableOscillator.h>
#include <Synthesis/IWavetableOscillator.h>


class SineWavetableOscillator: virtual public IWavetableOscillator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

#ifndef SRC_WAVETABLESYNTH_H_
#define SRC_WAVETABLESYNTH_H_
#include <IWavetableSynth.h>
#include <IWavetableOscillator.h>
#include <Synthesis/IWavetableSynth.h>
#include <Synthesis/IWavetableOscillator.h>
#include <IAudioGenerator.h>

class WavetableSynth : public IWavetableSynth, virtual IAudioGenerator{
Expand Down
24 changes: 24 additions & 0 deletions due-synth-library/src/DigitalAudioConverter.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <DigitalAudioConverter.h>
DigitalAudioConverter* DigitalAudioConverter::singleton = 0;
DigitalAudioConverter::DigitalAudioConverter():IDigitalAudioConverter(){

}

DigitalAudioConverter::~DigitalAudioConverter(){

}



IDigitalAudioConverter* DigitalAudioConverter::instance(){
if(!singleton){
singleton = new DigitalAudioConverter();
}
return singleton;
}

void DigitalAudioConverter::addAudioGeneratorToOutput(IAudioGenerator* generator){

}


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "ADSREnvelopeGenerator.h"
#include <Synthesis/ADSREnvelopeGenerator.h>

ADSREnvelopeGenerator::ADSREnvelopeGenerator(float attack, float decay,
float sustain, float release) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <SineWavetableOscillator.h>
#include <Synthesis/SineWavetableOscillator.h>
#include <math.h>

#define WAVETABLE_SIZE 128
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <WavetableSynth.h>
#include <Synthesis/WavetableSynth.h>

#include <SineWavetableOscillator.h>
#include <Synthesis/SineWavetableOscillator.h>
#include <math.h>

WavetableSynth::WavetableSynth():IWavetableSynth() {
Expand Down
145 changes: 145 additions & 0 deletions due-synth-runner-test/.cproject
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236" name="Debug" parent="cdt.managedbuild.config.gnu.cross.exe.debug">
<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.debug.592023250" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.debug">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.755306884" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/due-synth-runner-test}/Debug" id="cdt.managedbuild.builder.gnu.cross.1508115245" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.1996336344" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.1603790469" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.623282430" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/>
<option id="gnu.c.compiler.option.include.paths.889394728" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/core/core}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/core/variant}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/libraries/src}&quot;"/>
</option>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1977476560" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.1161358935" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="gnu.cpp.compiler.option.optimization.level.2143274320" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.debugging.level.465802894" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.include.paths.807284778" name="Include paths (-I)" superClass="gnu.cpp.compiler.option.include.paths" useByScannerDiscovery="false" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/libTest}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/src}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/core/core}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/core/variant}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/due-synth-runner/libraries/src}&quot;"/>
</option>
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.792541799" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.944189525" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker"/>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.1822197396" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
<option id="gnu.cpp.link.option.libs.426417436" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
<listOptionValue builtIn="false" srcPrefixMapping="" srcRootPath="" value="pthread"/>
</option>
<option id="gnu.cpp.link.option.paths.788321233" name="Library search path (-L)" superClass="gnu.cpp.link.option.paths" valueType="libPaths"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.1165367341" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1569510114" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.1296818056" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.831880215" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry excluding="include|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="include"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
</sourceEntries>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.release.2032431723">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.release.2032431723" moduleId="org.eclipse.cdt.core.settings" name="Release">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.release.2032431723" name="Release" parent="cdt.managedbuild.config.gnu.cross.exe.release">
<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.release.2032431723." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.release.1936870521" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.release">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1777699598" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/due-synth-runner-test}/Release" id="cdt.managedbuild.builder.gnu.cross.2052019372" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.1485001398" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.704960236" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.979656264" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.515745176" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.1519964045" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="gnu.cpp.compiler.option.optimization.level.458761844" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.debugging.level.1698609572" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1934470035" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.540655162" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker"/>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.572849270" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker">
<inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.615087138" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1832095550" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.766846077" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1081430342" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry excluding="include|src" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="include"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
</sourceEntries>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="due-synth-runner-test.cdt.managedbuild.target.gnu.cross.exe.747976490" name="Executable" projectType="cdt.managedbuild.target.gnu.cross.exe"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236;cdt.managedbuild.config.gnu.cross.exe.debug.1551832236.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.1161358935;cdt.managedbuild.tool.gnu.cpp.compiler.input.792541799">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.debug.1551832236;cdt.managedbuild.config.gnu.cross.exe.debug.1551832236.;cdt.managedbuild.tool.gnu.cross.c.compiler.1996336344;cdt.managedbuild.tool.gnu.c.compiler.input.1977476560">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.release.2032431723;cdt.managedbuild.config.gnu.cross.exe.release.2032431723.;cdt.managedbuild.tool.gnu.cross.c.compiler.1485001398;cdt.managedbuild.tool.gnu.c.compiler.input.515745176">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.release.2032431723;cdt.managedbuild.config.gnu.cross.exe.release.2032431723.;cdt.managedbuild.tool.gnu.cross.cpp.compiler.1519964045;cdt.managedbuild.tool.gnu.cpp.compiler.input.1934470035">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
<storageModule moduleId="refreshScope"/>
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
</cproject>
1 change: 1 addition & 0 deletions due-synth-runner-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Debug/
27 changes: 27 additions & 0 deletions due-synth-runner-test/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>due-synth-runner-test</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
Loading

0 comments on commit 0289017

Please sign in to comment.