├── SwiftRNBO_Example_multiplatfrom_SwiftUI
├── SwiftRNBO_Example_multiplatfrom_SwiftUI
│ ├── RNBO
│ │ ├── Export
│ │ │ ├── rnbo
│ │ │ │ ├── .gitignore
│ │ │ │ ├── adapters
│ │ │ │ │ ├── juce
│ │ │ │ │ │ ├── staticplugin
│ │ │ │ │ │ │ ├── PkgInfo
│ │ │ │ │ │ │ ├── unity.cpp
│ │ │ │ │ │ │ ├── au.cpp
│ │ │ │ │ │ │ ├── common.cpp
│ │ │ │ │ │ │ ├── vst3.cpp
│ │ │ │ │ │ │ ├── VST3Info.plist.in
│ │ │ │ │ │ │ ├── UnityInfo.plist.in
│ │ │ │ │ │ │ └── AUInfo.plist.in
│ │ │ │ │ │ ├── .github
│ │ │ │ │ │ │ └── workflows
│ │ │ │ │ │ │ │ └── project.yml
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ ├── RNBO_JuceAudioProcessorEditor.h
│ │ │ │ │ │ ├── RNBO_JuceAudioProcessorUtils.h
│ │ │ │ │ │ └── RNBO_JuceAudioProcessorUtils.cpp
│ │ │ │ │ ├── max
│ │ │ │ │ │ ├── .gitignore
│ │ │ │ │ │ ├── .github
│ │ │ │ │ │ │ └── workflows
│ │ │ │ │ │ │ │ └── project.yml
│ │ │ │ │ │ ├── RNBO_MaxPresetAdapter.h
│ │ │ │ │ │ ├── rnbo_data_loader.h
│ │ │ │ │ │ ├── LICENSE
│ │ │ │ │ │ └── rnbo_bufferref.h
│ │ │ │ │ └── wasm
│ │ │ │ │ │ ├── .gitignore
│ │ │ │ │ │ └── LICENSE
│ │ │ │ ├── common
│ │ │ │ │ ├── RNBO_Version.h
│ │ │ │ │ ├── RNBO_ProbingInterface.h
│ │ │ │ │ ├── RNBO_ExternalBase.h
│ │ │ │ │ ├── RNBO_PatcherInterfaceImpl.h
│ │ │ │ │ ├── RNBO_EventTarget.h
│ │ │ │ │ ├── RNBO_ProcessInterface.h
│ │ │ │ │ ├── RNBO_EngineLink.h
│ │ │ │ │ ├── RNBO_Common.h
│ │ │ │ │ ├── RNBO_ListHelpers.h
│ │ │ │ │ ├── RNBO_PatcherFactory.h
│ │ │ │ │ ├── RNBO_Debug.h
│ │ │ │ │ ├── RNBO_ExternalPtr.h
│ │ │ │ │ ├── RNBO_BaseInterface.h
│ │ │ │ │ ├── RNBO_ParameterInterface.h
│ │ │ │ │ ├── RNBO_PatcherEventTarget.h
│ │ │ │ │ ├── RNBO_CompilerMacros.h
│ │ │ │ │ ├── RNBO_Array.h
│ │ │ │ │ ├── RNBO_EngineInterface.h
│ │ │ │ │ ├── RNBO_MIDIHelper.h
│ │ │ │ │ ├── RNBO_Logger.h
│ │ │ │ │ ├── RNBO_PatcherInterface.h
│ │ │ │ │ └── RNBO_UniquePtr.h
│ │ │ │ ├── cmake
│ │ │ │ │ ├── CCache.cmake
│ │ │ │ │ ├── SCCache.cmake
│ │ │ │ │ ├── RNBOConan.cmake
│ │ │ │ │ ├── rnbo_description.h.in
│ │ │ │ │ ├── RNBOJuce.cmake
│ │ │ │ │ ├── MinGWSTDThreads.cmake
│ │ │ │ │ └── RNBODescriptionHeader.cmake
│ │ │ │ ├── version.cmake
│ │ │ │ ├── src
│ │ │ │ │ ├── RNBO_PlatformInterfaceImpl.cpp
│ │ │ │ │ ├── RNBO_PatcherFactory.cpp
│ │ │ │ │ ├── 3rdparty
│ │ │ │ │ │ ├── concurrentqueue
│ │ │ │ │ │ │ ├── .gitignore
│ │ │ │ │ │ │ ├── LICENSE.md
│ │ │ │ │ │ │ └── internal
│ │ │ │ │ │ │ │ └── concurrentqueue_internal_debug.h
│ │ │ │ │ │ └── readerwriterqueue
│ │ │ │ │ │ │ ├── .gitignore
│ │ │ │ │ │ │ └── LICENSE.md
│ │ │ │ │ ├── RNBO_DataBuffer.cpp
│ │ │ │ │ ├── RNBO_PresetList.h
│ │ │ │ │ ├── RNBO_MaxClang.h
│ │ │ │ │ ├── RNBO_List.cpp
│ │ │ │ │ ├── RNBO_UnitTests.h
│ │ │ │ │ ├── RNBO_ParameterEventQueue.h
│ │ │ │ │ ├── platforms
│ │ │ │ │ │ ├── nostdlib
│ │ │ │ │ │ │ └── RNBO_LoggerNoStdLib.cpp
│ │ │ │ │ │ └── stdlib
│ │ │ │ │ │ │ └── RNBO_PlatformInterfaceStdLib.h
│ │ │ │ │ ├── RNBO_Logger.cpp
│ │ │ │ │ ├── RNBO_ParamNameHash.h
│ │ │ │ │ ├── RNBO_EmptyEvent.h
│ │ │ │ │ ├── RNBO_FileChangeWatcher.cpp
│ │ │ │ │ ├── RNBO_FileChangeWatcher.h
│ │ │ │ │ ├── RNBO_DataRefList.cpp
│ │ │ │ │ ├── RNBO_BinaryData.h
│ │ │ │ │ ├── RNBO_PresetList.cpp
│ │ │ │ │ ├── RNBO_ServiceNotification.h
│ │ │ │ │ ├── RNBO_ParameterInterfaceAsync.h
│ │ │ │ │ ├── RNBO_Utils.h
│ │ │ │ │ ├── RNBO_Config.h
│ │ │ │ │ ├── RNBO_TempoEvent.h
│ │ │ │ │ ├── RNBO_DynamicSymbolRegistry.h
│ │ │ │ │ ├── RNBO_TransportEvent.h
│ │ │ │ │ ├── RNBO_DataRefList.h
│ │ │ │ │ ├── RNBO_OutletEvent.h
│ │ │ │ │ ├── RNBO_DataRefEvent.h
│ │ │ │ │ ├── RNBO_StartupEvent.h
│ │ │ │ │ ├── RNBO_BeatTimeEvent.h
│ │ │ │ │ ├── RNBO_DataBuffer.h
│ │ │ │ │ ├── RNBO_TimeSignatureEvent.h
│ │ │ │ │ ├── RNBO_UniversalEvent.h
│ │ │ │ │ ├── RNBO_DynamicPatcherFactory.h
│ │ │ │ │ ├── RNBO_ParameterInterfaceSync.h
│ │ │ │ │ ├── RNBO_EventSender.h
│ │ │ │ │ ├── RNBO_EventQueue.h
│ │ │ │ │ ├── RNBO_PatcherStateDummy.h
│ │ │ │ │ ├── RNBO_ClockEvent.h
│ │ │ │ │ ├── RNBO_ParameterInterfaceAsync.cpp
│ │ │ │ │ ├── RNBO_ParameterEvent.h
│ │ │ │ │ └── RNBO_MidiEvent.h
│ │ │ │ ├── test
│ │ │ │ │ └── main.cpp
│ │ │ │ ├── RNBO.h
│ │ │ │ ├── RNBO.cpp
│ │ │ │ └── LICENSE
│ │ │ ├── dependencies.json
│ │ │ ├── media
│ │ │ │ └── cherokee.aif
│ │ │ └── presets.json
│ │ ├── Bindings
│ │ │ ├── .DS_Store
│ │ │ ├── RNBO-Bridging-Header.h
│ │ │ ├── RNBOList.h
│ │ │ ├── RNBOList.mm
│ │ │ ├── RNBOEventHandler.hpp
│ │ │ ├── RNBOAudioUnit.h
│ │ │ └── RNBOEventHandlerProtocol.h
│ │ └── Interface
│ │ │ ├── Synth.aif
│ │ │ ├── MIDIHelpers.swift
│ │ │ ├── RNBOParameter.swift
│ │ │ ├── RNBODescription.swift
│ │ │ └── RNBOEventHandler.swift
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ ├── AccentColor.colorset
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Preview Content
│ │ └── Preview Assets.xcassets
│ │ │ └── Contents.json
│ ├── SwiftRNBO_Example_multiplatfrom_SwiftUI.entitlements
│ ├── SwiftRNBO_Example_multiplatfrom_SwiftUIApp.swift
│ ├── ContentView.swift
│ ├── SliderView.swift
│ ├── Sliders.swift
│ ├── AudioKitKeyboard.swift
│ └── Buttons.swift
├── SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── swiftpm
│ │ │ └── Package.resolved
│ ├── xcuserdata
│ │ ├── eldarsadykov.xcuserdatad
│ │ │ ├── xcdebugger
│ │ │ │ └── Breakpoints_v2.xcbkptlist
│ │ │ └── xcschemes
│ │ │ │ └── xcschememanagement.plist
│ │ └── alex.xcuserdatad
│ │ │ └── xcschemes
│ │ │ └── xcschememanagement.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── SwiftRNBO_Example_multiplatfrom_SwiftUI.xcscheme
└── SwiftRNBO-Example-multiplatfrom-SwiftUI-Info.plist
├── .gitignore
├── .github
└── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
└── LICENSE
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 | docs
3 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/PkgInfo:
--------------------------------------------------------------------------------
1 | BNDL????
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | RNBO/.DS_Store
3 | RNBO/Bindings/.DS_Store
4 | RNBO/Export/.DS_Store
5 | .DS_Store
6 | *.xcuserstate
7 | SwiftRNBO_Example_multiplatfrom_SwiftUI/.DS_Store
8 | **/*.DS_Store
9 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/dependencies.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "id": "rnbuff1",
4 | "file": "media/cherokee.aif"
5 | }
6 | ]
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Bindings/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceammc/SwiftRNBO/HEAD/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Bindings/.DS_Store
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Interface/Synth.aif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceammc/SwiftRNBO/HEAD/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Interface/Synth.aif
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/media/cherokee.aif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ceammc/SwiftRNBO/HEAD/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/media/cherokee.aif
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_Version.h:
--------------------------------------------------------------------------------
1 | //automatically generated
2 | #ifndef _RNBO_Version_H_
3 | #define _RNBO_Version_H_
4 | namespace RNBO {
5 | const char * version = "1.2.2";
6 | }
7 | #endif
8 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Bindings/RNBO-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | //
2 | // Rnbo-Bridging-Header.h
3 | // JSR
4 | //
5 | // Created by Alex on 12.02.2023.
6 | //
7 |
8 | #import "RNBOAudioUnit.h"
9 | #import "RNBOList.h"
10 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/CCache.cmake:
--------------------------------------------------------------------------------
1 | include_guard(GLOBAL)
2 |
3 | find_program(CCACHE_PROGRAM ccache)
4 | if (CCACHE_PROGRAM)
5 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
6 | endif()
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/SCCache.cmake:
--------------------------------------------------------------------------------
1 | include_guard(GLOBAL)
2 |
3 | find_program(SCCACHE_PROGRAM sccache)
4 | if (SCCACHE_PROGRAM)
5 | set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${SCCACHE_PROGRAM}")
6 | endif()
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/version.cmake:
--------------------------------------------------------------------------------
1 | #automatically generated
2 | SET(RNBO_VERSION_MAJOR 1)
3 | SET(RNBO_VERSION_MINOR 2)
4 | SET(RNBO_VERSION_PATCH 2)
5 | SET(RNBO_VERSION_PRERELEASE "null")
6 | SET(RNBO_VERSION "1.2.2")
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/Assets.xcassets/AccentColor.colorset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "colors" : [
3 | {
4 | "idiom" : "universal"
5 | }
6 | ],
7 | "info" : {
8 | "author" : "xcode",
9 | "version" : 1
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/xcuserdata/eldarsadykov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO-Example-multiplatfrom-SwiftUI-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIBackgroundModes
6 |
7 | audio
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.device.audio-input
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_PlatformInterfaceImpl.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // PlatformInterfaceImpl.cpp
3 | //
4 | // Created by Rob Sussman on May 20, 2016
5 | //
6 | //
7 |
8 | #include "platforms/stdlib//RNBO_PlatformInterfaceStdLib.h"
9 |
10 | namespace RNBO {
11 | static PlatformInterfaceStdLib platformInstance;
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_PatcherFactory.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_PatcherFactory.cpp
3 | //
4 | // Created by DDZ on 11/08/15.
5 | //
6 | //
7 |
8 | #ifndef USE_DYNAMIC_COMPILATION
9 |
10 | #ifdef RNBO_TEST_FILE
11 | // this includes the test file directly when we are not using dynamic compilation
12 |
13 | #include RNBO_TEST_FILE
14 |
15 | #endif
16 |
17 | #endif
18 |
19 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Bindings/RNBOList.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBOList.h
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Эльдар Садыков on 22.02.2023.
6 | //
7 |
8 | #import
9 |
10 |
11 |
12 | NS_ASSUME_NONNULL_BEGIN
13 |
14 | @interface RNBOList : NSObject
15 |
16 | - (void)fromArrayOfNumbers:(NSArray *)array;
17 | - (NSArray *)toArrayOfNumbers;
18 |
19 | @end
20 |
21 | NS_ASSUME_NONNULL_END
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/max/.gitignore:
--------------------------------------------------------------------------------
1 | # Prerequisites
2 | *.d
3 |
4 | # Compiled Object files
5 | *.slo
6 | *.lo
7 | *.o
8 | *.obj
9 |
10 | # Precompiled Headers
11 | *.gch
12 | *.pch
13 |
14 | # Compiled Dynamic libraries
15 | *.so
16 | *.dylib
17 | *.dll
18 |
19 | # Fortran module files
20 | *.mod
21 | *.smod
22 |
23 | # Compiled Static libraries
24 | *.lai
25 | *.la
26 | *.a
27 | *.lib
28 |
29 | # Executables
30 | *.exe
31 | *.out
32 | *.app
33 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/wasm/.gitignore:
--------------------------------------------------------------------------------
1 | # Prerequisites
2 | *.d
3 |
4 | # Compiled Object files
5 | *.slo
6 | *.lo
7 | *.o
8 | *.obj
9 |
10 | # Precompiled Headers
11 | *.gch
12 | *.pch
13 |
14 | # Compiled Dynamic libraries
15 | *.so
16 | *.dylib
17 | *.dll
18 |
19 | # Fortran module files
20 | *.mod
21 | *.smod
22 |
23 | # Compiled Static libraries
24 | *.lai
25 | *.la
26 | *.a
27 | *.lib
28 |
29 | # Executables
30 | *.exe
31 | *.out
32 | *.app
33 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/test/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include "RNBO_UnitTests.h"
3 | #include "RNBO.h"
4 | #include "RNBO_MidiStreamParser.h"
5 |
6 | int main (int /*argc*/, char** /*argv*/)
7 | {
8 | RNBO::UnitTestRunner runner;
9 | runner.runAllTests();
10 | for (auto i = 0; i < runner.getNumResults(); i++) {
11 | auto res = runner.getResult(i);
12 | if (res == nullptr || res->failures > 0) {
13 | return -1;
14 | }
15 | }
16 | return 0;
17 | }
18 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/3rdparty/concurrentqueue/.gitignore:
--------------------------------------------------------------------------------
1 | *.ipch
2 | *.suo
3 | *.user
4 | *.sdf
5 | *.opensdf
6 | *.exe
7 | *.pdb
8 | build/bin/
9 | build/*.log
10 | build/msvc12/*.log
11 | build/msvc12/obj/
12 | build/msvc11/*.log
13 | build/msvc11/obj/
14 | tests/fuzztests/fuzztests.log
15 | benchmarks/benchmarks.log
16 | tests/CDSChecker/*.o
17 | tests/CDSChecker/*.log
18 | tests/CDSChecker/model-checker/
19 | tests/relacy/freelist.exe
20 | tests/relacy/spmchash.exe
21 | tests/relacy/log.txt
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/xcuserdata/alex.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SwiftRNBO_Example_multiplatfrom_SwiftUI.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_ProbingInterface.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_PROBINGINTERFACE_H_
2 | #define _RNBO_PROBINGINTERFACE_H_
3 |
4 | #include "RNBO_Types.h"
5 |
6 | namespace RNBO {
7 |
8 | /**
9 | * @private
10 | */
11 | class ProbingInterface {
12 |
13 | protected:
14 |
15 | ~ProbingInterface() { }
16 |
17 | public:
18 |
19 | virtual ParameterIndex getProbingChannels(MessageTag outletId) const = 0;
20 | };
21 |
22 | } // namespace RNBO
23 |
24 | #endif // #ifndef _RNBO_PROBINGINTERFACE_H_
25 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/unity.cpp:
--------------------------------------------------------------------------------
1 | #define UNITY_INTERFACE_EXPORT __attribute__ ((visibility("default")))
2 | #define UNITY_INTERFACE_API
3 |
4 | //forward decl
5 | extern "C" int UNITY_INTERFACE_API JuceStatic_UnityGetAudioEffectDefinitions (void*** definitionsPtr);
6 |
7 | //entrypoint trampoline to JUCE
8 | extern "C" UNITY_INTERFACE_EXPORT int UNITY_INTERFACE_API UnityGetAudioEffectDefinitions (void*** definitionsPtr)
9 | {
10 | return JuceStatic_UnityGetAudioEffectDefinitions(definitionsPtr);
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_ExternalBase.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_ExternalBase_h_
2 | #define _RNBO_ExternalBase_h_
3 |
4 | #include "RNBO_ProcessInterface.h"
5 | #include "RNBO_EngineLink.h"
6 | #include "RNBO_EventTarget.h"
7 |
8 | namespace RNBO {
9 |
10 | /**
11 | * @private
12 | */
13 | class ExternalBase : public ProcessInterface, public EngineLink, public EventTarget {
14 |
15 | public:
16 |
17 | virtual ~ExternalBase() { }
18 |
19 | };
20 |
21 | } // namespace RNBO
22 |
23 | #endif // #ifndef _RNBO_ExternalBase_h_
24 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/RNBO.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO.h
3 | //
4 | // Created by Rob Sussman on 8/4/15.
5 | //
6 | //
7 |
8 | #ifndef _RNBO_H_
9 | #define _RNBO_H_
10 |
11 | #include "src/RNBO_Config.h"
12 | #include "common/RNBO_Types.h"
13 | #include "common/RNBO_ParameterInterface.h"
14 | #include "common/RNBO_BaseInterface.h"
15 | #include "common/RNBO_PatcherFactory.h"
16 | #include "src/RNBO_ParameterEvent.h"
17 | #include "src/RNBO_MidiEvent.h"
18 | #include "src/RNBO_DynamicSymbolRegistry.h"
19 | #include "src/RNBO_CoreObject.h"
20 |
21 | #endif // #ifndef _RNBO_H_
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/presets.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "name": "untitled",
4 | "preset": {
5 | "__sps": {
6 | "filters": {}
7 | },
8 | "cutoff": {
9 | "value": 0
10 | },
11 | "freq1": {
12 | "value": 220
13 | },
14 | "freq2": {
15 | "value": 220
16 | },
17 | "play": {
18 | "value": 1
19 | },
20 | "resonance": {
21 | "value": 0.5
22 | },
23 | "vol1": {
24 | "value": 0
25 | },
26 | "vol2": {
27 | "value": 0
28 | }
29 | }
30 | }
31 | ]
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/max/.github/workflows/project.yml:
--------------------------------------------------------------------------------
1 | name: Add Issues and PRs to RNBO Project
2 |
3 | on:
4 | issues:
5 | types:
6 | - opened
7 | pull_request:
8 | types:
9 | - opened
10 |
11 | jobs:
12 | add-to-project:
13 | name: Add to RNBO Project
14 | runs-on: ubuntu-latest
15 | steps:
16 | - uses: actions/add-to-project@v0.3.0
17 | with:
18 | project-url: https://github.com/orgs/Cycling74/projects/${{ secrets.RNBO_PROJECT_NUMBER }}
19 | github-token: ${{ secrets.RNBO_PROJECT_PAT }}
20 |
21 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/.github/workflows/project.yml:
--------------------------------------------------------------------------------
1 | name: Add Issues and PRs to RNBO Project
2 |
3 | on:
4 | issues:
5 | types:
6 | - opened
7 | pull_request:
8 | types:
9 | - opened
10 |
11 | jobs:
12 | add-to-project:
13 | name: Add to RNBO Project
14 | runs-on: ubuntu-latest
15 | steps:
16 | - uses: actions/add-to-project@v0.3.0
17 | with:
18 | project-url: https://github.com/orgs/Cycling74/projects/${{ secrets.RNBO_PROJECT_NUMBER }}
19 | github-token: ${{ secrets.RNBO_PROJECT_PAT }}
20 |
21 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/RNBOConan.cmake:
--------------------------------------------------------------------------------
1 | #setup conan, include the module paths, setup the remote
2 | list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_BINARY_DIR})
3 | list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_BINARY_DIR})
4 |
5 | include_guard(GLOBAL)
6 |
7 | #cloud compiler might have already included conan
8 | if (NOT COMMAND conan_check)
9 | include(${CMAKE_CURRENT_LIST_DIR}/conan.cmake)
10 | endif()
11 |
12 | conan_check(VERSION 1.29.0 REQUIRED)
13 | conan_add_remote(
14 | NAME cycling-public
15 | INDEX 1
16 | URL https://conan-public.cycling74.com
17 | VERIFY_SSL True
18 | )
19 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUIApp.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SwiftRNBO_Example_multiplatfrom_SwiftUIApp.swift
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Эльдар Садыков on 19.02.2023.
6 | //
7 |
8 | import SwiftUI
9 |
10 | @main
11 | struct SwiftRNBO_Example_multiplatfrom_SwiftUIApp: App {
12 | @ObservedObject var rnbo = RNBOAudioUnitHostModel()
13 | var body: some Scene {
14 | WindowGroup {
15 | ContentView()
16 | .onAppear { rnbo.connectEventHandler() }
17 | .environmentObject(rnbo)
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_PatcherInterfaceImpl.h:
--------------------------------------------------------------------------------
1 | //
2 | // _RNBO_PatcherInterfaceImpl_H_
3 | //
4 | // Created by Rob Sussman on 1/11/18.
5 | //
6 | //
7 |
8 | #ifndef _RNBO_PatcherInterfaceImpl_H_
9 | #define _RNBO_PatcherInterfaceImpl_H_
10 |
11 | #include "RNBO_Types.h"
12 | #include "RNBO_PatcherInterface.h"
13 |
14 | namespace RNBO {
15 |
16 | class PatcherInterfaceImpl : public PatcherInterface
17 | {
18 | public:
19 |
20 | void destroy() override
21 | {
22 | delete this;
23 | }
24 |
25 | };
26 |
27 | } // namespace RNBO
28 |
29 |
30 | #endif // #ifndef _RNBO_PatcherInterfaceImpl_H_
31 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/max/RNBO_MaxPresetAdapter.h:
--------------------------------------------------------------------------------
1 | //forward decl
2 | struct _dictionary;
3 | typedef _dictionary t_dictionary;
4 |
5 | namespace RNBO {
6 | class PatcherState;
7 | class CoreObject;
8 | using Preset = PatcherState;
9 | }
10 |
11 | namespace MaxPresetAdapter {
12 | void toDict(const RNBO::Preset& preset, t_dictionary* presetDict);
13 | void fromDict(t_dictionary* presetDict, RNBO::Preset& preset);
14 | //XXX Note, this will block while waiting for the preset
15 | void getObjectPreset(RNBO::CoreObject& o, t_dictionary *presetDict, bool dspIsOn);
16 | void setObjectPreset(RNBO::CoreObject& o, t_dictionary *presetDict);
17 | }
18 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/rnbo_description.h.in:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #ifdef RNBO_DESCRIPTION_AS_STRING
4 |
5 | namespace RNBO {
6 | const std::string patcher_description(
7 | @PATCHER_DESCRIPTION_JSON@
8 | );
9 |
10 | const std::string patcher_presets(
11 | @PATCHER_PRESETS_JSON@
12 | );
13 | }
14 |
15 | #else
16 |
17 | #include
18 |
19 | namespace RNBO {
20 | const nlohmann::json patcher_description = nlohmann::json::parse(
21 | std::string(
22 | @PATCHER_DESCRIPTION_JSON@
23 | )
24 | );
25 |
26 | const nlohmann::json patcher_presets = nlohmann::json::parse(
27 | std::string(
28 | @PATCHER_PRESETS_JSON@
29 | )
30 | );
31 | }
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Эльдар Садыков on 19.02.2023.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct ContentView: View {
11 | @EnvironmentObject var rnbo: RNBOAudioUnitHostModel
12 |
13 | var body: some View {
14 | VStack(spacing: 0) {
15 | Buttons()
16 | #if !os(tvOS)
17 | if rnbo.showDescription {
18 | DescriptionView()
19 | } else {
20 | Sliders()
21 | AudioKitKeyboard()
22 | }
23 | #endif
24 | }
25 | .padding()
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/au.cpp:
--------------------------------------------------------------------------------
1 | //Audio Units entrypoint/factory
2 | //defines pulled from JUCE
3 |
4 | #ifndef AUSDK_EXPORT
5 | #if __GNUC__
6 | #define AUSDK_EXPORT __attribute__((visibility("default"))) // NOLINT
7 | #else
8 | #warning export?
9 | #endif
10 | #endif
11 |
12 | #define JUCE_AU_ENTRY_POINT_NAME RNBO_Plugin_AUFactory
13 |
14 | //forward decl
15 | extern "C" void* StaticAUExportFactory(const void * desc);
16 | extern "C" void* JUCE_AU_ENTRY_POINT_NAME (const /*AudioComponentDescription*/ void* inDesc);
17 |
18 | AUSDK_EXPORT extern "C" void* JUCE_AU_ENTRY_POINT_NAME (const /*AudioComponentDescription*/ void* inDesc)
19 | {
20 | return StaticAUExportFactory(inDesc);
21 | }
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved:
--------------------------------------------------------------------------------
1 | {
2 | "pins" : [
3 | {
4 | "identity" : "keyboard",
5 | "kind" : "remoteSourceControl",
6 | "location" : "https://github.com/AudioKit/Keyboard.git",
7 | "state" : {
8 | "revision" : "fb589acbbb0854da0fa571ad83c4f1230c2cd280",
9 | "version" : "1.3.6"
10 | }
11 | },
12 | {
13 | "identity" : "tonic",
14 | "kind" : "remoteSourceControl",
15 | "location" : "https://github.com/AudioKit/Tonic.git",
16 | "state" : {
17 | "revision" : "bd73003b0e6caa90fb1d71b57329b0d609b097ee",
18 | "version" : "1.0.10"
19 | }
20 | }
21 | ],
22 | "version" : 2
23 | }
24 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/RNBOJuce.cmake:
--------------------------------------------------------------------------------
1 | include_guard(GLOBAL)
2 |
3 | set(RNBO_JUCE_VERSION 7.0.3)
4 |
5 | if (RNBO_JUCE_USE_CONAN)
6 | include(${CMAKE_CURRENT_LIST_DIR}/RNBOConan.cmake)
7 |
8 | conan_cmake_configure(
9 | REQUIRES "JUCE/${RNBO_JUCE_VERSION}@c74/testing"
10 | GENERATORS cmake_paths
11 | )
12 | conan_cmake_autodetect(settings)
13 | conan_cmake_install(
14 | PATH_OR_REFERENCE .
15 | BUILD missing
16 | SETTINGS ${settings}
17 | REMOTE cycling-public
18 | )
19 | include(${CMAKE_CURRENT_BINARY_DIR}/conan_paths.cmake)
20 | find_package(JUCE ${RNBO_JUCE_VERSION} CONFIG REQUIRED)
21 | else()
22 | add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../../thirdparty/juce ${CMAKE_BINARY_DIR}/juce)
23 | endif()
24 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Bindings/RNBOList.mm:
--------------------------------------------------------------------------------
1 | //
2 | // RNBOList.m
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Эльдар Садыков on 22.02.2023.
6 | //
7 |
8 | #include "RNBO.h"
9 | #import "RNBOList.h"
10 |
11 | @implementation RNBOList{
12 | std::shared_ptr _obj;
13 | }
14 |
15 | - (void)fromArrayOfNumbers:(NSArray *)array {
16 | }
17 |
18 | - (NSArray *)toArrayOfNumbers {
19 | return @[];
20 | }
21 |
22 | @end
23 |
24 | #pragma mark -
25 |
26 | @interface RNBOList (CxxCounterpart)
27 | - (void)setCxxList:(std::shared_ptr)list;
28 | @end
29 |
30 | @implementation RNBOList (CxxCounterpart)
31 | - (void)setCxxList:(std::shared_ptr)list {
32 | self->_obj = list;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_EventTarget.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_EventTarget.h
3 | //
4 | // Created by Rob Sussman on 1/14/16.
5 | //
6 | //
7 |
8 | #ifndef _RNBO_EventTarget_h_
9 | #define _RNBO_EventTarget_h_
10 |
11 | #include "RNBO_Types.h"
12 | #include "RNBO_EngineLink.h"
13 |
14 | namespace RNBO {
15 |
16 | /**
17 | * @private
18 | */
19 | class EventTarget {
20 |
21 | public:
22 |
23 | virtual void processMidiEvent(MillisecondTime time, int port, ConstByteArray data, Index length) = 0;
24 | virtual void processClockEvent(MillisecondTime time, ClockId index, bool hasValue, ParameterValue value) = 0;
25 |
26 | protected:
27 |
28 | ~EventTarget() { }
29 |
30 | };
31 |
32 | } // namespace RNBO
33 |
34 | #endif // #ifndef _RNBO_EventTarget_h_
35 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_DataBuffer.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_DataBuffer.cpp
3 | // RNBOApp
4 | //
5 | // Created by Rob Sussman on 12/21/15.
6 | //
7 | //
8 |
9 | #include "RNBO_DataBuffer.h"
10 |
11 | namespace RNBO {
12 |
13 | DataBuffer::DataBuffer(size_t size)
14 | : _data(size)
15 | {
16 |
17 | }
18 |
19 | DataBuffer::DataBuffer(const char* dataToCopy, size_t sizeOfDataToCopy)
20 | : _data(sizeOfDataToCopy)
21 | {
22 | memcpy(_data.data(), dataToCopy, _data.size());
23 | }
24 |
25 | DataBuffer::DataBuffer(const char* stringToCopy)
26 | : _data(strlen(stringToCopy)+1)
27 | {
28 | memcpy(_data.data(), stringToCopy, _data.size());
29 | }
30 |
31 | void DataBuffer::resize(size_t size)
32 | {
33 | _data.resize(size);
34 | }
35 |
36 |
37 | } // namespace RNBO
38 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/cmake/MinGWSTDThreads.cmake:
--------------------------------------------------------------------------------
1 | include_guard(GLOBAL)
2 |
3 | #use mingw_stdthreads for windows cross compiling to work around need for pthreads otherwise
4 | if (CMAKE_SYSTEM_NAME STREQUAL Windows AND CMAKE_CROSSCOMPILING)
5 |
6 | include(${CMAKE_CURRENT_LIST_DIR}/RNBOConan.cmake)
7 |
8 | #TODO what if we're using clang?
9 | set(BUILD_SYSTEM_IS_MINGW On)
10 | conan_cmake_configure(
11 | REQUIRES mingw_stdthreads/1.0.0-prelatch@c74/testing
12 | GENERATORS cmake_paths
13 | )
14 | conan_cmake_install(
15 | PATH_OR_REFERENCE .
16 | BUILD missing
17 | )
18 | include(${CMAKE_CURRENT_BINARY_DIR}/conan_paths.cmake)
19 | option(MINGW_STDTHREADS_GENERATE_STDHEADERS "" ON)
20 | add_subdirectory(${CONAN_MINGW_STDTHREADS_ROOT} ${CMAKE_CURRENT_BINARY_DIR}/mingw_stdthreads)
21 | endif()
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_ProcessInterface.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_PROCESSINTERFACE_H_
2 | #define _RNBO_PROCESSINTERFACE_H_
3 |
4 | #include "RNBO_Types.h"
5 | #include "RNBO_BaseInterface.h"
6 |
7 | namespace RNBO {
8 |
9 | /**
10 | * @brief An interface for signal-rate data processing
11 | */
12 | class ProcessInterface : public BaseInterface {
13 |
14 | protected:
15 |
16 | ~ProcessInterface() {}
17 |
18 | public:
19 |
20 | virtual void prepareToProcess(number sampleRate, Index maxBlockSize, bool force = false) = 0;
21 |
22 | virtual void process(const SampleValue* const* audioInputs, Index numInputs,
23 | SampleValue* const* audioOutputs, Index numOutputs,
24 | Index sampleFrames) = 0;
25 |
26 | };
27 |
28 | } // namespace RNBO
29 |
30 | #endif // #ifndef _RNBO_PROCESSINTERFACE_H_
31 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/3rdparty/readerwriterqueue/.gitignore:
--------------------------------------------------------------------------------
1 | *.ipch
2 | *.suo
3 | *.user
4 | *.sdf
5 | *.opensdf
6 | *.exe
7 | tests/stabtest/msvc10/Debug/
8 | tests/stabtest/msvc10/Release/
9 | tests/stabtest/msvc10/obj/
10 | tests/stabtest/msvc10/log.txt
11 | tests/stabtest/msvc12/Debug/
12 | tests/stabtest/msvc12/Release/
13 | tests/stabtest/msvc12/obj/
14 | tests/stabtest/msvc12/log.txt
15 | tests/stabtest/log.txt
16 | tests/unittests/msvc10/Debug/
17 | tests/unittests/msvc10/Release/
18 | tests/unittests/msvc10/obj/
19 | tests/unittests/msvc12/Debug/
20 | tests/unittests/msvc12/Release/
21 | tests/unittests/msvc12/obj/
22 | tests/CDSChecker/model-checker/
23 | benchmarks/msvc10/Debug/
24 | benchmarks/msvc10/Release/
25 | benchmarks/msvc10/obj/
26 | benchmarks/msvc12/Debug/
27 | benchmarks/msvc12/Release/
28 | benchmarks/msvc12/obj/
29 | test/
30 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/common.cpp:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | extern "C" {
4 | const char * JuceStatic_Plugin_Name() {
5 | return PLUGIN_NAME;
6 | }
7 | uint32_t JuceStatic_Plugin_Code() {
8 | return PLUGIN_CODE_HEX;
9 | }
10 | uint32_t JuceStatic_Plugin_VersionCode() {
11 | return PLUGIN_VERSION_NUM;
12 | }
13 | const char * JuceStatic_Plugin_VersionString() {
14 | return PLUGIN_VERSION;
15 | }
16 |
17 | const char * JuceStatic_Plugin_Manufacturer() {
18 | return PLUGIN_MANUFACTURER_NAME;
19 | }
20 | const char * JuceStatic_Plugin_ManufacturerWebsite() {
21 | return PLUGIN_MANUFACTURER_WEBSITE;
22 | }
23 | const char * JuceStatic_Plugin_ManufacturerEmail() {
24 | return PLUGIN_MANUFACTURER_EMAIL;
25 | }
26 | uint32_t JuceStatic_Plugin_ManufacturerCode() {
27 | return PLUGIN_MANUFACTURER_CODE_HEX;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_PresetList.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_PresetList.h
3 | // RNBO
4 | //
5 | // Created by Samuel Tarakajian on 11/9/20.
6 | //
7 |
8 | #ifndef RNBO_PresetList_h
9 | #define RNBO_PresetList_h
10 |
11 | #include "RNBO_Presets.h"
12 |
13 | #if !(defined(RNBO_NOPRESETS) || defined(RNBO_NOJSONPRESETS))
14 |
15 |
16 | namespace RNBO {
17 | class PresetList {
18 | public:
19 | PresetList(std::string jsonString);
20 | ~PresetList();
21 |
22 | size_t size();
23 |
24 | UniquePresetPtr presetAtIndex(size_t index);
25 |
26 | std::string presetNameAtIndex(size_t index);
27 |
28 | UniquePresetPtr presetWithName(std::string name);
29 |
30 | private:
31 | std::vector> _parsedPresets;
32 | };
33 | }
34 |
35 | #endif /* RNBO_NOPRESETS */
36 |
37 | #endif /* RNBO_PresetList_h */
38 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_EngineLink.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_EngineLink_h_
2 | #define _RNBO_EngineLink_h_
3 |
4 |
5 | namespace RNBO {
6 |
7 | class EngineInterface;
8 | class PatcherEventTarget;
9 |
10 | /**
11 | * @private
12 | */
13 | class EngineLink {
14 |
15 | public:
16 |
17 | void setEngineAndPatcher(EngineInterface *engineInterface, PatcherEventTarget* parentPatcher) {
18 | _engineInterface = engineInterface;
19 | _parentPatcher = parentPatcher;
20 | }
21 |
22 | virtual EngineInterface *getEngine() const {
23 | return _engineInterface;
24 | }
25 |
26 | PatcherEventTarget* getPatcherEventTarget() const {
27 | return _parentPatcher;
28 | }
29 |
30 | protected:
31 |
32 | ~EngineLink() { }
33 |
34 | EngineInterface* _engineInterface = nullptr;
35 | PatcherEventTarget* _parentPatcher = nullptr;
36 | };
37 |
38 | } // namespace RNBO
39 |
40 | #endif // #ifndef _RNBO_EngineLink_h_
41 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/RNBO.cpp:
--------------------------------------------------------------------------------
1 | // rnbo_lib.cpp includes all the source files for RNBO
2 | // making it easy to include RNBO as source into a project.
3 | // Simply add this one file to your compilation.
4 |
5 | #include "RNBO.h"
6 |
7 | #include "src/RNBO_PlatformInterfaceImpl.cpp" // comes first to ensure that platform is available
8 | #include "src/RNBO_CoreObject.cpp"
9 | #include "src/RNBO_DataBuffer.cpp"
10 | #include "src/RNBO_DataRefList.cpp"
11 | #include "src/RNBO_DynamicPatcherFactory.cpp"
12 | #include "src/RNBO_Engine.cpp"
13 | #include "src/RNBO_ExternalLoader.cpp"
14 | #include "src/RNBO_FileChangeWatcher.cpp"
15 | #include "src/RNBO_Logger.cpp"
16 | #include "src/RNBO_MaxClang.cpp"
17 | #include "src/RNBO_ParameterInterfaceAsync.cpp"
18 | #include "src/RNBO_ParameterInterfaceSync.cpp"
19 | #include "src/RNBO_PatcherFactory.cpp"
20 | #include "src/RNBO_PatcherState.cpp"
21 | #include "src/RNBO_PresetList.cpp"
22 | #include "src/RNBO_List.cpp"
23 | #include "src/RNBO_UnitTests.cpp"
24 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_MaxClang.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_MAXCLANG_H_
2 | #define _RNBO_MAXCLANG_H_
3 |
4 | #if defined(USE_DYNAMIC_COMPILATION)
5 |
6 | #include "RNBO_ClangInterface.h"
7 | #include "ext.h"
8 |
9 | namespace RNBO {
10 |
11 | class MaxClang : public ClangInterface
12 | {
13 | public:
14 |
15 | MaxClang();
16 | ~MaxClang();
17 |
18 | void addPreprocessorDefinition(std::string definition) override;
19 | void addIncludePath(std::string path) override;
20 | void addSymbol(std::string name, void* address) override;
21 | void setOptimizationLevel(OLevel level) override;
22 | bool compile(std::string name, const std::string& source) override;
23 | void getLastErrors(t_dictionary **lastErrors) override;
24 |
25 | void* getFunctionAddress(std::string name) override;
26 |
27 | private:
28 | t_object* _maxclang;
29 |
30 | };
31 |
32 | } // namespace RNBO
33 |
34 | #endif // #if defined(USE_DYNAMIC_COMPILATION)
35 |
36 | #endif // #ifndef _RNBO_MAXCLANG_H_
37 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_List.cpp:
--------------------------------------------------------------------------------
1 | #include "RNBO_List.h"
2 |
3 | #ifdef C74_UNIT_TESTS
4 | #include
5 | #include
6 |
7 | namespace ListTests {
8 | using namespace RNBO;
9 | class Tests : public UnitTest {
10 | public:
11 | Tests()
12 | : UnitTest("List Tests")
13 | {}
14 | void runTest() override {
15 | beginTest("listbase bounds");
16 | listbase l = { 1.0 };
17 | expectDoesNotThrow(l[0]);
18 | expectThrowsType(l[1], std::out_of_range);
19 | expectThrowsType(l[1] = 20.0, std::out_of_range);
20 | expectThrowsType(l[100], std::out_of_range);
21 |
22 | //shift
23 | expectEquals(l.shift(), 1.0);
24 | expectThrowsType(l.shift(), std::out_of_range);
25 |
26 | //pop
27 | l.push(20.0);
28 | l.push(10.0);
29 | expectEquals(l.pop(), 10.0);
30 | expectEquals(l.pop(), 20.0);
31 | expectEquals(l.pop(), 0.0);
32 | expectEquals(l.pop(), 0.0);
33 | }
34 | };
35 | Tests tests;
36 | }
37 | #endif
38 |
39 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_UnitTests.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_UnitTests.h
3 | // binding
4 | //
5 | // Created by Stefan Brunner on 27.08.15.
6 | //
7 | //
8 |
9 | #ifndef binding_RNBO_UnitTests_h
10 | #define binding_RNBO_UnitTests_h
11 |
12 | // for now we only want to compile unit tests in the debug version
13 | // the general idea is, that if you want unit tests, you inlcude this file BEFORE including
14 | // RNBO.h, this will define C74_UNIT_TESTS and therefore comoile the unit tests
15 |
16 | // generally running unit tests needs Juce for now, so be aware that your project has to be prepared to use Juce
17 |
18 | #if defined(DEBUG) && !defined(C74_UNIT_TESTS)
19 | #define C74_UNIT_TESTS
20 | #endif
21 |
22 | #ifdef C74_UNIT_TESTS
23 |
24 | #include "JuceHeader.h"
25 |
26 | namespace RNBO {
27 |
28 | class UnitTestRunner : public juce::UnitTestRunner
29 | {
30 | // no modifications needed for now
31 | };
32 |
33 | }
34 |
35 | #endif // C74_UNIT_TESTS
36 |
37 |
38 | #endif // binding_RNBO_UnitTests_h
39 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 CEAMMC
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/max/rnbo_data_loader.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_DATA_LOADER_H
2 | #define _RNBO_DATA_LOADER_H
3 |
4 | //RNBO.h seems to have to come first in visual studio or std::numeric_limits<_>::max() breaks..
5 | #include
6 | #include
7 |
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include "commonsyms.h"
13 |
14 | extern "C" {
15 | typedef struct _rnbo_data_loader t_rnbo_data_loader;
16 |
17 | void rnbo_data_loader_register();
18 |
19 | //path or url, it handles it
20 | void rnbo_data_loader_load(t_rnbo_data_loader *x, const char *pathorurl);
21 | t_symbol *rnbo_data_loader_get_last_requested(t_rnbo_data_loader *x);
22 |
23 | bool rnbo_path_is_url(const char *pathOrURL);
24 | }
25 |
26 | namespace RNBO {
27 | void DataLoaderHandoffData(
28 | ExternalDataIndex dataRefIndex,
29 | const ExternalDataRef* ref,
30 | t_rnbo_data_loader *loader,
31 | UpdateRefCallback updateDataRef,
32 | ReleaseRefCallback releaseDataRef
33 | );
34 | };
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_ParameterEventQueue.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_ParameterEventQueue.h
3 | // Created by Timothy Place on 11.08.15.
4 | //
5 |
6 | #ifndef _RNBO_ParameterEventQueue_h
7 | #define _RNBO_ParameterEventQueue_h
8 |
9 | #include "RNBO_EventQueue.h"
10 | #include "RNBO_ServiceNotification.h"
11 |
12 | namespace RNBO {
13 |
14 | using ParameterEventQueue = EventQueue>;
15 | using ParameterEventQueuePtr = std::unique_ptr>;
16 | #if RNBO_MULTIPRODUCER_QUEUE_SUPPORTED
17 | using SafeParameterEventQueue = EventQueue>;
18 | #else
19 | using SafeParameterEventQueue = ParameterEventQueue; // hack, TODO fix this!
20 | #endif
21 | using ServiceNotificationQueue = EventQueue>;
22 |
23 | using MidiEventQueue = EventQueue>;
24 |
25 | } // namespace RNBO
26 |
27 | #endif // _RNBO_ParameterEventQueue_h
28 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/platforms/nostdlib/RNBO_LoggerNoStdLib.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_LoggerNoStdLib.cpp
3 | // Created: 12 July 2016 2:42:32pm
4 | // Author: jb
5 | //
6 | //
7 |
8 | #include "RNBO_Common.h"
9 |
10 | namespace RNBO {
11 |
12 | Logger consoleInstance;
13 | LoggerInterface* console = &consoleInstance;
14 |
15 | Logger::Logger()
16 | : _outputCallback(&Logger::defaultLogOutputFunction)
17 | {
18 | }
19 |
20 | Logger::~Logger()
21 | {
22 | }
23 |
24 | void Logger::setLoggerOutputCallback(OutputCallback* callback)
25 | {
26 | _outputCallback = callback ? callback : defaultLogOutputFunction;
27 | }
28 |
29 | void Logger::defaultLogOutputFunction(LogLevel level, const char* message)
30 | {
31 | const static char* levelStr[] = { "[INFO]", "[WARNING]", "[ERROR]" };
32 | String formattedMessage = levelStr[level];
33 | formattedMessage += "\t";
34 | formattedMessage += message;
35 | formattedMessage += "\n";
36 | platform->printMessage(formattedMessage.c_str());
37 | }
38 |
39 | Logger& Logger::getInstance()
40 | {
41 | return consoleInstance;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Interface/MIDIHelpers.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MIDIHelpers.swift
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Eldar Sadykov on 19.11.2023.
6 | //
7 |
8 | import Foundation
9 |
10 | enum MidiCommand: UInt8 {
11 | case noteOff = 0x80
12 | case noteOn = 0x90
13 | case polyphonicKeyPressure = 0xA0
14 | case controlChange = 0xB0
15 | case programChange = 0xC0
16 | case channelPressure = 0xD0
17 | case pitchBend = 0xE0
18 |
19 | init?(statusByte: UInt8) {
20 | switch statusByte & 0xF0 {
21 | case MidiCommand.noteOff.rawValue: self = .noteOff
22 | case MidiCommand.noteOn.rawValue: self = .noteOn
23 | case MidiCommand.polyphonicKeyPressure.rawValue: self = .polyphonicKeyPressure
24 | case MidiCommand.controlChange.rawValue: self = .controlChange
25 | case MidiCommand.programChange.rawValue: self = .programChange
26 | case MidiCommand.channelPressure.rawValue: self = .channelPressure
27 | case MidiCommand.pitchBend.rawValue: self = .pitchBend
28 | default: return nil
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_Common.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_Common.h
3 | //
4 | // Created by Rob Sussman on 11/11/15.
5 | //
6 | //
7 |
8 | // This file is included by the generated RNBO code
9 | // and is intended to have the minimal amount necessary to get
10 | // the generated code to build with the goal of speeding up
11 | // dynamic compilation via clang/llvm as much as possible.
12 |
13 | #ifndef _RNBO_Common_h
14 | #define _RNBO_Common_h
15 |
16 | #include "RNBO_PlatformInterface.h"
17 | #include "RNBO_Types.h"
18 | #include "RNBO_List.h"
19 | #include "RNBO_ListHelpers.h"
20 | #include "RNBO_Array.h"
21 | #include "RNBO_String.h"
22 | #include "RNBO_Logger.h"
23 | #include "RNBO_DataRef.h"
24 | #include "RNBO_BaseInterface.h"
25 | #include "RNBO_UniquePtr.h"
26 | #include "RNBO_ExternalPtr.h"
27 | #include "RNBO_EngineInterface.h"
28 | #include "RNBO_EventTarget.h"
29 | #include "RNBO_PatcherStateInterface.h"
30 | #include "RNBO_PatcherInterface.h"
31 | #include "RNBO_PatcherInterfaceImpl.h"
32 | #include "RNBO_PatcherFactory.h"
33 | #include "RNBO_MIDIHelper.h"
34 | #include "RNBO_TimeConverter.h"
35 |
36 | #endif // #ifndef _RNBO_Common_h
37 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2022 Cycling '74
2 |
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Cycling '74
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/vst3.cpp:
--------------------------------------------------------------------------------
1 | //grabed/edited from the VST3 SDK
2 | //https://github.com/steinbergmedia/vst3_pluginterfaces/blob/b8566ef3b2a0cba60a96e3ef2001224c865c8b36/base/fplatform.h
3 | #if defined (_WIN32)
4 | #define PLUGIN_API __stdcall
5 | #define SMTG_EXPORT_SYMBOL __declspec (dllexport)
6 | #elif __gnu_linux__ || __linux__
7 | #define PLUGIN_API
8 | #define SMTG_EXPORT_SYMBOL __attribute__ ((visibility ("default")))
9 | #elif __APPLE__
10 | #define PLUGIN_API
11 | #define SMTG_EXPORT_SYMBOL __attribute__ ((visibility ("default")))
12 | #else
13 | #pragma error unknown platform
14 | #endif
15 |
16 | //forward decl
17 | class IPluginFactory;
18 | extern "C" IPluginFactory* PLUGIN_API JuceStatic_GetPluginFactory();
19 |
20 | //VST3 entrypoint
21 | extern "C" SMTG_EXPORT_SYMBOL IPluginFactory* PLUGIN_API GetPluginFactory()
22 | {
23 | return JuceStatic_GetPluginFactory();
24 | }
25 |
26 | #include
27 | extern "C" {
28 | uint32_t JuceStatic_Plugin_VSTNumMidiInputs() {
29 | return PLUGIN_NUM_MIDI_INPUTS;
30 | }
31 | uint32_t JuceStatic_Plugin_VSTNumMidiOutputs() {
32 | return PLUGIN_NUM_MIDI_OUTPUTS;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/max/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Cycling '74
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/wasm/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Cycling '74
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/VST3Info.plist.in:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CFBundleExecutable
7 | ${MACOSX_BUNDLE_BUNDLE_NAME}
8 | CFBundleIconFile
9 |
10 | CFBundleIdentifier
11 | ${MACOSX_BUNDLE_GUI_IDENTIFIER}
12 | CFBundleName
13 | ${MACOSX_BUNDLE_BUNDLE_NAME}
14 | CFBundleDisplayName
15 | ${MACOSX_BUNDLE_BUNDLE_NAME}
16 | CFBundlePackageType
17 | BNDL
18 | CFBundleSignature
19 | ????
20 | CFBundleShortVersionString
21 | ${MACOSX_BUNDLE_SHORT_VERSION_STRING}
22 | CFBundleVersion
23 | ${MACOSX_BUNDLE_LONG_VERSION_STRING}
24 | NSHumanReadableCopyright
25 | ${MACOSX_BUNDLE_COPYRIGHT}
26 | NSHighResolutionCapable
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/adapters/juce/staticplugin/UnityInfo.plist.in:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | CFBundleExecutable
7 | ${MACOSX_BUNDLE_BUNDLE_NAME}
8 | CFBundleIconFile
9 |
10 | CFBundleIdentifier
11 | ${MACOSX_BUNDLE_GUI_IDENTIFIER}
12 | CFBundleName
13 | ${MACOSX_BUNDLE_BUNDLE_NAME}
14 | CFBundleDisplayName
15 | ${MACOSX_BUNDLE_BUNDLE_NAME}
16 | CFBundlePackageType
17 | BNDL
18 | CFBundleSignature
19 | ????
20 | CFBundleShortVersionString
21 | ${MACOSX_BUNDLE_SHORT_VERSION_STRING}
22 | CFBundleVersion
23 | ${MACOSX_BUNDLE_LONG_VERSION_STRING}
24 | NSHumanReadableCopyright
25 | ${MACOSX_BUNDLE_COPYRIGHT}
26 | NSHighResolutionCapable
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_ListHelpers.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_LISTHELPERS_H_
2 | #define _RNBO_LISTHELPERS_H_
3 |
4 | // RNBO_LISTHELPERS.h -- list utilities used by generated code
5 |
6 | #include "RNBO_Std.h"
7 |
8 | namespace RNBO {
9 |
10 | ATTRIBUTE_UNUSED
11 | static list createListCopy(const list& l)
12 | {
13 | list tmp = l;
14 | return tmp;
15 | }
16 |
17 | /*
18 | * assume this statement:
19 | *
20 | * list newlist = oldlist;
21 | *
22 | * in C++ this will make a list copy, in JS this won't, so we need the below function (a NOOP in C++)
23 | */
24 | ATTRIBUTE_UNUSED
25 | static const list& jsCreateListCopy(const list& l)
26 | {
27 | return l;
28 | }
29 |
30 | template list serializeArrayToList(T *array, size_t size) {
31 | list result;
32 | result.reserve(size);
33 | for (size_t i = 0; i < size; i++) {
34 | result.push((number)(array[i]));
35 | }
36 | return result;
37 | }
38 |
39 | template void deserializeArrayFromList(const list& l, T* result, size_t size) {
40 | for (size_t i = 0; i < size && i < l.length; i++) {
41 | result[i] = (T)(l[i]);
42 | }
43 | }
44 |
45 | } // namespace RNBO
46 |
47 | #endif // #ifndef _RNBO_LISTHELPERS_H_
48 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI.xcodeproj/xcuserdata/eldarsadykov.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Keyboard (Playground) 1.xcscheme
8 |
9 | isShown
10 |
11 | orderHint
12 | 2
13 |
14 | Keyboard (Playground) 2.xcscheme
15 |
16 | isShown
17 |
18 | orderHint
19 | 3
20 |
21 | Keyboard (Playground).xcscheme
22 |
23 | isShown
24 |
25 | orderHint
26 | 0
27 |
28 | SwiftRNBO_Example_multiplatfrom_SwiftUI.xcscheme_^#shared#^_
29 |
30 | orderHint
31 | 1
32 |
33 |
34 | SuppressBuildableAutocreation
35 |
36 | AFF2B41929A2090200068DD0
37 |
38 | primary
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/SliderView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ParameterView.swift
3 | // SwiftRNBO_Example_multiplatfrom_SwiftUI
4 | //
5 | // Created by Eldar Sadykov on 18.11.2023.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct SliderView: View {
11 | @EnvironmentObject var rnbo: RNBOAudioUnitHostModel
12 | @Binding var parameter: RNBOParameter
13 | var body: some View {
14 | HStack {
15 | // let displayName = parameter.displayName != "" ? parameter.displayName : parameter.name.capitalizedSentence
16 | let displayName = parameter.info.paramId
17 | #if os(iOS)
18 | SliderNameLabel(name: displayName)
19 | #endif
20 | Slider(value: $parameter.valueNormalized) {
21 | SliderNameLabel(name: displayName)
22 | } minimumValueLabel: {
23 | SliderValueLabel(value: parameter.info.minimum)
24 | } maximumValueLabel: {
25 | SliderValueLabel(value: parameter.info.maximum)
26 | }
27 | .onChange(of: parameter.valueNormalized) { rnbo.setParameterValueNormalized(to: $0, at: parameter.info.index) }
28 | SliderValueLabel(value: parameter.value)
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/Sliders.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Sliders.swift
3 | // SwiftUI_RNBO_FromScratch_Test
4 | //
5 | // Created by Эльдар Садыков on 13.02.2023.
6 | //
7 |
8 | #if !os(tvOS)
9 | import SwiftUI
10 |
11 | struct Sliders: View {
12 | @EnvironmentObject var rnbo: RNBOAudioUnitHostModel
13 |
14 | var body: some View {
15 | ScrollView {
16 | VStack {
17 | ForEach($rnbo.parameters) { $parameter in
18 | SliderView(parameter: $parameter)
19 | }
20 | }
21 | .padding()
22 | .background()
23 | .padding(.bottom)
24 | }
25 | .frame(minHeight: 100)
26 | .padding(.bottom)
27 | }
28 | }
29 |
30 | struct SliderValueLabel: View {
31 | let value: Double
32 | var body: some View {
33 | Text(String(format: "%.2f", value))
34 | .frame(minWidth: 50)
35 | }
36 | }
37 |
38 | struct SliderNameLabel: View {
39 | let name: String
40 | var body: some View {
41 | Text(name)
42 | .frame(minWidth: 100)
43 | }
44 | }
45 | #endif
46 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_PatcherFactory.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_PatcherFactory.h
3 | //
4 | // Created by DDZ on 11/08/15.
5 | //
6 | //
7 |
8 | #ifndef _RNBO_PatcherFactory_h
9 | #define _RNBO_PatcherFactory_h
10 |
11 | namespace RNBO {
12 |
13 | class PlatformInterface;
14 | class PatcherInterface;
15 |
16 | /** The patcher factory is just a function pointer to a function that
17 | allocates a PatcherInterface derived object and returns the PatcherInterface pointer
18 | Note, PatcherInterface should be freed via the PatcherInterface destroy() method.
19 | */
20 | using PatcherFactoryFunctionPtr = PatcherInterface*(*)();
21 |
22 | /** the patcher factory can be obtained via a staticaly linked in function named GetPatcherFactoryFunction
23 | or a DLL can export the function named GetPatcherFactoryFunction in which case the function
24 | should have the following signature.
25 | */
26 | using GetPatcherFactoryFunctionPtr = PatcherFactoryFunctionPtr(*)(PlatformInterface*);
27 |
28 | } // namespace RNBO
29 |
30 | #ifndef RNBO_NO_PATCHERFACTORY
31 | extern "C" RNBO::PatcherFactoryFunctionPtr GetPatcherFactoryFunction(RNBO::PlatformInterface*);
32 | #endif
33 |
34 | #endif // ifndef _RNBO_PatcherFactory_h
35 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/common/RNBO_Debug.h:
--------------------------------------------------------------------------------
1 | #ifndef _RNBO_DEBUG_H_
2 | #define _RNBO_DEBUG_H_
3 |
4 | #include "RNBO_Logger.h"
5 |
6 | // See https://github.com/scottt/debugbreak/blob/master/debugbreak.h for inspiration
7 |
8 | namespace RNBO {
9 |
10 | #ifndef RNBO_ASSERT
11 |
12 | # if defined(__APPLE__)
13 |
14 | #if defined(__thumb__)
15 | #define RNBODebugBreak __asm__ volatile(".inst 0xde01")
16 | #elif defined(__arm__)
17 | #define RNBODebugBreak __asm__ volatile(".inst 0xe7f001f0")
18 | #elif defined(__aarch64__)
19 | #define RNBODebugBreak __builtin_trap()
20 | #else
21 | #define RNBODebugBreak asm("int3")
22 | #endif
23 |
24 | #elif defined(_MSC_VER)
25 | #define RNBODebugBreak __debugbreak()
26 | #else
27 | #define RNBODebugBreak (0)
28 | #endif
29 |
30 | #define RNBO_STR_HELPER(x) #x
31 | #define RNBO_STR(x) RNBO_STR_HELPER(x)
32 |
33 | #if defined(_DEBUG) || defined(DEBUG)
34 |
35 | #define RNBO_ASSERT(condition) \
36 | if (!(condition)) { console->log("ASSERTION - failed condition: %s\n", RNBO_STR(condition)); RNBODebugBreak; }
37 |
38 | #define RNBO_DEBUG 1
39 |
40 | #else
41 | #define RNBO_ASSERT(condition)
42 | #endif
43 |
44 | #endif // #ifndef RNBO_ASSERT
45 |
46 | } // namespace RNBO
47 |
48 | #endif // #ifndef _RNBO_DEBUG_H_
49 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_Logger.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_Logger.cpp
3 | // Created: 25 Jan 2016 4:07:31pm
4 | // Author: stb
5 | //
6 | //
7 |
8 | #include "RNBO_Logger.h"
9 | #include "RNBO_DynamicSymbolRegistry.h"
10 |
11 | namespace RNBO {
12 |
13 | static Logger s_logger_instance;
14 | LoggerInterface* console = &s_logger_instance;
15 | static DynamicSymbolRegistrar ConsoleRegisteredSymbol("console" , reinterpret_cast(&console));
16 |
17 | Logger::Logger()
18 | : _outputCallback(&Logger::defaultLogOutputFunction)
19 | {
20 | }
21 |
22 | Logger::~Logger()
23 | {
24 | }
25 |
26 | void Logger::setLoggerOutputCallback(OutputCallback* callback)
27 | {
28 | _outputCallback = callback ? callback : defaultLogOutputFunction;
29 | }
30 |
31 | void Logger::defaultLogOutputFunction(LogLevel level, const char* message)
32 | {
33 | const static char* levelStr[] = { "[INFO]", "[WARNING]", "[ERROR]" };
34 | String formattedMessage = levelStr[level];
35 | formattedMessage += "\t";
36 | formattedMessage += message;
37 | formattedMessage += "\n";
38 | Platform::get()->printMessage(formattedMessage.c_str());
39 | }
40 |
41 | Logger& Logger::getInstance()
42 | {
43 | return s_logger_instance;
44 | }
45 |
46 | } // namespace RNBO
47 |
--------------------------------------------------------------------------------
/SwiftRNBO_Example_multiplatfrom_SwiftUI/SwiftRNBO_Example_multiplatfrom_SwiftUI/RNBO/Export/rnbo/src/RNBO_ParamNameHash.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNBO_ParamNameHash.h
3 | //
4 | //
5 |
6 | #ifndef _RNBO_ParamNameHash_H_
7 | #define _RNBO_ParamNameHash_H_
8 |
9 | #include "RNBO_Types.h"
10 |
11 | #ifndef RNBO_NOSTDLIB
12 | #include