- refactored
@@ -0,0 +1,2 @@
|
|||||||
|
build
|
||||||
|
|
||||||
@@ -3,12 +3,13 @@ include make/defaults.mk
|
|||||||
CONFIG ?= release
|
CONFIG ?= release
|
||||||
TARGET ?= JaySynth.so
|
TARGET ?= JaySynth.so
|
||||||
|
|
||||||
APP_VERSION := 1.0.1a
|
APP_VERSION := 1.0.1b
|
||||||
APP_VERSION_HEX := 0x010001
|
APP_VERSION_HEX := 0x010001
|
||||||
LIBSRC_PATH ?= $(realpath ./submodule)
|
LIBSRC_PATH ?= $(realpath ./submodule)
|
||||||
JUCE_PATH := $(realpath ./sdk/juce/JUCE-3.1.1)
|
JUCE_PATH := $(realpath ./sdk/juce/JUCE-3.1.1)
|
||||||
VST2_SDK_PATH ?= $(realpath ./sdk/vst/vstsdk2.4)
|
VST2_SDK_PATH ?= $(realpath ./sdk/vst/vstsdk2.4)
|
||||||
JUCE_LIBCODE_PATH ?= $(realpath ./JuceLibraryCode)
|
JUCE_LIBCODE_PATH ?= $(realpath ./JuceLibraryCode)
|
||||||
|
SRC_PATH := $(realpath ./src)
|
||||||
|
|
||||||
NAME =: JaySynth
|
NAME =: JaySynth
|
||||||
|
|
||||||
@@ -30,9 +31,9 @@ DEFINES += -DJucePlugin_Version=$(APP_VERSION)
|
|||||||
DEFINES += -DJucePlugin_VersionCode=$(APP_VERSION_HEX)
|
DEFINES += -DJucePlugin_VersionCode=$(APP_VERSION_HEX)
|
||||||
DEFINES += -DJucePlugin_VersionString=\"$(APP_VERSION)\"
|
DEFINES += -DJucePlugin_VersionString=\"$(APP_VERSION)\"
|
||||||
|
|
||||||
INCLUDES += -I $(JUCE_PATH) -I $(JUCE_PATH)/modules -I $(VST2_SDK_PATH) -I $(LIBSRC_PATH) -I $(JUCE_LIBCODE_PATH)
|
INCLUDES += -I $(JUCE_PATH) -I $(JUCE_PATH)/modules -I $(VST2_SDK_PATH) -I $(LIBSRC_PATH) -I $(JUCE_LIBCODE_PATH) -I $(SRC_PATH)
|
||||||
|
|
||||||
PACKAGES := JuceLibraryCode Source Synth Fir
|
PACKAGES := JuceLibraryCode plug synth fir
|
||||||
|
|
||||||
export
|
export
|
||||||
|
|
||||||
@@ -44,16 +45,16 @@ app: objects link
|
|||||||
|
|
||||||
objects: ${PACKAGES}
|
objects: ${PACKAGES}
|
||||||
|
|
||||||
Synth:
|
synth:
|
||||||
@$(MAKE) -C Source/synth
|
@$(MAKE) -C $(SRC_PATH)/synth
|
||||||
|
|
||||||
Source:
|
plug:
|
||||||
@$(MAKE) -C $@
|
@$(MAKE) -C $(SRC_PATH)/plug
|
||||||
|
|
||||||
JuceLibraryCode:
|
JuceLibraryCode:
|
||||||
@$(MAKE) -C $@
|
@$(MAKE) -C $@
|
||||||
|
|
||||||
Fir:
|
fir:
|
||||||
@$(MAKE) -C $(LIBSRC_PATH)/fir
|
@$(MAKE) -C $(LIBSRC_PATH)/fir
|
||||||
|
|
||||||
include $(MAKE_HOME)/link.mk
|
include $(MAKE_HOME)/link.mk
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
include $(MAKE_HOME)/defaults.mk
|
|
||||||
|
|
||||||
LIBSRC_PATH ?= $(realpath ../../../libsrc)
|
|
||||||
JUCE_PATH ?= $(realpath ../sdk/juce/JUCE-3.1.1)
|
|
||||||
VST2_SDK_PATH ?= $(realpath ../sdk/vst/vstsdk2.4)
|
|
||||||
|
|
||||||
include config.mk
|
|
||||||
|
|
||||||
INCLUDES += -I $(LIBSRC_PATH) -I $(JUCE_PATH) -I $(VST2_SDK_PATH)
|
|
||||||
|
|
||||||
include $(MAKE_HOME)/compile.mk
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
include $(MAKE_HOME)/defaults.mk
|
|
||||||
|
|
||||||
LIBSRC_PATH ?= $(realpath ../../../../libsrc)
|
|
||||||
VST2_SDK_PATH ?= $(realpath ../../sdk/vst/vstsdk2.4)
|
|
||||||
|
|
||||||
include config.mk
|
|
||||||
|
|
||||||
INCLUDES ?= -I $(LIBSRC_PATH) -I $(VST2_SDK_PATH)
|
|
||||||
|
|
||||||
include $(MAKE_HOME)/compile.mk
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
include $(MAKE_HOME)/defaults.mk
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
CC=clang
|
||||||
|
CCC=clang++
|
||||||
|
CXX=clang++
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
build
|
||||||
|
JUCE-3.1.1
|
||||||
|
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
vstsdk2.4
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
#define __JUCER_HEADER_BUTTONLED_BUTTONLED_B8510B75__
|
#define __JUCER_HEADER_BUTTONLED_BUTTONLED_B8510B75__
|
||||||
|
|
||||||
//[Headers] -- You can add your own extra header files here --
|
//[Headers] -- You can add your own extra header files here --
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
//[/Headers]
|
//[/Headers]
|
||||||
|
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
#ifndef __JK_MIDICLOCK
|
#ifndef __JK_MIDICLOCK
|
||||||
#define __JK_MIDICLOCK
|
#define __JK_MIDICLOCK
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
|
|
||||||
//#include "Includes.h"
|
//#include "Includes.h"
|
||||||
|
|
||||||
@@ -9,22 +9,22 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
|
#include <synth/voice.h>
|
||||||
|
#include <synth/vco.h>
|
||||||
|
#include <synth/noise.h>
|
||||||
|
#include <synth/smooth.h>
|
||||||
|
#include <synth/vcf.h>
|
||||||
|
#include <synth/lfo.h>
|
||||||
|
#include <synth/env.h>
|
||||||
|
#include <synth/param_scale.h>
|
||||||
|
|
||||||
#include "JaySynthSound.h"
|
#include "JaySynthSound.h"
|
||||||
#include "JaySynthVoice.h"
|
#include "JaySynthVoice.h"
|
||||||
#include "JaySynthMonophonicMGR.h"
|
#include "JaySynthMonophonicMGR.h"
|
||||||
#include "JaySynthMidiCC.h"
|
#include "JaySynthMidiCC.h"
|
||||||
#include "JaySynth.h"
|
#include "JaySynth.h"
|
||||||
|
|
||||||
#include "synth/voice.h"
|
|
||||||
#include "synth/vco.h"
|
|
||||||
#include "synth/noise.h"
|
|
||||||
#include "synth/smooth.h"
|
|
||||||
#include "synth/vcf.h"
|
|
||||||
#include "synth/lfo.h"
|
|
||||||
#include "synth/env.h"
|
|
||||||
#include "synth/param_scale.h"
|
|
||||||
|
|
||||||
#ifndef max
|
#ifndef max
|
||||||
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
@@ -9,9 +9,10 @@
|
|||||||
#ifndef _JAYSYNTH_H_
|
#ifndef _JAYSYNTH_H_
|
||||||
#define _JAYSYNTH_H_
|
#define _JAYSYNTH_H_
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/param_scale.h>
|
||||||
#include "synth/param_scale.h"
|
|
||||||
|
#include <JuceHeader.h>
|
||||||
#include "JaySynthVoice.h"
|
#include "JaySynthVoice.h"
|
||||||
#include "JaySynthMonophonicMGR.h"
|
#include "JaySynthMonophonicMGR.h"
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#define __JUCE_HEADER_AD3FF14AD0EF4DBE__
|
#define __JUCE_HEADER_AD3FF14AD0EF4DBE__
|
||||||
|
|
||||||
//[Headers] -- You can add your own extra header files here --
|
//[Headers] -- You can add your own extra header files here --
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "PluginProcessor.h"
|
#include "PluginProcessor.h"
|
||||||
#include "ButtonLED.h"
|
#include "ButtonLED.h"
|
||||||
#include "MidiCC_PopUp.h"
|
#include "MidiCC_PopUp.h"
|
||||||
@@ -7,8 +7,9 @@
|
|||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
*/
|
*/
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "synth/synth_defs.h"
|
|
||||||
|
#include <JuceHeader.h>
|
||||||
#include "JaySynthMidiCC.h"
|
#include "JaySynthMidiCC.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
@@ -11,17 +11,17 @@
|
|||||||
#ifndef _JAYSYNTH_MIDICC_
|
#ifndef _JAYSYNTH_MIDICC_
|
||||||
#define _JAYSYNTH_MIDICC_
|
#define _JAYSYNTH_MIDICC_
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "synth/synth_defs.h"
|
|
||||||
|
|
||||||
#include "synth/voice.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "synth/vco.h"
|
#include <synth/voice.h>
|
||||||
#include "synth/noise.h"
|
#include <synth/vco.h>
|
||||||
#include "synth/smooth.h"
|
#include <synth/noise.h>
|
||||||
#include "synth/vcf.h"
|
#include <synth/smooth.h>
|
||||||
#include "synth/lfo.h"
|
#include <synth/vcf.h>
|
||||||
#include "synth/env.h"
|
#include <synth/lfo.h>
|
||||||
#include "synth/param_scale.h"
|
#include <synth/env.h>
|
||||||
|
#include <synth/param_scale.h>
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#define MIDICONTROLLER_TYPE_VELKEY 0x00000080
|
#define MIDICONTROLLER_TYPE_VELKEY 0x00000080
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "JaySynthMonophonicMGR.h"
|
#include "JaySynthMonophonicMGR.h"
|
||||||
|
|
||||||
/** A JaySynth voice that just plays incredible sounds.. */
|
/** A JaySynth voice that just plays incredible sounds.. */
|
||||||
@@ -9,9 +9,6 @@
|
|||||||
#ifndef _JAYSYNTHMONOPHONICMGR_H_
|
#ifndef _JAYSYNTHMONOPHONICMGR_H_
|
||||||
#define _JAYSYNTHMONOPHONICMGR_H_
|
#define _JAYSYNTHMONOPHONICMGR_H_
|
||||||
|
|
||||||
//#include "../JuceLibraryCode/JuceHeader.h"
|
|
||||||
#include "synth/synth_defs.h"
|
|
||||||
|
|
||||||
class JaySynthMonophonicMGR
|
class JaySynthMonophonicMGR
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "JaySynthSound.h"
|
#include "JaySynthSound.h"
|
||||||
|
|
||||||
JaySynthSound::JaySynthSound()
|
JaySynthSound::JaySynthSound()
|
||||||
@@ -9,8 +9,17 @@
|
|||||||
#ifndef _JAYSYNTHSOUND_H_
|
#ifndef _JAYSYNTHSOUND_H_
|
||||||
#define _JAYSYNTHSOUND_H_
|
#define _JAYSYNTHSOUND_H_
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
|
#include <synth/voice.h>
|
||||||
|
#include <synth/vco.h>
|
||||||
|
#include <synth/noise.h>
|
||||||
|
#include <synth/smooth.h>
|
||||||
|
#include <synth/vcf.h>
|
||||||
|
#include <synth/lfo.h>
|
||||||
|
#include <synth/env.h>
|
||||||
|
#include <synth/param_scale.h>
|
||||||
|
|
||||||
#include "JaySynthMidiCC.h"
|
#include "JaySynthMidiCC.h"
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "synth/synth_defs.h"
|
|
||||||
#include "JaySynthSound.h"
|
#include "JaySynthSound.h"
|
||||||
#include "JaySynthVoice.h"
|
#include "JaySynthVoice.h"
|
||||||
|
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
#ifndef _JAYSYNTHVOICE_H_
|
#ifndef _JAYSYNTHVOICE_H_
|
||||||
#define _JAYSYNTHVOICE_H_
|
#define _JAYSYNTHVOICE_H_
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
|
|
||||||
class JaySynthVoice
|
class JaySynthVoice
|
||||||
{
|
{
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
include ./config.mk
|
||||||
|
include $(MAKE_HOME)/compile.mk
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//[Headers] You can add your own extra header files here...
|
//[Headers] You can add your own extra header files here...
|
||||||
#include "synth/param_scale.h"
|
#include <synth/param_scale.h>
|
||||||
//[/Headers]
|
//[/Headers]
|
||||||
|
|
||||||
#include "MidiCC_PopUp.h"
|
#include "MidiCC_PopUp.h"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
#define __JUCER_HEADER_MIDICCPOPUP_MIDICCPOPUP_EA70576__
|
#define __JUCER_HEADER_MIDICCPOPUP_MIDICCPOPUP_EA70576__
|
||||||
|
|
||||||
//[Headers] -- You can add your own extra header files here --
|
//[Headers] -- You can add your own extra header files here --
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "PluginProcessor.h"
|
#include "PluginProcessor.h"
|
||||||
//#include "juce.h"
|
//#include "juce.h"
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "PluginProcessor.h"
|
#include "PluginProcessor.h"
|
||||||
#include "JaySynthAudioProcessorEditor.h"
|
#include "JaySynthAudioProcessorEditor.h"
|
||||||
#include "synth/vector_utils.h"
|
#include <synth/vector_utils.h>
|
||||||
|
|
||||||
using namespace juce;
|
using namespace juce;
|
||||||
|
|
||||||
@@ -11,8 +11,8 @@
|
|||||||
#ifndef __PLUGINPROCESSOR_H_20F201CA__
|
#ifndef __PLUGINPROCESSOR_H_20F201CA__
|
||||||
#define __PLUGINPROCESSOR_H_20F201CA__
|
#define __PLUGINPROCESSOR_H_20F201CA__
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "JaySynthSound.h"
|
#include "JaySynthSound.h"
|
||||||
#include "JaySynth.h"
|
#include "JaySynth.h"
|
||||||
#include "JK_MidiClock.h"
|
#include "JK_MidiClock.h"
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
#define __JUCER_HEADER_VELKEYPOPUP_VELKEYPOPUP_9719552A__
|
#define __JUCER_HEADER_VELKEYPOPUP_VELKEYPOPUP_9719552A__
|
||||||
|
|
||||||
//[Headers] -- You can add your own extra header files here --
|
//[Headers] -- You can add your own extra header files here --
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
#include "synth/synth_defs.h"
|
#include <synth/synth_defs.h>
|
||||||
#include "PluginProcessor.h"
|
#include "PluginProcessor.h"
|
||||||
class VelKey_PopUp_Listener
|
class VelKey_PopUp_Listener
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
NAME := JaySynthModules
|
NAME := plug
|
||||||
|
|
||||||
CXX_SRCS := ButtonLED.cpp
|
CXX_SRCS := ButtonLED.cpp
|
||||||
CXX_SRCS += graph_window.cpp
|
CXX_SRCS += graph_window.cpp
|
||||||
@@ -23,16 +23,16 @@
|
|||||||
#define __JUCER_HEADER_GRAPHWINDOW_GRAPHWINDOW_E0AFC61E__
|
#define __JUCER_HEADER_GRAPHWINDOW_GRAPHWINDOW_E0AFC61E__
|
||||||
|
|
||||||
//[Headers] -- You can add your own extra header files here --
|
//[Headers] -- You can add your own extra header files here --
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include <JuceHeader.h>
|
||||||
|
|
||||||
#include "synth/voice.h"
|
#include <synth/voice.h>
|
||||||
#include "synth/vco.h"
|
#include <synth/vco.h>
|
||||||
#include "synth/noise.h"
|
#include <synth/noise.h>
|
||||||
#include "synth/smooth.h"
|
#include <synth/smooth.h>
|
||||||
#include "synth/vcf.h"
|
#include <synth/vcf.h>
|
||||||
#include "synth/lfo.h"
|
#include <synth/lfo.h>
|
||||||
#include "synth/env.h"
|
#include <synth/env.h>
|
||||||
#include "synth/param_scale.h"
|
#include <synth/param_scale.h>
|
||||||
|
|
||||||
//[/Headers]
|
//[/Headers]
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 820 B After Width: | Height: | Size: 820 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 830 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,2 @@
|
|||||||
|
include ./config.mk
|
||||||
|
include $(MAKE_HOME)/compile.mk
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
NAME := Synth
|
NAME := synth
|
||||||
|
|
||||||
GCC_SRCS := blit.c
|
GCC_SRCS := blit.c
|
||||||
GCC_SRCS += env.c
|
GCC_SRCS += env.c
|
||||||
@@ -268,7 +268,7 @@ void WT_Reset(wt_t *pObj, synth_float_t phase)
|
|||||||
|
|
||||||
void WT_Prepare(wt_t *pObj)
|
void WT_Prepare(wt_t *pObj)
|
||||||
{
|
{
|
||||||
WT_Reset(pObj, (synth_float_t)rand()/RAND_MAX);
|
WT_Reset(pObj, (synth_float_t)rand()/(synth_float_t)RAND_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WT_Param2Set(wt_t *pObj, UINT32 type, synth_float_t value)
|
void WT_Param2Set(wt_t *pObj, UINT32 type, synth_float_t value)
|
||||||