mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-07-04 11:13:34 +00:00
Compare commits
40 Commits
v0.18.5_re
...
main
Author | SHA1 | Date | |
---|---|---|---|
8449f710fb | |||
69dc3721be | |||
f057cc6159 | |||
33bba6d337 | |||
16d04c8faf | |||
994d002796 | |||
0ab061eb0e | |||
5573355c8e | |||
07fa73ecab | |||
5566284cd8 | |||
b0454ed2f4 | |||
e22a501aa7 | |||
7a02dcfa3c | |||
b983408bd7 | |||
fa44d2b4c7 | |||
8e7a9abe1a | |||
65ea2080be | |||
edf2071467 | |||
2e517e3bff | |||
1b766822f6 | |||
884c8ad91f | |||
1d03e9addd | |||
af44ac43f0 | |||
b971435101 | |||
7bc12ac0be | |||
8038fdd9c2 | |||
bbdcd4b29c | |||
cf06a21160 | |||
6471b1e066 | |||
7d7a7d24a2 | |||
2c1a3692e7 | |||
30e16d80d9 | |||
2743caa02a | |||
572d6a127c | |||
6aa25397de | |||
55e5427ec4 | |||
c2e923bcee | |||
ddf7f8538a | |||
1dc55a982c | |||
8aa0dee3d1 |
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,7 @@
|
|||||||
|
*.rej
|
||||||
|
*.orig
|
||||||
|
.DS_Store
|
||||||
|
*.ini
|
||||||
|
build
|
||||||
*.*~
|
*.*~
|
||||||
*.o
|
*.o
|
||||||
|
|
||||||
|
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
build-ubuntu:
|
||||||
|
stage: build
|
||||||
|
image: ubuntu:22.04
|
||||||
|
script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y git cmake g++ freeglut3-dev qtbase5-dev qt5-qmake qtbase5-dev-tools
|
||||||
|
- mkdir -p build
|
||||||
|
- cd build
|
||||||
|
- cmake ..
|
||||||
|
- cmake --build . --target samplebrain
|
||||||
|
|
||||||
|
build-win64:
|
||||||
|
tags:
|
||||||
|
- "windows"
|
||||||
|
before_script:
|
||||||
|
- choco install -y cmake python qt5-default
|
||||||
|
- $env:Path += ';C:\Program Files\CMake\bin'
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- set CMAKE_PREFIX_PATH=C:\Qt\5.15.2\mingw81_64
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- cmake ..
|
||||||
|
- cmake --build . --target samplebrain
|
81
CMakeLists.txt
Normal file
81
CMakeLists.txt
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
project(samplebrain VERSION 1.0 LANGUAGES C CXX)
|
||||||
|
|
||||||
|
include(Dependencies.cmake)
|
||||||
|
|
||||||
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
|
# Set up AUTOMOC and some sensible defaults for runtime execution
|
||||||
|
# When using Qt 6.3, you can replace the code block below with
|
||||||
|
# qt_standard_project_setup()
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
set(CMAKE_AUTOUIC ON)
|
||||||
|
set(CMAKE_AUTORCC ON)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
|
||||||
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Widgets)
|
||||||
|
find_package(OpenMP)
|
||||||
|
|
||||||
|
add_executable(samplebrain WIN32 MACOSX_BUNDLE
|
||||||
|
app/MainWindow.cpp app/MainWindow.h
|
||||||
|
app/SettingsDialog.cpp app/SettingsDialog.h
|
||||||
|
app/audio_thread.cpp
|
||||||
|
app/feedback.cpp
|
||||||
|
app/process_thread.cpp
|
||||||
|
app/qtmain.cpp
|
||||||
|
app/samplebrain.qrc
|
||||||
|
app/sound_items.cpp
|
||||||
|
brain/src/aquila/filter/MelFilter.cpp
|
||||||
|
brain/src/aquila/filter/MelFilterBank.cpp
|
||||||
|
brain/src/aquila/transform/Dct.cpp
|
||||||
|
brain/src/block.cpp
|
||||||
|
brain/src/block_stream.cpp
|
||||||
|
brain/src/brain.cpp
|
||||||
|
brain/src/fft.cpp
|
||||||
|
brain/src/mfcc.cpp
|
||||||
|
brain/src/renderer.cpp
|
||||||
|
brain/src/search_params.cpp
|
||||||
|
brain/src/spiralcore/OSC_server.cpp
|
||||||
|
brain/src/spiralcore/allocator.cpp
|
||||||
|
brain/src/spiralcore/audio.cpp
|
||||||
|
brain/src/spiralcore/command_ring_buffer.cpp
|
||||||
|
brain/src/spiralcore/portaudio_client.cpp
|
||||||
|
brain/src/spiralcore/ring_buffer.cpp
|
||||||
|
brain/src/spiralcore/sample.cpp
|
||||||
|
brain/src/spiralcore/stream.cpp
|
||||||
|
brain/src/status.cpp
|
||||||
|
brain/src/window.cpp
|
||||||
|
app/gui/samplebrain.ui
|
||||||
|
app/gui/settings.ui
|
||||||
|
)
|
||||||
|
target_include_directories(samplebrain PRIVATE
|
||||||
|
.
|
||||||
|
brain/src
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(samplebrain PRIVATE
|
||||||
|
Qt5::Core
|
||||||
|
Qt5::Gui
|
||||||
|
Qt5::Widgets
|
||||||
|
fftw3
|
||||||
|
lo_shared
|
||||||
|
portaudio
|
||||||
|
sndfile
|
||||||
|
)
|
||||||
|
|
||||||
|
if(OpenMP_CXX_FOUND)
|
||||||
|
target_link_libraries(samplebrain PUBLIC OpenMP::OpenMP_CXX)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS samplebrain
|
||||||
|
BUNDLE DESTINATION .
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
# Consider using qt_generate_deploy_app_script() for app deployment if
|
||||||
|
# the project can use Qt 6.3. In that case rerun qmake2cmake with
|
||||||
|
# --min-qt-version=6.3.
|
49
Dependencies.cmake
Normal file
49
Dependencies.cmake
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
################################################################################
|
||||||
|
# FetchContent
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
include(FetchContent)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# fftw3
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
fftw3
|
||||||
|
URL http://fftw.org/fftw-3.3.10.tar.gz
|
||||||
|
URL_HASH MD5=8ccbf6a5ea78a16dbc3e1306e234cc5c)
|
||||||
|
FetchContent_MakeAvailable(fftw3)
|
||||||
|
|
||||||
|
include_directories(${fftw3_SOURCE_DIR}/api)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# liblo
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
liblo
|
||||||
|
URL http://downloads.sourceforge.net/liblo/liblo-0.31.tar.gz
|
||||||
|
URL_HASH MD5=14378c1e74c58e777fbb4fcf33ac5315)
|
||||||
|
FetchContent_MakeAvailable(liblo)
|
||||||
|
|
||||||
|
add_subdirectory(${liblo_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# PortAudio
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
portaudio
|
||||||
|
URL http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
|
||||||
|
URL_HASH MD5=ad319249932c6794b551d954b8844402)
|
||||||
|
FetchContent_MakeAvailable(portaudio)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# libsndfile
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
libsndfile
|
||||||
|
GIT_REPOSITORY https://github.com/libsndfile/libsndfile
|
||||||
|
GIT_TAG 1.1.0)
|
||||||
|
FetchContent_MakeAvailable(libsndfile)
|
18
README.md
18
README.md
@ -34,6 +34,10 @@ both the target and brain samples). The original samples used to
|
|||||||
create the demo session [can be found here for
|
create the demo session [can be found here for
|
||||||
testing](https://static.thentrythis.org/samplebrain/samples/).
|
testing](https://static.thentrythis.org/samplebrain/samples/).
|
||||||
|
|
||||||
|
# Community
|
||||||
|
|
||||||
|
* https://www.reddit.com/r/samplebrain/
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
|
|
||||||
As this is experimental non-commercial software (only originally
|
As this is experimental non-commercial software (only originally
|
||||||
@ -41,12 +45,16 @@ written to run on a couple of computers!) you will have to bear with
|
|||||||
us as we gradually stabilise things based on your feedback. There
|
us as we gradually stabilise things based on your feedback. There
|
||||||
might currently be problems running it on 64bit Windows.
|
might currently be problems running it on 64bit Windows.
|
||||||
|
|
||||||
* **Windows**: [samplebrain_0.18.4_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.4_win.zip)
|
* **Windows**: [samplebrain_0.18.5_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.5_win.zip)
|
||||||
* **Mac (intel/m1)**: [samplebrain_0.18.4_macintel.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.4_macintel.app.zip)
|
* **Mac (intel/m1)**: [samplebrain_0.18.5_macintel.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.5_macintel.app.zip)
|
||||||
|
|
||||||
Changes in 0.18.4: New audio device settings window and updated
|
Changes in 0.18.5 (relased 28/10/22):
|
||||||
windows build. Better default block size, tool tip tweaks and fixes
|
|
||||||
for dark themes by [Claude Heiland-Allen](https://mathr.co.uk/).
|
* Target sound filename shown (and tells you if you don't have one)
|
||||||
|
* More soundfile formats supported (aiff,aifc,au,snd,fasttracker xi,flac)
|
||||||
|
* New configurable OSC ports in settings
|
||||||
|
* Warning boxes if the OSC network connection fails
|
||||||
|
* File path memory per-dialog rather than global
|
||||||
|
|
||||||
For old versions see the [changelog](changelog.md)
|
For old versions see the [changelog](changelog.md)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include "ui_samplebrain.h"
|
#include "gui/ui_samplebrain.h"
|
||||||
#include "SettingsDialog.h"
|
#include "SettingsDialog.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "ui_settings.h"
|
#include "gui/ui_settings.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <lo/lo.h>
|
#include <lo/lo.h>
|
||||||
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1188</width>
|
<width>1188</width>
|
||||||
<height>898</height>
|
<height>939</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -1473,7 +1473,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../app/samplebrain.qrc">
|
<iconset resource="../samplebrain.qrc">
|
||||||
<normaloff>:/images/images/play.png</normaloff>:/images/images/play.png</iconset>
|
<normaloff>:/images/images/play.png</normaloff>:/images/images/play.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@ -1500,7 +1500,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../app/samplebrain.qrc">
|
<iconset resource="../samplebrain.qrc">
|
||||||
<normaloff>:/images/images/pause.png</normaloff>:/images/images/pause.png</iconset>
|
<normaloff>:/images/images/pause.png</normaloff>:/images/images/pause.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@ -1520,7 +1520,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../app/samplebrain.qrc">
|
<iconset resource="../samplebrain.qrc">
|
||||||
<normaloff>:/images/images/record.png</normaloff>:/images/images/record.png</iconset>
|
<normaloff>:/images/images/record.png</normaloff>:/images/images/record.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@ -1540,7 +1540,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../app/samplebrain.qrc">
|
<iconset resource="../samplebrain.qrc">
|
||||||
<normaloff>:/images/images/stop.png</normaloff>:/images/images/stop.png</iconset>
|
<normaloff>:/images/images/stop.png</normaloff>:/images/images/stop.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@ -1606,7 +1606,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../app/samplebrain.qrc">
|
<iconset resource="../samplebrain.qrc">
|
||||||
<normaloff>:/images/images/settings.png</normaloff>:/images/images/settings.png</iconset>
|
<normaloff>:/images/images/settings.png</normaloff>:/images/images/settings.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
@ -1639,7 +1639,7 @@
|
|||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="pixmap">
|
||||||
<pixmap resource="../app/samplebrain.qrc">:/images/images/at.png</pixmap>
|
<pixmap resource="../samplebrain.qrc">:/images/images/at.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -1650,7 +1650,8 @@
|
|||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../app/samplebrain.qrc"/>
|
<include location="../samplebrain.qrc"/>
|
||||||
|
<include location="../samplebrain.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
@ -33,7 +33,7 @@ int main( int argc , char *argv[] ){
|
|||||||
|
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
cerr<<"Qt version: "<<qVersion()<<endl;
|
||||||
QSettings settings("thentrythis", "samplebrain");
|
QSettings settings("thentrythis", "samplebrain");
|
||||||
|
|
||||||
// slight over-use of OSC servers here, but the are packaged nicely for
|
// slight over-use of OSC servers here, but the are packaged nicely for
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <atomic>
|
||||||
#include <sndfile.h>
|
#include <sndfile.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <spiralcore/audio.h>
|
#include <spiralcore/audio.h>
|
||||||
@ -245,10 +246,12 @@ void brain::build_synapses_thresh(search_params ¶ms, double thresh) {
|
|||||||
m_average_error = calc_average_diff(params)*thresh;
|
m_average_error = calc_average_diff(params)*thresh;
|
||||||
double err = m_average_error*thresh;
|
double err = m_average_error*thresh;
|
||||||
u32 brain_size = m_blocks.size();
|
u32 brain_size = m_blocks.size();
|
||||||
u32 outer_index = 0;
|
std::atomic<u32> progress{0};
|
||||||
for (auto &i : m_blocks) {
|
#pragma omp parallel for
|
||||||
|
for (u32 outer_index = 0; outer_index < brain_size; ++outer_index) {
|
||||||
|
auto &i = m_blocks[outer_index];
|
||||||
u32 index = 0;
|
u32 index = 0;
|
||||||
status::update("building synapses %d%%",(int)(outer_index/(float)brain_size*100));
|
status::update("building synapses %d%%",(int)(progress/(float)brain_size*100));
|
||||||
for (auto &j : m_blocks) {
|
for (auto &j : m_blocks) {
|
||||||
if (index!=outer_index) {
|
if (index!=outer_index) {
|
||||||
// collect connections that are under threshold in closeness
|
// collect connections that are under threshold in closeness
|
||||||
@ -259,7 +262,7 @@ void brain::build_synapses_thresh(search_params ¶ms, double thresh) {
|
|||||||
}
|
}
|
||||||
++index;
|
++index;
|
||||||
}
|
}
|
||||||
++outer_index;
|
++progress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
@ -267,23 +270,25 @@ void brain::build_synapses_thresh(search_params ¶ms, double thresh) {
|
|||||||
void brain::build_synapses_fixed(search_params ¶ms) {
|
void brain::build_synapses_fixed(search_params ¶ms) {
|
||||||
//m_average_error = calc_average_diff(params)*thresh;
|
//m_average_error = calc_average_diff(params)*thresh;
|
||||||
u32 brain_size = m_blocks.size();
|
u32 brain_size = m_blocks.size();
|
||||||
u32 outer_index = 0;
|
|
||||||
u32 num_synapses = NUM_FIXED_SYNAPSES;
|
u32 num_synapses = NUM_FIXED_SYNAPSES;
|
||||||
if (num_synapses>=m_blocks.size()) num_synapses=m_blocks.size()-1;
|
if (num_synapses>=m_blocks.size()) num_synapses=m_blocks.size()-1;
|
||||||
|
|
||||||
// need to stop the progress updates flooding osc
|
// need to stop the progress updates flooding osc
|
||||||
u32 update_period = 100;
|
u32 update_period = 100;
|
||||||
u32 update_tick = 0;
|
std::atomic<u32> update_tick{0};
|
||||||
|
std::atomic<u32> progress{0};
|
||||||
for (auto &i:m_blocks) {
|
#pragma omp parallel for
|
||||||
|
for (u32 outer_index = 0; outer_index < brain_size; ++outer_index) {
|
||||||
|
auto &i = m_blocks[outer_index];
|
||||||
if (update_tick>update_period) {
|
if (update_tick>update_period) {
|
||||||
status::update("building synapses %d%%",(int)(outer_index/(float)brain_size*100));
|
status::update("building synapses %d%%",(int)(progress/(float)brain_size*100));
|
||||||
update_tick=0;
|
update_tick=0;
|
||||||
}
|
}
|
||||||
update_tick++;
|
update_tick++;
|
||||||
|
|
||||||
u32 index = 0;
|
u32 index = 0;
|
||||||
vector<pair<u32,double>> collect;
|
vector<pair<u32,double>> collect;
|
||||||
|
collect.reserve(brain_size);
|
||||||
|
|
||||||
// collect comparisons to all other blocks
|
// collect comparisons to all other blocks
|
||||||
for (auto &j:m_blocks) {
|
for (auto &j:m_blocks) {
|
||||||
@ -308,7 +313,7 @@ void brain::build_synapses_fixed(search_params ¶ms) {
|
|||||||
i.get_synapse().push_back(collect[n].first);
|
i.get_synapse().push_back(collect[n].first);
|
||||||
}
|
}
|
||||||
|
|
||||||
++outer_index;
|
++progress;
|
||||||
}
|
}
|
||||||
status::update("Done: %d synapses grown for %d blocks",num_synapses*brain_size,brain_size);
|
status::update("Done: %d synapses grown for %d blocks",num_synapses*brain_size,brain_size);
|
||||||
}
|
}
|
||||||
|
21
building.md
21
building.md
@ -1,8 +1,8 @@
|
|||||||
# Building from source
|
# Building from source
|
||||||
## Linux (Ubuntu)
|
## Linux (Ubuntu)
|
||||||
Install libraries for the sample engine (use brew on mac, MinGW on win):
|
Install cmake:
|
||||||
|
|
||||||
$ sudo apt install libsndfile1-dev portaudio19-dev liblo-dev libfftw3-dev
|
$ sudo apt install cmake
|
||||||
|
|
||||||
Install dependencies for the interface:
|
Install dependencies for the interface:
|
||||||
|
|
||||||
@ -16,15 +16,14 @@ Build & run it:
|
|||||||
|
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
$ qmake ..
|
$ cmake ..
|
||||||
$ make
|
$ cmake --build .
|
||||||
$ sudo make install
|
$ ./samplebrain
|
||||||
$ samplebrain
|
|
||||||
|
|
||||||
## Mac
|
## Mac
|
||||||
Install libraries for sample engine:
|
Install cmake:
|
||||||
|
|
||||||
$ brew install fftw portaudio liblo libsndfile
|
$ brew install cmake
|
||||||
|
|
||||||
Install dependencies for the interface:
|
Install dependencies for the interface:
|
||||||
|
|
||||||
@ -35,10 +34,10 @@ Build & run it:
|
|||||||
|
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
$ qmake ..
|
$ cmake ..
|
||||||
$ make
|
$ cmake --build .
|
||||||
|
|
||||||
`samplebrain.app` should then be in the app folder for you to run.
|
`samplebrain.app` should then be in the build folder for you to run.
|
||||||
|
|
||||||
# Mac build additions
|
# Mac build additions
|
||||||
|
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
# Changlog
|
# Changlog
|
||||||
|
|
||||||
|
0.18.4
|
||||||
|
|
||||||
|
* **Windows**: [samplebrain_0.18.4_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.4_win.zip)
|
||||||
|
* **Mac (intel/m1)**: [samplebrain_0.18.4_macintel.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.4_macintel.app.zip)
|
||||||
|
|
||||||
|
Changes in 0.18.4: New audio device settings window and updated
|
||||||
|
windows build. Better default block size, tool tip tweaks and fixes
|
||||||
|
for dark themes by [Claude Heiland-Allen](https://mathr.co.uk/).
|
||||||
|
|
||||||
0.18.3
|
0.18.3
|
||||||
|
|
||||||
* **Windows**: [samplebrain_0.18.3_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.3_win.zip)
|
* **Windows**: [samplebrain_0.18.3_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18.3_win.zip)
|
||||||
|
11
debian/changelog
vendored
11
debian/changelog
vendored
@ -1,6 +1,11 @@
|
|||||||
samplebrain (0.18rc2-1ubuntu0~bionic4) bionic; urgency=medium
|
samplebrain (0.18.5rc1-1ubuntu0~bionic1) bionic; urgency=medium
|
||||||
|
|
||||||
* Initial release
|
* Target sound filename shown (and tells you if you don't have one)
|
||||||
|
* More soundfile formats supported (aiff,aifc,au,snd,fasttracker xi,flac)
|
||||||
|
* New configurable OSC ports in settings
|
||||||
|
* Warning boxes if the OSC network connection fails
|
||||||
|
* File path memory per-dialog rather than global
|
||||||
|
|
||||||
|
-- Dave Griffiths <dave@thentrythis.org> Thu, 29 Oct 2022 08:47:10 +0100
|
||||||
|
|
||||||
-- Dave Griffiths <dave@thentrythis.org> Thu, 08 Sep 2022 13:08:26 +0100
|
|
||||||
|
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
######################################################################
|
|
||||||
# Automatically generated by qmake (2.01a) Sun Jul 5 17:49:45 2015
|
|
||||||
######################################################################
|
|
||||||
|
|
||||||
TEMPLATE = app
|
|
||||||
TARGET = samplebrain
|
|
||||||
DEPENDPATH += . 2
|
|
||||||
INCLUDEPATH += . 2
|
|
||||||
|
|
||||||
QT += core gui widgets
|
|
||||||
|
|
||||||
# Input
|
|
||||||
HEADERS += app/MainWindow.h \
|
|
||||||
app/SettingsDialog.h
|
|
||||||
|
|
||||||
FORMS += gui/samplebrain.ui \
|
|
||||||
gui/settings.ui
|
|
||||||
|
|
||||||
SOURCES += app/MainWindow.cpp \
|
|
||||||
app/SettingsDialog.cpp \
|
|
||||||
app/sound_items.cpp \
|
|
||||||
app/audio_thread.cpp \
|
|
||||||
app/process_thread.cpp \
|
|
||||||
app/feedback.cpp \
|
|
||||||
app/qtmain.cpp \
|
|
||||||
brain/src/block.cpp \
|
|
||||||
brain/src/brain.cpp \
|
|
||||||
brain/src/fft.cpp \
|
|
||||||
brain/src/mfcc.cpp \
|
|
||||||
brain/src/renderer.cpp \
|
|
||||||
brain/src/search_params.cpp \
|
|
||||||
brain/src/status.cpp \
|
|
||||||
brain/src/window.cpp \
|
|
||||||
brain/src/block_stream.cpp \
|
|
||||||
brain/src/aquila/filter/MelFilterBank.cpp \
|
|
||||||
brain/src/aquila/filter/MelFilter.cpp \
|
|
||||||
brain/src/aquila/transform/Dct.cpp \
|
|
||||||
brain/src/spiralcore/sample.cpp \
|
|
||||||
brain/src/spiralcore/ring_buffer.cpp \
|
|
||||||
brain/src/spiralcore/command_ring_buffer.cpp \
|
|
||||||
brain/src/spiralcore/portaudio_client.cpp \
|
|
||||||
brain/src/spiralcore/audio.cpp \
|
|
||||||
brain/src/spiralcore/OSC_server.cpp \
|
|
||||||
brain/src/spiralcore/allocator.cpp \
|
|
||||||
brain/src/spiralcore/stream.cpp
|
|
||||||
|
|
||||||
INCLUDEPATH += brain/src
|
|
||||||
INCLUDEPATH += /usr/local/include
|
|
||||||
INCLUDEPATH += /opt/homebrew/include
|
|
||||||
LIBS += -L.. -L/usr/local/lib -L/opt/homebrew/lib -lportaudio -lfftw3 -lsndfile -llo -ldl -lpthread -lm
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += -O3 -Wall -Wno-unused -std=c++11
|
|
||||||
|
|
||||||
# assets
|
|
||||||
RESOURCES = app/samplebrain.qrc
|
|
||||||
ICON = desktop/samplebrain.icns
|
|
||||||
|
|
||||||
PREFIX = $$(PREFIX)
|
|
||||||
isEmpty(PREFIX) {
|
|
||||||
PREFIX = /usr
|
|
||||||
}
|
|
||||||
|
|
||||||
unix:desktopfile.path = $$PREFIX/share/applications/
|
|
||||||
unix:desktopfile.files = desktop/samplebrain.desktop
|
|
||||||
unix:iconfile.path = $$PREFIX/share/icons/hicolor/scalable/apps
|
|
||||||
unix:iconfile.files = desktop/samplebrain.svg
|
|
||||||
unix:metainfofile.path = $$PREFIX/share/metainfo
|
|
||||||
unix:metainfofile.files = desktop/org.thentrythis.Samplebrain.metainfo.xml
|
|
||||||
|
|
||||||
target.path = $$PREFIX/bin
|
|
||||||
INSTALLS += target desktopfile iconfile metainfofile
|
|
Reference in New Issue
Block a user