~mrp/aerodramus

5c2bd6f34529d7111df593013ec7ee51fa85fd83 — Mark Penner 7 months ago 585d247
remove signal generator from UI

found other options for generating sweeps and impulse responses (Aliki and LSP Plugins Profiler)
2 files changed, 0 insertions(+), 27 deletions(-)

M src/app.h
M src/qml/main.qml
M src/app.h => src/app.h +0 -11
@@ 4,25 4,14 @@
#ifndef AERODRAMUS_APP_H
#define AERODRAMUS_APP_H

#include <string>
#include <vector>

#include <QObject>
#include <QUrl>
#include <QtQmlIntegration>

#include "lib/aerodramus.h"

class App : public QObject
{
    Q_OBJECT
    QML_ELEMENT
    QML_SINGLETON
public:
    Q_INVOKABLE bool generate_signal_file(QUrl fileName)
    {
        qDebug() << "generating signal and writing to " << fileName;
        return Aerodramus::write_file(fileName.path().toStdString(), Aerodramus::generate_signal(100, 20000, 20, 44100), 44100);
    };
};
#endif

M src/qml/main.qml => src/qml/main.qml +0 -16
@@ 26,13 26,6 @@ Kirigami.ApplicationWindow {
        onTriggered: root.quitSignal()
    }
    Kirigami.Action {
        id: newAction
        text: i18n("New signal...")
        icon.name: "document-new"
        shortcut: StandardKey.New
        onTriggered: signalDialog.open()
    }
    Kirigami.Action {
        id: openAction
        text: i18n("Open...")
        icon.name: "document-new"


@@ 41,14 34,6 @@ Kirigami.ApplicationWindow {
    }

    FileDialog {
        id: signalDialog
        fileMode: FileDialog.SaveFile
        acceptLabel: "Save"
        defaultSuffix: "flac"
        currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]
        onAccepted: App.generate_signal_file(selectedFile)
    }
    FileDialog {
        id: openDialog
        fileMode: FileDialog.OpenFile
        currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0]


@@ 58,7 43,6 @@ Kirigami.ApplicationWindow {
    globalDrawer: Kirigami.GlobalDrawer {
        isMenu: true
        actions: [
            newAction,
            openAction,
            quitAction
        ]