Compare commits
No commits in common. "6bc1cbeec3fdde1603733c2dc0d7e06732e06eb2" and "df0fd84b48174c35b09a29fe9ff0649ca9e04b62" have entirely different histories.
6bc1cbeec3
...
df0fd84b48
|
|
@ -5,7 +5,7 @@ A custom sample mashing app designed by Aphex Twin.
|
|||
Samplebrain chops samples up into a 'brain' of interconnected small
|
||||
sections called blocks which are connected into a network by
|
||||
similarity. It processes a target sample, chopping it up into blocks
|
||||
in the same way, and tries to match each block with one in its brain
|
||||
in the same way, and tries to match each block with one in it's brain
|
||||
to play in realtime.
|
||||
|
||||
This allows you to interpret a sound with a different one. As we
|
||||
|
|
|
|||
|
|
@ -40,10 +40,12 @@ MainWindow::MainWindow() :
|
|||
setUnifiedTitleAndToolBarOnMac(true);
|
||||
|
||||
m_Ui.verticalLayout_5->setSpacing(0);
|
||||
m_Ui.verticalLayout_5->setMargin(0);
|
||||
m_Ui.verticalLayout_5->setContentsMargins(0,0,0,0);
|
||||
|
||||
m_Ui.brain_contents->setAlignment(Qt::AlignTop);
|
||||
m_Ui.brain_contents->setSpacing(0);
|
||||
m_Ui.brain_contents->setMargin(0);
|
||||
m_Ui.brain_contents->setContentsMargins(0,0,0,0);
|
||||
|
||||
// add default local dest
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#include <QDirIterator>
|
||||
#include <QFileDialog>
|
||||
#include <QLineEdit>
|
||||
#include "ui_samplebrain.h"
|
||||
#include "generated/ui_samplebrain.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <lo/lo.h>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,93 @@
|
|||
/********************************************************************************
|
||||
** Form generated from reading UI file 'sampleSy5241.ui'
|
||||
**
|
||||
** Created: Sat Jul 11 10:24:07 2015
|
||||
** by: Qt User Interface Compiler version 4.8.1
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef SAMPLESY5241_H
|
||||
#define SAMPLESY5241_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_FormSample
|
||||
{
|
||||
public:
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QCheckBox *checkBox;
|
||||
QLabel *labelSampleName;
|
||||
QLabel *labelSampleInfo;
|
||||
QPushButton *pushButton;
|
||||
|
||||
void setupUi(QWidget *FormSample)
|
||||
{
|
||||
if (FormSample->objectName().isEmpty())
|
||||
FormSample->setObjectName(QString::fromUtf8("FormSample"));
|
||||
FormSample->resize(400, 46);
|
||||
horizontalLayout = new QHBoxLayout(FormSample);
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
checkBox = new QCheckBox(FormSample);
|
||||
checkBox->setObjectName(QString::fromUtf8("checkBox"));
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Comic Sans MS"));
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
checkBox->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(checkBox);
|
||||
|
||||
labelSampleName = new QLabel(FormSample);
|
||||
labelSampleName->setObjectName(QString::fromUtf8("labelSampleName"));
|
||||
labelSampleName->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(labelSampleName);
|
||||
|
||||
labelSampleInfo = new QLabel(FormSample);
|
||||
labelSampleInfo->setObjectName(QString::fromUtf8("labelSampleInfo"));
|
||||
labelSampleInfo->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(labelSampleInfo);
|
||||
|
||||
pushButton = new QPushButton(FormSample);
|
||||
pushButton->setObjectName(QString::fromUtf8("pushButton"));
|
||||
pushButton->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(pushButton);
|
||||
|
||||
|
||||
retranslateUi(FormSample);
|
||||
|
||||
QMetaObject::connectSlotsByName(FormSample);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *FormSample)
|
||||
{
|
||||
FormSample->setWindowTitle(QApplication::translate("FormSample", "Form", 0, QApplication::UnicodeUTF8));
|
||||
checkBox->setText(QApplication::translate("FormSample", "active", 0, QApplication::UnicodeUTF8));
|
||||
labelSampleName->setText(QApplication::translate("FormSample", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
labelSampleInfo->setText(QApplication::translate("FormSample", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
pushButton->setText(QApplication::translate("FormSample", "delete", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class FormSample: public Ui_FormSample {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // SAMPLESY5241_H
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,6 +37,7 @@ sound_items::sound_item &sound_items::add(QVBoxLayout *container, const string &
|
|||
|
||||
si.m_container = new QHBoxLayout();
|
||||
si.m_container->setSpacing(10);
|
||||
si.m_container->setMargin(0);
|
||||
si.m_container->setContentsMargins(0,0,0,0);
|
||||
|
||||
si.m_enable = new QCheckBox();
|
||||
|
|
@ -55,7 +56,7 @@ sound_items::sound_item &sound_items::add(QVBoxLayout *container, const string &
|
|||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Comic Sans MS"));
|
||||
font.setBold(true);
|
||||
font.setWeight(QFont::Bold);
|
||||
font.setWeight(75);
|
||||
si.m_label->setFont(font);
|
||||
si.m_label->setContentsMargins(0,0,0,0);
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ double square(double a) {
|
|||
return a*a;
|
||||
}
|
||||
|
||||
void normalise(spiralcore::sample &in) {
|
||||
void normalise(sample &in) {
|
||||
// find min/max
|
||||
float max = 0;
|
||||
float min = FLT_MAX;
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ bool portaudio_client::attach(const string &client_name, const device_options &d
|
|||
PaStreamParameters input_parameters;
|
||||
PaStreamParameters *input_p=&input_parameters;
|
||||
input_parameters.device = input_device_num;
|
||||
if (true || input_parameters.device == paNoDevice) {
|
||||
if (input_parameters.device == paNoDevice) {
|
||||
cerr<<"error: no default input device."<<endl;
|
||||
input_p=0;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,77 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>FormSample</class>
|
||||
<widget class="QWidget" name="FormSample">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>46</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>active</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelSampleName">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labelSampleInfo">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>delete</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -39,6 +40,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -55,6 +57,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -114,6 +117,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -173,6 +177,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -195,6 +200,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -221,6 +227,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -249,6 +256,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -311,6 +319,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -373,6 +382,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -435,6 +445,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -503,6 +514,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -545,6 +557,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -607,6 +620,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -690,6 +704,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -703,6 +718,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -718,6 +734,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -748,6 +765,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -778,6 +796,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -837,6 +856,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -853,7 +873,6 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
|
|
@ -870,6 +889,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -886,6 +906,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -942,6 +963,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -998,6 +1020,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>9</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1081,6 +1104,7 @@
|
|||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<pointsize>20</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1127,7 +1151,7 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>600</width>
|
||||
<width>424</width>
|
||||
<height>198</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
|
@ -1146,6 +1170,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1159,6 +1184,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1172,6 +1198,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1189,6 +1216,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1219,6 +1247,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1249,6 +1278,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1308,6 +1338,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1323,6 +1354,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1336,6 +1368,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1399,6 +1432,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1425,6 +1459,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1500,6 +1535,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
@ -1513,6 +1549,7 @@
|
|||
<property name="font">
|
||||
<font>
|
||||
<family>Comic Sans MS</family>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
|
|
|||
|
|
@ -10,9 +10,8 @@ INCLUDEPATH += . 2
|
|||
QT += core gui widgets
|
||||
|
||||
# Input
|
||||
HEADERS += app/MainWindow.h
|
||||
|
||||
FORMS += gui/samplebrain.ui
|
||||
HEADERS += app/MainWindow.h \
|
||||
app/generated/ui_samplebrain.h \
|
||||
|
||||
SOURCES += app/MainWindow.cpp \
|
||||
app/sound_items.cpp \
|
||||
|
|
|
|||
Loading…
Reference in New Issue