From b0546e5e7f7044019892543c6c82029db8d564a7 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Thu, 15 Sep 2011 12:14:55 +0000 Subject: moved attic to a branch of it's own --- attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp | 68 ----------------------- 1 file changed, 68 deletions(-) delete mode 100644 attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp (limited to 'attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp') diff --git a/attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp b/attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp deleted file mode 100644 index aea6e38a..00000000 --- a/attic/muse_qt4_evolution/synti/fluid/fluidgui.cpp +++ /dev/null @@ -1,68 +0,0 @@ -//========================================================= -// MusE -// Linux Music Editor -// $Id: fluidgui.cpp,v 1.10 2005/11/23 13:55:32 wschweer Exp $ -// -// This is a simple GUI implemented with QT for -// fluid software synthesizer. -// -// (C) Copyright 2001-2004 Werner Schweer (ws@seh.de) -//========================================================= - -#include "fluidgui.h" -#include "muse/midi.h" - -//--------------------------------------------------------- -// FLUIDGui -//--------------------------------------------------------- - -FLUIDGui::FLUIDGui() - : QDialog(0), MessGui() - { - setupUi(this); - connect(fdialogButton, SIGNAL(clicked()), SLOT(soundFontFileDialog())); - connect(loadButton, SIGNAL(clicked()), SLOT(loadFont())); - } - -//--------------------------------------------------------- -// loadFont -// sysex f0 lenH lenM lenL 7c 00 01 name -//--------------------------------------------------------- - -void FLUIDGui::loadFont() - { - if (pathEntry->text().isEmpty()) - return; - QFileInfo fi(pathEntry->text()); - if (!fi.exists()) { - QString s = QString("SoundFont ") + pathEntry->text() + QString(" does not exists"); - QMessageBox::critical(this, tr("FLUID: open Soundfile"), s); - return; - } - const char* path = pathEntry->text().toLatin1().data(); - int len = strlen(path) + 1 + 3; - unsigned char buffer[len]; - int k = 0; - buffer[k++] = 0x7c; - buffer[k++] = 0x00; // fluid - buffer[k++] = 0x01; // load sound font - strcpy((char*)(&buffer[k]), path); - sendSysex(buffer, len); - } - -//--------------------------------------------------------- -// soundFontFileDialog -//--------------------------------------------------------- - -void FLUIDGui::soundFontFileDialog() - { - QString s = QFileDialog::getOpenFileName( - this, - tr("Fluid: select Sound Font"), - ".", - QString("*.[Ss][Ff]2")); - if (!s.isEmpty()) { - pathEntry->setText(s); - } - } - -- cgit v1.2.3