Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
744bcb8
Make exmaple build again
weefuzzy Feb 22, 2023
d4f8658
inline free functions in headers
weefuzzy Feb 22, 2023
5b11e37
ampfeature: fixes the default value
tremblap Feb 23, 2023
85aab87
HissTools: Bump version (e5091cf)
weefuzzy Feb 24, 2023
c195c52
fmt: disable `install` target
weefuzzy Feb 24, 2023
c7ac48f
FluidDataSet: Remove mutable, deal with fallout (#227)
weefuzzy Feb 26, 2023
78a10b6
UMAP: Remove `mutable` (#228)
weefuzzy Feb 26, 2023
1527ddb
change to copyright - remove the useless date
tremblap Mar 30, 2023
80674ce
correctly test for existence of flucoma_VERSION_SUFFIX
Jul 8, 2023
2681d58
add examples/build to gitignore
Aug 3, 2023
07c8192
Update issue templates
tremblap Aug 11, 2023
258b92d
rename
tremblap Aug 11, 2023
bcc0358
added code request
tremblap Aug 11, 2023
7247a36
eigen out-of-bounds crash fix
lewardo Aug 11, 2023
4e7499a
Merge pull request #238 from lewardo/bounds-exception-fix
AlexHarker Aug 11, 2023
e478778
add form templates
Aug 11, 2023
e791fff
remove markdown format
Aug 11, 2023
6314942
Merge pull request #237 from flucoma/test-report-templates
Aug 11, 2023
62c7119
Update bug.yaml
Aug 11, 2023
b69cdbe
remove the duplicate issue templates now that they are project wide (…
tremblap Aug 14, 2023
b25c736
EOL `.gitattributes` normalisation (#240)
lewardo Aug 14, 2023
755eae3
Appropriate client methods are now const (#239)
AlexHarker Aug 16, 2023
6576486
Remove additional spaces (#242)
AlexHarker Aug 17, 2023
f6ec9be
Avoid re-making the DCT table if it is already correct when initialis…
AlexHarker Aug 17, 2023
f916b8e
Adapt YINFFT to store its FFT, rather than allocating per frame (usin…
AlexHarker Aug 17, 2023
0b852c1
Add a mechanism for communicating streaming size behaviour at compile…
AlexHarker Aug 22, 2023
16272b1
Merge pull request #248 from AlexHarker/feature/streaming-lists-fix
tremblap Aug 23, 2023
c8ff5a9
compiling examples readme guide (#253)
lewardo Aug 31, 2023
0ad031e
typo in example readme
tremblap Jan 19, 2024
bf55f2b
fixes non-initialisation for NRT version of AmpGate.
tremblap Feb 4, 2024
398601a
Merge pull request #261 from tremblap/nrt-ampgate-init-fix
tremblap Feb 4, 2024
3335b40
fixes #256 - checking input to env with filters (#263)
tremblap Feb 11, 2024
8e07590
fixing fluid.normalize json reloading issue (#262)
tremblap Feb 23, 2024
54dac08
`kNearestDist` message for `dataSet` (#252)
lewardo Feb 27, 2024
179a62c
fixes output labels for ampfeature and onsetfeature
tremblap Feb 27, 2024
30a43fa
fix the init of the debounce counter in the 3 slicers that had it
tremblap Feb 27, 2024
52c8621
Merge pull request #264 from tremblap/fix/init-debounce-in-slicers
tremblap Feb 28, 2024
c4e6081
Update flucoma-core for hisstools header-only (#265)
AlexHarker Mar 1, 2024
a3aa9ce
added multi-description example with dataset and json output (#260)
tremblap Mar 1, 2024
ab9c650
Update FlucomaVersion.cmake
tremblap Mar 19, 2024
d49c1dd
Merge branch 'main' into pre-production
tremblap Mar 19, 2024
e08caed
Merge branch 'main' into pre-production
tremblap Mar 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 121 additions & 121 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: false
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Merge
# Try and group includes by 'locality'
# We use "" with rel paths for headers in same repo
# Headers in quotes wiht no relative path at top
# Group ../ and ../../ with different priorities, so they get sorted separately
# <> headers *with a folder break* likely not to be STL -> STL / systems headers last
IncludeCategories:
- Regex: '<.+/'
Priority: 4
- Regex: '"../../'
Priority: 3
- Regex: '../' #
Priority: 2
- Regex: '".+hpp"'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: false
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Merge
# Try and group includes by 'locality'
# We use "" with rel paths for headers in same repo
# Headers in quotes wiht no relative path at top
# Group ../ and ../../ with different priorities, so they get sorted separately
# <> headers *with a folder break* likely not to be STL -> STL / systems headers last
IncludeCategories:
- Regex: '<.+/'
Priority: 4
- Regex: '"../../'
Priority: 3
- Regex: '../' #
Priority: 2
- Regex: '".+hpp"'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
19 changes: 19 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
* text=auto

*.clang-format text
*.cmake text
*.cpp text
*.gitattributes text
*.gitignore text
*.hpp text
*.in text
*.json text
*.lic text
*.md text
*.pd text
*.py text
*.svg text
*.txt text
*.yml text

*.png binary
*.wav binary
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
FluidVersion.cpp
flucoma.version.rc
.vscode
examples/build
36 changes: 5 additions & 31 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/)
# Copyright 2017-2019 University of Huddersfield.
# Copyright University of Huddersfield.
# Licensed under the BSD-3 License.
# See license.md file in the project root for full license information.
# This project has received funding from the European Research Council (ERC)
Expand Down Expand Up @@ -56,7 +56,7 @@ FetchContent_Declare(
HISSTools
GIT_REPOSITORY https://github.com/AlexHarker/HISSTools_Library
GIT_PROGRESS TRUE
GIT_TAG 559b5c8
GIT_TAG f3292ad
)

FetchContent_Declare(
Expand Down Expand Up @@ -96,6 +96,7 @@ FetchContent_Declare(
GIT_TAG main
)

set(FMT_INSTALL OFF CACHE BOOL "")
FetchContent_Declare(
fmt
GIT_SHALLOW TRUE
Expand Down Expand Up @@ -167,21 +168,6 @@ if(NOT fmt_POPULATED)
endif()
add_subdirectory(${fmt_SOURCE_DIR} ${fmt_BINARY_DIR} EXCLUDE_FROM_ALL)

# HISSTools FFT target
add_library(
HISSTools_FFT STATIC "${hisstools_SOURCE_DIR}/HISSTools_FFT/HISSTools_FFT.cpp"
)

target_link_libraries(
HISSTools_FFT PRIVATE ${ACCELERATE}
)

target_include_directories(HISSTools_FFT PUBLIC "${hisstools_SOURCE_DIR}")

set_target_properties(HISSTools_FFT PROPERTIES
POSITION_INDEPENDENT_CODE ON
)

# Brute force staic runtime on windwos
if(MSVC)
foreach(flag_var
Expand All @@ -193,13 +179,6 @@ if(MSVC)
endforeach()
endif()

#HISSTools Audiofile Target
add_library(
HISSTools_AudioFile STATIC
"${hisstools_SOURCE_DIR}/AudioFile/BaseAudioFile.cpp"
"${hisstools_SOURCE_DIR}/AudioFile/IAudioFile.cpp"
"${hisstools_SOURCE_DIR}/AudioFile/OAudioFile.cpp"
)

#Fluid Decomposition header-only target
add_library(FLUID_DECOMPOSITION INTERFACE)
Expand All @@ -211,13 +190,12 @@ target_include_directories(
FLUID_DECOMPOSITION SYSTEM INTERFACE #we don't want warnings from Eigen or HissTools
"${eigen_SOURCE_DIR}"
"${spectra_SOURCE_DIR}/include"
"${hisstools_SOURCE_DIR}"
"${hisstools_SOURCE_DIR}/include"
"${memory_SOURCE_DIR}/include/foonathan"
"${fmt_SOURCE_DIR}/include"
)
target_link_libraries(
FLUID_DECOMPOSITION INTERFACE
HISSTools_FFT
flucoma_VERSION_LIB
tl::optional
nlohmann_json::nlohmann_json
Expand All @@ -243,16 +221,12 @@ target_compile_definitions(FLUID_DECOMPOSITION INTERFACE EIGEN_MPL2_ONLY=1)

if(APPLE)
#targeting <= 10.9, need to really emphasise that we want libc++ both to compiler and linker
target_compile_options(HISSTools_FFT PUBLIC -stdlib=libc++)
target_compile_options(HISSTools_AudioFile PUBLIC -stdlib=libc++)
target_compile_options(FLUID_DECOMPOSITION INTERFACE -stdlib=libc++)
target_link_libraries(FLUID_DECOMPOSITION INTERFACE -stdlib=libc++)
target_link_libraries(FLUID_DECOMPOSITION INTERFACE -stdlib=libc++ ${ACCELERATE})
endif()

#Apply any vector instruction flags
if(DEFINED FLUID_ARCH)
target_compile_options(HISSTools_FFT PUBLIC ${FLUID_ARCH})
target_compile_options(HISSTools_AudioFile PUBLIC ${FLUID_ARCH})
target_compile_options(FLUID_DECOMPOSITION INTERFACE ${FLUID_ARCH})
endif()

Expand Down
2 changes: 1 addition & 1 deletion FlucomaClients.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/)
# Copyright 2017-2019 University of Huddersfield.
# Copyright University of Huddersfield.
# Licensed under the BSD-3 License.
# See license.md file in the project root for full license information.
# This project has received funding from the European Research Council (ERC)
Expand Down
8 changes: 4 additions & 4 deletions FlucomaVersion.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/)
# Copyright 2017-2019 University of Huddersfield.
# Copyright University of Huddersfield.
# Licensed under the BSD-3 License.
# See license.md file in the project root for full license information.
# This project has received funding from the European Research Council (ERC)
Expand All @@ -14,15 +14,15 @@ find_package(Git REQUIRED)

set(flucoma_VERSION_MAJOR 1)
set(flucoma_VERSION_MINOR 0)
set(flucoma_VERSION_PATCH 6)
set(flucoma_VERSION_PATCH 7)
set(flucoma_VERSION_SUFFIX "")

function(make_flucoma_version_string output_variable)
set(result "${flucoma_VERSION_MAJOR}.${flucoma_VERSION_MINOR}.${flucoma_VERSION_PATCH}")
if(${flucoma_VERSION_SUFFIX})
if(flucoma_VERSION_SUFFIX)
string(APPEND result "-${flucoma_VERSION_SUFFIX}")
endif()
set(${output_variable} ${result} PARENT_SCOPE)
set(${output_variable} ${result} PARENT_SCOPE)
endfunction()

function(make_flucoma_version_string_with_sha output_variable)
Expand Down
Loading