Skip to content

Commit

Permalink
Eq (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrahn13 authored Jun 23, 2024
1 parent 45f0c2f commit 9791bdc
Show file tree
Hide file tree
Showing 19 changed files with 987 additions and 54 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Xcode 15.1
if: matrix.os == 'macos-latest'
Expand Down
48 changes: 28 additions & 20 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,42 @@
"version": "0.2.0",
"configurations": [
{
"name": "AudioPluginHost Windows",
"name": "AudioPluginHost",
"type": "cppvsdbg",
"request": "launch",
// "program": "C:/Program Files/Steinberg/VST3PluginTestHost/VST3PluginTestHost.exe",
"program":"${workspaceRoot}/build/_deps/juce-build/extras/AudioPluginHost/AudioPluginHost_artefacts/Debug/AudioPluginHost.exe",
// "program":"${workspaceRoot}/build/_deps/juce-build/extras/AudioPluginHost/AudioPluginHost_artefacts/Debug/AudioPluginHost.exe",
"windows": {
"program": "${workspaceRoot}/build/_deps/juce-build/extras/AudioPluginHost/AudioPluginHost_artefacts/Debug/AudioPluginHost.exe",
},
"osx": {
// "program": "${workspaceRoot}/build/_deps/juce-build/extras/AudioPluginHost/AudioPluginHost_artefacts/Debug/AudioPluginHost.exe",
},
"linux": {
// "program": "${workspaceRoot}/build/_deps/juce-build/extras/AudioPluginHost/AudioPluginHost_artefacts/Debug/AudioPluginHost.exe",
},
"args": [
// "--pluginfolder",
"${command:cmake.buildDirectory}"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
// "cwd": "${workspaceFolder}",
"console": "newExternalWindow",
"preLaunchTask": "CMake: build",
},
{
"name": "AudioPluginHost Mac",
"type": "cppdbg",
"request": "launch",
"program": "/Applications/VST3PluginTestHost.app",
"args": [
"--pluginfolder",
"${command:cmake.buildDirectory}"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"externalConsole": false,
"preLaunchTask": "CMake: build",
"MIMode": "lldb"
},
}
// {
// "name": "AudioPluginHost Mac",
// "type": "cppdbg",
// "request": "launch",
// "program": "/Applications/VST3PluginTestHost.app",
// "args": [
// "--pluginfolder",
// "${command:cmake.buildDirectory}"
// ],
// "stopAtEntry": false,
// "cwd": "${workspaceFolder}",
// "externalConsole": false,
// "preLaunchTask": "CMake: build",
// "MIMode": "lldb"
// },
]
}
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.22)
project(Audio)

enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# download CPM.cmake
file(
Expand All @@ -22,7 +25,7 @@ CPMAddPackage(
GITHUB_REPOSITORY juce-framework/JUCE
GIT_TAG 7.0.12
SOURCE_DIR ${DEPENDENCY_DIR}/juce
OPTIONS "JUCE_BUILD_EXTRAS ON" "JUCE_BUILD_EXAMPLES ON" "JUCE_COPY_PLUGIN_AFTER_BUILD ON"
OPTIONS "JUCE_BUILD_EXTRAS ON" "JUCE_BUILD_EXAMPLES ON"
EXCLUDE_FROM_ALL ON
)

Expand Down Expand Up @@ -58,5 +61,8 @@ juce_add_binary_data(Fonts HEADER_NAME "Fonts.h" SOURCES resources/fonts/ArtDyst
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
include(Pluginval)

set(CMAKE_OSX_DEPLOYMENT_TARGET "12.7" CACHE STRING "Minimum OS X deployment version" FORCE)
add_subdirectory(utilities)
add_subdirectory(EQ)

message(STATUS "ERIK macOS Deployment Target: ${CMAKE_OSX_DEPLOYMENT_TARGET}")
6 changes: 4 additions & 2 deletions EQ/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ juce_add_plugin(${PROJECT_NAME}
# include all your JUCE module headers; if you're happy to include module headers directly, you
# probably don't need to call this.

# juce_generate_juce_header(AudioPluginExample)
juce_generate_juce_header(${PROJECT_NAME})

# `target_sources` adds source files to a target. We pass the target that needs the sources as the
# first argument, then a visibility parameter for the sources which should normally be PRIVATE.
Expand All @@ -69,7 +69,8 @@ juce_add_plugin(${PROJECT_NAME}
target_sources(${PROJECT_NAME}
PRIVATE
PluginEditor.cpp
PluginProcessor.cpp)
PluginProcessor.cpp
EQView.cpp)

# `target_compile_definitions` adds some preprocessor definitions to our target. In a Projucer
# project, these might be passed in the 'Preprocessor Definitions' field. JUCE modules also make use
Expand Down Expand Up @@ -103,6 +104,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE

# AudioPluginData # If we'd created a binary data target, we'd link to it here
Biquad
juce::juce_audio_utils
PUBLIC
juce::juce_recommended_config_flags
Expand Down
103 changes: 103 additions & 0 deletions EQ/EQ.filtergraph
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>

<FILTERGRAPH>
<FILTER uid="1" x="0.5175" y="0.07459677419354839" useARA="0">
<PLUGIN name="Audio Input" descriptiveName="" format="Internal" category="I/O devices"
manufacturer="JUCE" version="1.0" file="" uniqueId="246006c0"
isInstrument="0" fileTime="0" infoUpdateTime="0" numInputs="0"
numOutputs="2" isShell="0" hasARAExtension="0" uid="246006c0"/>
<STATE>0.</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="disabled"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="L R"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<FILTER uid="2" x="0.25" y="0.1" useARA="0">
<PLUGIN name="MIDI Input" descriptiveName="" format="Internal" category="I/O devices"
manufacturer="JUCE" version="1.0" file="" uniqueId="a9e4f9eb"
isInstrument="0" fileTime="0" infoUpdateTime="0" numInputs="0"
numOutputs="0" isShell="0" hasARAExtension="0" uid="a9e4f9eb"/>
<STATE>0.</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="disabled"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="disabled"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<FILTER uid="3" x="0.5" y="0.9" useARA="0">
<PLUGIN name="Audio Output" descriptiveName="" format="Internal" category="I/O devices"
manufacturer="JUCE" version="1.0" file="" uniqueId="724248cb"
isInstrument="0" fileTime="0" infoUpdateTime="0" numInputs="2"
numOutputs="0" isShell="0" hasARAExtension="0" uid="724248cb"/>
<STATE>0.</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="L R"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="disabled"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<FILTER uid="4" x="0.25" y="0.9" useARA="0">
<PLUGIN name="MIDI Output" descriptiveName="" format="Internal" category="I/O devices"
manufacturer="JUCE" version="1.0" file="" uniqueId="9d5bbb00"
isInstrument="0" fileTime="0" infoUpdateTime="0" numInputs="0"
numOutputs="0" isShell="0" hasARAExtension="0" uid="9d5bbb00"/>
<STATE>0.</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="disabled"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="disabled"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<FILTER uid="7" x="0.505" y="0.5725806451612904" useARA="0" uiLastX_Normal="986"
uiLastY_Normal="243" uiopen_Normal="1" uiLastX_Generic="1133"
uiLastY_Generic="259" uiopen_Generic="1">
<PLUGIN name="EQ" format="VST3" category="Fx" manufacturer="yourcompany"
version="0.0.1" file="C:\Users\erikg\Development\audio\build\EQ\EQ_artefacts\Debug\VST3\EQ.vst3\Contents\x86_64-win\EQ.vst3"
uniqueId="970487f5" isInstrument="0" fileTime="19007926b96" infoUpdateTime="1900792d9b7"
numInputs="2" numOutputs="2" isShell="0" hasARAExtension="0"
uid="c0053e5b"/>
<STATE>191.VMjLgXK....O+fWarAhckI2bo8la8HRLt.iHfTlai8FYo41Y8HRUTYTK3HxO9.BOVMEUy.Ea0cVZtMEcgQWY9vSRC8Vav8lak4Fc9XCLt3hKt3hKt3hKt3hYRUUSTEETIckVwTjQisVTTgkdEYjKAQjYPQSPWgUdMcjKAQjct3hdA4hKt3hKt3hKtnTUv.UQAslXuk0UXoWUFE0YQcEV77RRC8Vav8lak4Fc9vyKVMEUy.Ea0cVZtMEcgQWY9..</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="L R"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="L R"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<FILTER uid="8" x="0.5125" y="0.3044354838709677" useARA="0" uiLastX_Normal="419"
uiLastY_Normal="345" uiopen_Normal="1">
<PLUGIN name="AudioFilePlayer" format="VST3" category="Fx" manufacturer="yourcompany"
version="0.0.1" file="C:\Users\erikg\Development\audio\build\utilities\AudioFilePlayer\AudioFilePlayer_artefacts\Release\VST3\AudioFilePlayer.vst3\Contents\x86_64-win\AudioFilePlayer.vst3"
uniqueId="970487f5" isInstrument="0" fileTime="18fbec57cf4" infoUpdateTime="1900792d9b7"
numInputs="2" numOutputs="2" isShell="0" hasARAExtension="0"
uid="c0053e5b"/>
<STATE>450.VMjLgja....O+fWarAhckI2bo8la8HRLt.iHfTlai8FYo41Y8HRUTYTK3HxO9.BOVMEUy.Ea0cVZtMEcgQWY9vSRC8Vav8lak4Fc9HSMy3hUMoFSmY1Rt3hKt7zJlcUXxEDZisVRxH1a3vVX3fjTLQmKogjYTwVXogiQY8FMwjENHIUUTkEUKMCR38TNtHzSPUDahcFLVkkdUwlX4QyPOAUQpQUPvPDRuEkUOglXVg0azvFRlg0UXIWUWkENHIDSz4RZHU2LC8DTEoFUAACQH8VTV8DZ1ESX0ETaHYFVWgkbUcUV3fjPLQmKogTcyLzSPUjZTEDLDgzaQY0Sn4xQgc1ZsgjYXcEVxU0UYgCRBwDctjFR0MyPOAUQpQUPvPDRuEkUOgFSGMVcA0FRlg0UXIWUWkENHIDSz4RZHU2LC8TctTEV3UjUgsVTWkEdM01St3hKt3hKt3hKt3hKJUELPUTPqI1aYcEV5UkQQcVTWgkKDAkKBs1QhcVSxHlKDAkKC4BTG4hKt3hKt3hKt3FUUMTUDQEdqw1XmE0UYQTQFM1YAwyKIMzasA2atUlaz4COuX0TTMCTrU2Yo41TzEFck4C.</STATE>
<LAYOUT>
<INPUTS>
<BUS index="0" layout="L R"/>
</INPUTS>
<OUTPUTS>
<BUS index="0" layout="L R"/>
</OUTPUTS>
</LAYOUT>
</FILTER>
<CONNECTION srcFilter="7" srcChannel="0" dstFilter="3" dstChannel="0"/>
<CONNECTION srcFilter="7" srcChannel="1" dstFilter="3" dstChannel="1"/>
<CONNECTION srcFilter="8" srcChannel="0" dstFilter="7" dstChannel="0"/>
<CONNECTION srcFilter="8" srcChannel="1" dstFilter="7" dstChannel="1"/>
</FILTERGRAPH>
Loading

0 comments on commit 9791bdc

Please sign in to comment.