genpo-0.9.8/src/licence_cleanup.patch0000644000076400017500000010000210712174120016607 0ustar stevestevediff -Naur b/genpo-0.9.6/src/application.cpp a/genpo-0.9.6/src/application.cpp --- b/genpo-0.9.6/src/application.cpp 2007-05-02 13:50:01.000000000 -0400 +++ a/genpo-0.9.6/src/application.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #include "application.h" #include "customEvents.h" diff -Naur b/genpo-0.9.6/src/configParser.cpp a/genpo-0.9.6/src/configParser.cpp --- b/genpo-0.9.6/src/configParser.cpp 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/configParser.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #include "configParser.h" diff -Naur b/genpo-0.9.6/src/configParser.h a/genpo-0.9.6/src/configParser.h --- b/genpo-0.9.6/src/configParser.h 2007-04-17 12:21:41.000000000 -0400 +++ a/genpo-0.9.6/src/configParser.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef CONFIGPARSER_H #define CONFIGPARSER_H diff -Naur b/genpo-0.9.6/src/console.cpp a/genpo-0.9.6/src/console.cpp --- b/genpo-0.9.6/src/console.cpp 2007-05-01 08:35:46.000000000 -0400 +++ a/genpo-0.9.6/src/console.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #include "console.h" diff -Naur b/genpo-0.9.6/src/console.h a/genpo-0.9.6/src/console.h --- b/genpo-0.9.6/src/console.h 2007-05-01 12:26:02.000000000 -0400 +++ a/genpo-0.9.6/src/console.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef CONSOLE_H #define CONSOLE_H diff -Naur b/genpo-0.9.6/src/coupler.h a/genpo-0.9.6/src/coupler.h --- b/genpo-0.9.6/src/coupler.h 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/coupler.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef COUPLER_H #define COUPLER_H diff -Naur b/genpo-0.9.6/src/customEvents.h a/genpo-0.9.6/src/customEvents.h --- b/genpo-0.9.6/src/customEvents.h 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/customEvents.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef CUSTOMEVENTDATA_H #define CUSTOMEVENTDATA_H diff -Naur b/genpo-0.9.6/src/main.cpp a/genpo-0.9.6/src/main.cpp --- b/genpo-0.9.6/src/main.cpp 2007-04-27 14:09:04.000000000 -0400 +++ a/genpo-0.9.6/src/main.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #include #include diff -Naur b/genpo-0.9.6/src/midiConfigForm.cpp a/genpo-0.9.6/src/midiConfigForm.cpp --- b/genpo-0.9.6/src/midiConfigForm.cpp 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/midiConfigForm.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #include "midiConfigForm.h" diff -Naur b/genpo-0.9.6/src/midiConfigForm.h a/genpo-0.9.6/src/midiConfigForm.h --- b/genpo-0.9.6/src/midiConfigForm.h 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/midiConfigForm.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef OPTIONSFORM_H #define OPTIONSFORM_H diff -Naur b/genpo-0.9.6/src/midiThread.cpp a/genpo-0.9.6/src/midiThread.cpp --- b/genpo-0.9.6/src/midiThread.cpp 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/midiThread.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ /****************************************************************************** diff -Naur b/genpo-0.9.6/src/midiThread.h a/genpo-0.9.6/src/midiThread.h --- b/genpo-0.9.6/src/midiThread.h 2007-05-01 12:20:50.000000000 -0400 +++ a/genpo-0.9.6/src/midiThread.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef MIDITHREAD_H #define MIDITHREAD_H diff -Naur b/genpo-0.9.6/src/passingButton.cpp a/genpo-0.9.6/src/passingButton.cpp --- b/genpo-0.9.6/src/passingButton.cpp 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/passingButton.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #include "passingButton.h" diff -Naur b/genpo-0.9.6/src/passingButton.h a/genpo-0.9.6/src/passingButton.h --- b/genpo-0.9.6/src/passingButton.h 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/passingButton.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef PASSINGBUTTON_H #define PASSINGBUTTON_H diff -Naur b/genpo-0.9.6/src/passingCheckBox.cpp a/genpo-0.9.6/src/passingCheckBox.cpp --- b/genpo-0.9.6/src/passingCheckBox.cpp 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/passingCheckBox.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #include "passingCheckBox.h" diff -Naur b/genpo-0.9.6/src/passingCheckBox.h a/genpo-0.9.6/src/passingCheckBox.h --- b/genpo-0.9.6/src/passingCheckBox.h 2005-03-26 08:08:41.000000000 -0500 +++ a/genpo-0.9.6/src/passingCheckBox.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef PASSINGCHECKBOX_H #define PASSINGCHECKBOX_H diff -Naur b/genpo-0.9.6/src/pistonEventData.h a/genpo-0.9.6/src/pistonEventData.h --- b/genpo-0.9.6/src/pistonEventData.h 2007-04-19 08:19:43.000000000 -0400 +++ a/genpo-0.9.6/src/pistonEventData.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef PISTONEVENTDATA_H #define PISTONEVENTDATA_H diff -Naur b/genpo-0.9.6/src/piston.h a/genpo-0.9.6/src/piston.h --- b/genpo-0.9.6/src/piston.h 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/piston.h 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #ifndef PISTON_H diff -Naur b/genpo-0.9.6/src/pistonStop.h a/genpo-0.9.6/src/pistonStop.h --- b/genpo-0.9.6/src/pistonStop.h 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/pistonStop.h 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #ifndef PISTONSTOP_H diff -Naur b/genpo-0.9.6/src/stop.h a/genpo-0.9.6/src/stop.h --- b/genpo-0.9.6/src/stop.h 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/stop.h 2007-10-26 15:20:10.000000000 -0400 @@ -12,7 +12,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #ifndef STOP_H diff -Naur b/genpo-0.9.6/src/subscriberThread.cpp a/genpo-0.9.6/src/subscriberThread.cpp --- b/genpo-0.9.6/src/subscriberThread.cpp 2007-08-26 07:32:36.000000000 -0400 +++ a/genpo-0.9.6/src/subscriberThread.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -21,7 +21,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ #include diff -Naur b/genpo-0.9.6/src/toepiston.cpp a/genpo-0.9.6/src/toepiston.cpp --- b/genpo-0.9.6/src/toepiston.cpp 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/toepiston.cpp 2007-10-26 15:20:10.000000000 -0400 @@ -20,7 +20,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ diff -Naur b/genpo-0.9.6/src/toepiston.h a/genpo-0.9.6/src/toepiston.h --- b/genpo-0.9.6/src/toepiston.h 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/toepiston.h 2007-10-26 15:20:10.000000000 -0400 @@ -21,7 +21,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA */ diff -Naur b/genpo-0.9.6/src/voice.h a/genpo-0.9.6/src/voice.h --- b/genpo-0.9.6/src/voice.h 2007-08-26 07:34:04.000000000 -0400 +++ a/genpo-0.9.6/src/voice.h 2007-10-26 15:20:10.000000000 -0400 @@ -1,19 +1,21 @@ // GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007 - Steve Merrony -// This program is free software; you may redistribute it and/or modify it -// under the terms of the GNU General Public License as published by the Free -// Software Foundation; either version 2 of the License, or (at your option) -// any later version. - -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -// more details. - -// You should have received a copy of the GNU General Public License along with -// this program; if not, write to the Free Software Foundation, Inc., 59 Temple -// Place, Suite 330, Boston, MA 02111-1307 USA +/* This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see or + write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA +*/ #ifndef VOICE_H #define VOICE_H genpo-0.9.8/src/stop.h0000644000076400017500000000233310712174362013633 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef STOP_H #define STOP_H #include #include class Stop { public: QString label; QString name; QColor colour; bool isReed; int midiBank; int midiVoice; bool pulled; unsigned char velocity; int kbdMidiChannel; // set by the progam when stop is pulled int voiceIndex; // index of the voice assigned }; #endif genpo-0.9.8/src/subscriberThread.h0000644000076400017500000000234710664262454016154 0ustar stevesteve// // C++ Interface: subscriberThread // // Description: // // // Author: Steve Merrony,,, <>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef SUBSTHREAD_H #define SUBSTHREAD_H #include #include #include "application.h" #include "console.h" class SubscriberThread { // Q_OBJECT const char* name; pthread_t thread; public: SubscriberThread( volatile Console * ); ~SubscriberThread(); void start(); void stop(bool); void run(); private: volatile Console *sconsole; }; #endif genpo-0.9.8/src/moc_passingButton.cpp0000644000076400017500000000452711045374127016707 0ustar stevesteve/**************************************************************************** ** Meta object code from reading C++ file 'passingButton.h' ** ** Created: Sun Aug 3 19:26:31 2008 ** by: The Qt Meta Object Compiler version 59 (Qt 4.3.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "passingButton.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'passingButton.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 59 #error "This file was generated using the moc from 4.3.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif static const uint qt_meta_data_PassingButton[] = { // content: 1, // revision 0, // classname 0, 0, // classinfo 2, 10, // methods 0, 0, // properties 0, 0, // enums/sets // signals: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x05, // slots: signature, parameters, type, tag, flags 30, 14, 14, 14, 0x08, 0 // eod }; static const char qt_meta_stringdata_PassingButton[] = { "PassingButton\0\0clicked(void*)\0" "slotClicked()\0" }; const QMetaObject PassingButton::staticMetaObject = { { &QPushButton::staticMetaObject, qt_meta_stringdata_PassingButton, qt_meta_data_PassingButton, 0 } }; const QMetaObject *PassingButton::metaObject() const { return &staticMetaObject; } void *PassingButton::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_PassingButton)) return static_cast(const_cast< PassingButton*>(this)); return QPushButton::qt_metacast(_clname); } int PassingButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QPushButton::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: clicked((*reinterpret_cast< void*(*)>(_a[1]))); break; case 1: slotClicked(); break; } _id -= 2; } return _id; } // SIGNAL 0 void PassingButton::clicked(void * _t1) { void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; QMetaObject::activate(this, &staticMetaObject, 0, _a); } genpo-0.9.8/src/toepiston.h0000644000076400017500000000215210712174362014671 0ustar stevesteve// // C++ Interface: toepiston // // Description: // // // Author: Steve Merrony,,, <>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef TOEPISTON_H #define TOEPISTON_H #include /** @author Steve Merrony,,, */ class ToePiston : public Piston { public: int toePiston_ix; int midiChannel; }; #endif genpo-0.9.8/src/piston.h0000644000076400017500000000217210712174362014163 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef PISTON_H #define PISTON_H #include "pistonStop.h" #include const int MAX_PISTON_STOPS = 16; class Piston { public: QString label; QString name; int numPistonStops; bool active; PistonStop pistonStops[MAX_PISTON_STOPS]; QWidget* widgetID; }; #endif genpo-0.9.8/src/moc_midiConfigForm.cpp0000644000076400017500000000335211046031236016726 0ustar stevesteve/**************************************************************************** ** Meta object code from reading C++ file 'midiConfigForm.h' ** ** Created: Tue Aug 5 11:59:42 2008 ** by: The Qt Meta Object Compiler version 59 (Qt 4.3.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "midiConfigForm.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'midiConfigForm.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 59 #error "This file was generated using the moc from 4.3.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif static const uint qt_meta_data_MidiConfigForm[] = { // content: 1, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0 // eod }; static const char qt_meta_stringdata_MidiConfigForm[] = { "MidiConfigForm\0" }; const QMetaObject MidiConfigForm::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_MidiConfigForm, qt_meta_data_MidiConfigForm, 0 } }; const QMetaObject *MidiConfigForm::metaObject() const { return &staticMetaObject; } void *MidiConfigForm::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_MidiConfigForm)) return static_cast(const_cast< MidiConfigForm*>(this)); return QDialog::qt_metacast(_clname); } int MidiConfigForm::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } genpo-0.9.8/src/application.cpp0000644000076400017500000005026011113205362015475 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2008 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include using namespace std; #include #include #include #include #include #include #include #include #include "application.h" #include "customEvents.h" #include "configParser.h" #include "console.h" #include "fileopen.xpm" // constructor ApplicationWindow::ApplicationWindow( volatile Console *shared_console ) : QMainWindow( ) { console = (Console *)shared_console; ///// First, sort out the menu ///// QPixmap openIcon; // , saveIcon, printIcon; openIcon = QPixmap( fileopen ); fileMenu = menuBar()->addMenu( tr("&File") ); midiMenu = menuBar()->addMenu( tr("&MIDI") ); helpMenu = menuBar()->addMenu( tr("&Help") ); openAction = new QAction( QIcon( "fileopen.xpm" ), tr("&Open") , this ); openAction->setShortcut( tr( "Ctrl+O" ) ); connect( openAction, SIGNAL( triggered() ), this, SLOT( choose() ) ); reloadAction = new QAction( tr("&Reload") , this ); reloadAction->setShortcut( tr( "Ctrl+R" ) ); connect( reloadAction, SIGNAL( triggered() ), this, SLOT( reload() ) ); quitAction = new QAction( tr("&Quit") , this ); connect( quitAction, SIGNAL( triggered() ), qApp, SLOT(closeAllWindows()) ); panicAction = new QAction( tr("&Panic") , this ); panicAction->setShortcut( tr( "Ctrl+P" ) ); connect( panicAction, SIGNAL( triggered() ), this, SLOT( midiPanic() ) ); aboutAction = new QAction( tr("&About"), this ); connect( aboutAction, SIGNAL( triggered() ), this, SLOT( about() ) ); fileMenu->addAction( openAction ); fileMenu->addAction( reloadAction ); fileMenu->addSeparator(); fileMenu->addAction( quitAction ); midiMenu->addAction( panicAction ); helpMenu->addAction( aboutAction ); central = new QWidget( this ); setCentralWidget( central ); grid = new QGridLayout( central ); // create widgets we'll need later desc = new QLabel( "", central ); stopGroup = new QButtonGroup( central ); // a single invisible group for ALL the stops stopGroup->setExclusive( false ); pistonGroup = new QButtonGroup( central ); toePistonGroup = new QButtonGroup( central ); couplerGroup = new QButtonGroup( central ); couplerGroup->setExclusive( false ); gcButton = new QPushButton( "G.C. ( )", central ); seq = &(shared_console->seq); op_a = &(shared_console->out_port_a); op_b = &(shared_console->out_port_b); resize( 750, 700 ); if (console->orgFileName != QString::null) { // an organ filename was passed into the program - load it load( console->orgFileName ); } } ApplicationWindow::~ApplicationWindow() { } void ApplicationWindow::choose() { QString fn = QFileDialog::getOpenFileName( this, "Load an organ configuration", "", "Organs (*.org)" ); if ( !fn.isEmpty() ) load( fn ); else statusBar()->showMessage( "Loading aborted", 2000 ); } void ApplicationWindow::load( const QString &fileName ) { // clean out anything that might already be there generalCancel(); for ( int m = 0; m < console->num_divisions; m++ ) { delete divisionLabels[m]; for ( int s = 0; s < console->divisions[m].num_stops; s++ ) delete stopButtons[m][s]; for ( int p = 0; p < console->divisions[m].num_pistons; p++ ) { delete pistonButtons[m][p]; } if ( console->divisions[m].num_pistons > 0 ) { delete pvbox[m]; } if ( console->divisions[m].num_couplers > 0 ) { for (int c = 0; c < console->divisions[m].num_couplers; c++ ) delete couplerCheckBoxes[m][c]; delete cvbox[m]; } } if ( console->num_toePistons > 0 ) { for (int tp = 0; tp < console->num_toePistons; tp ++ ) delete toePistonButtons[tp]; delete tphbox; } QFile f( fileName ); if ( !f.open( QIODevice::ReadOnly ) ) { return; } else { QTextStream ts( &f ); ConfigParser handler; QXmlInputSource source( &f ); QXmlSimpleReader reader; reader.setContentHandler( &handler ); reader.parse( source ); const char accel_keys[4][10] = { { 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/' }, { 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';' }, { 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p' }, { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' } }; handler.copyConfig( console ); desc->setText( console->organName + " (" + console->description + ")" ); grid->addWidget( desc, 0, 0, 1, -1 , Qt::AlignHCenter ); // 1 row, but full width QString midiChan; int num_pistons = 0; int num_couples = 0; int num_toe_pistons = 0; // console names for ( int m = 0; m < console->num_divisions; m++ ) { divisionLabels[m] = new QLabel( "X", central ); divisionLabels[m]->setText( console->divisions[m].name ); divisionLabels[m]->setAlignment( Qt::AlignHCenter ); grid->addWidget( divisionLabels[m], 1, m ); } // stops for ( int m = 0; m < console->num_divisions; m++ ) { for ( int s = 0; s < console->divisions[m].num_stops; s++ ) { stopButtons[m][s] = new QPushButton( central ); stopButtons[m][s]->setMinimumHeight( 15 ); // insert into the invisible group with a hashed ID stopGroup->addButton( stopButtons[m][s], m * MAX_STOPS + s ); stopButtons[m][s]->setObjectName( console->divisions[m].stops[s].label ); stopButtons[m][s]->setCheckable( true ); if ((( console->acceleratorStyle == "QWERTY" ) || ( console->acceleratorStyle != "None" ) ) && ( m < 4 ) && ( s < 10 ) ) { // default accelerators for 1st 10 stops on 1st 4 divisions stopButtons[m][s]->setText( console->divisions[m].stops[s].name + " (&" + accel_keys[m][s] + ")" ); } else { stopButtons[m][s]->setText( console->divisions[m].stops[s].name ); } // colouring - stop colour overrides manual colour stopPalettes[m][s] = new QPalette(); if ( console->divisions[m].stops[s].colour != "lightgrey" ) { stopPalettes[m][s]->setColor( QPalette::Button, console->divisions[m].stops[s].colour ); } else { if ( console->divisions[m].colour != "lightgrey" ) { stopPalettes[m][s]->setColor( QPalette::Button, console->divisions[m].colour ); } } stopButtons[m][s]->setPalette( *stopPalettes[m][s] ); grid->addWidget( stopButtons[m][s], s + 3, m ); } } // one Slot-Handler for all stops stopGroup->disconnect( SIGNAL( buttonClicked( int ) ), this , SLOT( changeStop( int ) ) ); connect( stopGroup, SIGNAL( buttonClicked( int ) ), this, SLOT( changeStop( int ) ) ); // pistons for ( int m = 0; m < console->num_divisions; m++ ) { if ( console->divisions[m].num_pistons > 0 ) { pvbox[m] = new QGridLayout( ); // no parent! for ( int p = 0; p < console->divisions[m].num_pistons; p++ ) { pistons[num_pistons].manual = m; pistons[num_pistons].piston = p; pistonButtons[m][p] = new QPushButton( ); num_pistons++; // insert into the invisible group with a hashed ID pistonGroup->addButton( pistonButtons[m][p], m * MAX_PISTONS + p ); pistonButtons[m][p]->setText( console->divisions[m].pistons[p].label ); pistonButtons[m][p]->setCheckable( false ); //pistonButtons[m][p]->setMinimumHeight( 16 ); pistonButtons[m][p]->setFixedSize( 30, 18 ); pistonButtons[m][p]->show(); //QToolTip::add( pistonButtons[m][p], "(Huh?)" ); pvbox[m]->addWidget((QWidget *)pistonButtons[m][p], p / 3, p % 3 ); // store the widget ID in the shared structure console->divisions[m].pistons[p].widgetID = pistonButtons[m][p]; } grid->addLayout( pvbox[m], 2 + MAX_STOPS, m ); } } pistonGroup->disconnect( SIGNAL( buttonClicked( int ) ), this , SLOT( pistonChanged( int ) ) ); connect( pistonGroup, SIGNAL( buttonClicked( int ) ), this, SLOT( pistonChanged( int ) ) ); // couplers for ( int m = 0; m < console->num_divisions; m++ ) { if ( console->verboseMode ) cout << "Division " << m << ", couplers: " << console->divisions[m].num_couplers << "\n"; if ( console->divisions[m].num_couplers > 0 ) { cvbox[m] = new QVBoxLayout( ); for ( int c = 0; c < console->divisions[m].num_couplers; c++ ) { couples[num_couples].manual = m; couples[num_couples].coupler = c; couplerCheckBoxes[m][c] = new QCheckBox( ); couplerCheckBoxes[m][c]->setMinimumHeight( 14 ); num_couples++; // insert into the invisible group with a hashed ID couplerGroup->addButton( couplerCheckBoxes[m][c], m * MAX_COUPLERS + c ); couplerCheckBoxes[m][c]->setText( console->divisions[m].couplers[c].name ); couplerCheckBoxes[m][c]->setObjectName( console->divisions[m].couplers[c].label ); cvbox[m]->addWidget(( QWidget * )couplerCheckBoxes[m][c] ); } grid->addLayout( cvbox[m], MAX_STOPS + MAX_PISTONS, m ); } } couplerGroup->disconnect( SIGNAL( buttonClicked( int ) ), this , SLOT( couplerChanged( int ) ) ); connect( couplerGroup, SIGNAL( buttonClicked( int ) ), this, SLOT( couplerChanged( int ) ) ); // Toe Pistons if ( console->num_toePistons > 0 ) { tphbox = new QHBoxLayout(); for ( int tp = 0; tp < console->num_toePistons; tp++ ) { toePistons[tp].toePiston_ix = tp; toePistonButtons[tp] = new QPushButton( ); num_toe_pistons++; // insert into the invisible group with a hashed ID toePistonGroup->addButton( toePistonButtons[tp], tp ); toePistonButtons[tp]->setText( console->toePistons[tp].label ); toePistonButtons[tp]->setMinimumHeight( 16 ); toePistonButtons[tp]->setCheckable( false ); toePistonButtons[tp]->show(); tphbox->addWidget(( QWidget * )toePistonButtons[tp] ); console->toePistons[tp].widgetID = toePistonButtons[tp]; } grid->addLayout( tphbox, MAX_STOPS + MAX_PISTONS + MAX_COUPLERS, 0, 1, -1 ); } toePistonGroup->disconnect( SIGNAL( buttonClicked( int ) ), this , SLOT( toePistonChanged( int ) ) ); connect( toePistonGroup, SIGNAL( buttonClicked( int ) ), this, SLOT( toePistonChanged( int ) ) ); // General Cancel grid->addWidget( gcButton, MAX_STOPS + MAX_PISTONS + MAX_COUPLERS + 1, 0 ); gcButton->setShortcut( Qt::Key_Space ); gcButton->disconnect( SIGNAL( clicked() ), this, SLOT( generalCancel() ) ); connect( gcButton, SIGNAL( clicked() ), this, SLOT( generalCancel() ) ); console->orgFileName = fileName; grid->setVerticalSpacing( 3 ); // setCaption( APP_NAME + ": " + console.organName ); statusBar()->showMessage( "Loaded configuration: " + console->organName, 4000 ); } } void ApplicationWindow::closeEvent( QCloseEvent* ce ) { ce->accept(); if (console->verboseMode) cout << "Normal user exit\n"; } void ApplicationWindow::reload() { if (console->orgFileName != QString::null) { // remove child widgets for (int m = 0; mnum_divisions; m++) { for (int s = 0; sdivisions[m].num_stops; s++) { stopButtons[m][s]->hide(); } } load( console->orgFileName ); } else { statusBar()->showMessage( "No configuration (.org) file loaded - cannot reload!" ); } } void ApplicationWindow::midiPanic() { for (int mc = 0; mc < console->num_out_ports * MIDI_CHANNELS_PER_PORT ; mc++) { silenceMidiChannel( mc ); } } void ApplicationWindow::silenceMidiChannel( int mc ) { snd_seq_event_t ano_event; int rc; snd_seq_ev_clear( &ano_event ); if (mc my_port ); } else { snd_seq_ev_set_source( &ano_event, op_b->my_port ); } rc = snd_seq_event_output_direct( seq->seq_handle, &ano_event ); if (rc < 0) { cout << "Error: sending sequencer controller event (" << snd_strerror( rc ) << ")\n"; } } void ApplicationWindow::about() { QMessageBox::about( this, "About GENPO", "
GENPO

" "Version: " APP_VERSION "

" "© 2003 - 2008 Steve Merrony

" "Please see
" "http://genpo.sourceforge.net/
" "for more information
" ); } void ApplicationWindow::changeStop( int stopIDhash ) { int m, s; m = stopIDhash / MAX_STOPS; // manual number s = stopIDhash % MAX_STOPS; // stop number in that manual if (stopButtons[m][s]->isChecked()) { // handle single-stop mode if (console->singleStopMode) { generalCancel(); this->update(); } pullStop( m, s ); } else { pushStop( m, s ); } } void ApplicationWindow::changePiston( int m, int pc ) { // do nothing if there are no pistons for this manual //if ( (m<=console->num_divisions) && (console->divisions[m].num_pistons > 0) && (pc <=console->divisions[m].num_pistons)) { if ( m <= console->num_divisions ) if ( console->divisions[m].num_pistons > 0 ) if ( pc <= console->divisions[m].num_pistons ) { //dumpVoices(); // clear all stops on this manual for ( int s = 0; s < console->divisions[m].num_stops; s++ ) { if ( stopButtons[m][s]->isChecked() ) { stopButtons[m][s]->setChecked( FALSE ); pushStop( m, s ); } } //dumpVoices(); // pull the stops for this piston for ( int p = 0; p < console->divisions[m].pistons[pc].numPistonStops; p++ ) { for ( int s = 0; s < console->divisions[m].num_stops; s++ ) { if ( QString::compare( console->divisions[m].pistons[pc].pistonStops[p].stopLabel, console->divisions[m].stops[s].label ) == 0 ) { stopButtons[m][s]->setChecked( TRUE ); pullStop( m, s ); } } } } } void ApplicationWindow::pistonChanged( int pistonIDhash ) { int m, p; m = pistonIDhash / MAX_PISTONS; p = pistonIDhash % MAX_PISTONS; changePiston( m, p ); // clear the button pistonButtons[m][p]->setChecked( false ); //printf( "Done\t" ); //dumpVoices(); } void ApplicationWindow::changeToePiston( int tp_ix ) { generalCancel(); // pull the stops for this piston for (int p = 0; p < console->toePistons[tp_ix].numPistonStops; p++) { for (int m = 0; m < console->num_divisions; m++) { for (int s = 0; s < console->divisions[m].num_stops; s++) { if ( QString::compare( console->toePistons[tp_ix].pistonStops[p].stopLabel, console->divisions[m].stops[s].label ) == 0 ) { stopButtons[m][s]->setChecked( TRUE ); pullStop( m, s ); } } } } } void ApplicationWindow::toePistonChanged( int tpix ) { changeToePiston( tpix ); // clear the button toePistonButtons[tpix]->setChecked(FALSE); //printf( "Done\t" ); //dumpVoices(); } void ApplicationWindow::couplerChanged( int couplerIDhash ) { int m, c; m = couplerIDhash / MAX_COUPLERS; c = couplerIDhash % MAX_COUPLERS; //couple_t *c = (couple_t *)coupler; if (console->verboseMode) cout << "Coupler " << c <<" on manual " << m << " changed\n"; console->divisions[m].couplers[c].active = !console->divisions[m].couplers[c].active; } void ApplicationWindow::generalCancel() { // stops and coupler boxes for ( int m = 0; m < console->num_divisions; m++ ) { for ( int s = 0; s < console->divisions[m].num_stops; s++ ) { stopButtons[m][s]->setChecked( false ); pushStop( m, s ); } for ( int c = 0; c < console->divisions[m].num_couplers; c++ ) { couplerCheckBoxes[m][c]->setChecked( FALSE ); console->divisions[m].couplers[c].active = FALSE; } } } void ApplicationWindow::pullStop( int m, int s ) { // activate a stop int rc, man_channel, new_channel; snd_seq_event_t pc_event; QString msg; console->divisions[m].stops[s].pulled = TRUE; man_channel = console->divisions[m].midiChannel; // dumpVoices(); // find 1st free slot for a new voice new_channel = 0; while (new_channel<=console->num_out_ports*MIDI_CHANNELS_PER_PORT && console->voices[new_channel].active) new_channel++; //printf( "Candidate channel for new voice: %d\n", new_channel ); if (new_channel >= console->num_out_ports*MIDI_CHANNELS_PER_PORT) { stopButtons[m][s]->setChecked( FALSE ); if (console->num_out_ports == 0) msg = "Warning: Too many stops pulled - GENPO thinks no synthesizers are connected!"; else msg = "Warning: Too many stops pulled (16 per connected synthesizer are allowed)."; statusBar()->showMessage( msg ); cout << qPrintable( msg ) << endl; } else { statusBar()->clearMessage(); console->voices[new_channel].active = TRUE; console->voices[new_channel].manual_channel = man_channel; console->voices[new_channel].velocity = console->divisions[m].stops[s].velocity; console->voices[new_channel].synth = 0; // *** JUST using 0 for now ***<<<<<<<<< console->voices[new_channel].bank = console->divisions[m].stops[s].midiBank; console->voices[new_channel].voice = console->divisions[m].stops[s].midiVoice; // store the assigned voice in the stop console->divisions[m].stops[s].kbdMidiChannel = man_channel; console->divisions[m].stops[s].voiceIndex = new_channel; // send a MIDI event to change the program for this voice (channel) snd_seq_ev_clear( &pc_event ); if ( new_channel < MIDI_CHANNELS_PER_PORT) { snd_seq_ev_set_controller( &pc_event, new_channel, 0, console->divisions[m].stops[s].midiBank ); snd_seq_ev_set_subs( &pc_event ); snd_seq_ev_set_direct( &pc_event ); snd_seq_ev_set_source( &pc_event, op_a->my_port ); } else { snd_seq_ev_set_controller( &pc_event, new_channel - MIDI_CHANNELS_PER_PORT, 0, console->divisions[m].stops[s].midiBank ); snd_seq_ev_set_subs( &pc_event ); snd_seq_ev_set_direct( &pc_event ); snd_seq_ev_set_source( &pc_event, op_b->my_port ); } rc = snd_seq_event_output_direct( seq->seq_handle, &pc_event ); if (rc < 0) { cout << "Error: sending sequencer controller event (" << snd_strerror( rc ) << ")\n"; } if (new_channel < MIDI_CHANNELS_PER_PORT) snd_seq_ev_set_pgmchange( &pc_event, new_channel, console->divisions[m].stops[s].midiVoice ); else snd_seq_ev_set_pgmchange( &pc_event, new_channel - 16, console->divisions[m].stops[s].midiVoice ); rc = snd_seq_event_output_direct( seq->seq_handle, &pc_event ); if (rc < 0) { cout << "Error: sending sequencer pgm change event (" << snd_strerror( rc ) << ")\n"; } if (console->verboseMode) cout << "Voice " << console->divisions[m].stops[s].midiVoice << " set on channel " << new_channel << "\n"; } } void ApplicationWindow::pushStop( int m, int s ) { // turn off a stop int old_voice = console->divisions[m].stops[s].voiceIndex; // this if should not be required it stops a crash that shouldn't happen <=========================== if (old_voice >= 0 && old_voice < console->num_out_ports*MIDI_CHANNELS_PER_PORT) { console->divisions[m].stops[s].pulled = FALSE; console->voices[old_voice].active = FALSE; console->voices[old_voice].manual_channel = FREE_CHANNEL; console->divisions[m].stops[s].kbdMidiChannel = FREE_CHANNEL; console->divisions[m].stops[s].kbdMidiChannel = FREE_CHANNEL; // turn all notes off on the Voice silenceMidiChannel( old_voice ); } if (console->verboseMode) cout << "PushStop( " << m << ", " << s <<" )\n"; } void ApplicationWindow::dumpVoices() { for (int c = 0; c < console->num_out_ports*MIDI_CHANNELS_PER_PORT; c++) { cout << c << ":" << console->voices[c].active << "/" << console->voices[c].manual_channel << "/" << console->voices[c].voice << ", "; } cout << "\n"; } genpo-0.9.8/src/application.h0000644000076400017500000000615311112764417015156 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2008 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef APPLICATION_H #define APPLICATION_H #include #include #include #include #include #include #include #include #include //Added by qt3to4: #include #include #include #include #include #include "console.h" #define APP_NAME "GENPO - The General Purpose Organ" #define APP_VERSION "0.9.8" class ApplicationWindow: public QMainWindow { Q_OBJECT public: ApplicationWindow( volatile Console * ); ~ApplicationWindow(); Console *console; public slots: void changeStop( int ); void pistonChanged( int ); void couplerChanged( int ); void toePistonChanged( int ); void generalCancel(); protected: void closeEvent( QCloseEvent* ); private slots: void choose(); void load( const QString &fileName ); void reload(); void midiPanic(); void about(); void pullStop( int, int ); void pushStop( int, int ); void silenceMidiChannel( int ); void dumpVoices(); void changePiston( int, int ); void changeToePiston( int ); private: QMenu *fileMenu, *midiMenu, *helpMenu; QAction *openAction, *reloadAction, *quitAction, *panicAction, *aboutAction; QString filename; QWidget *central; QLabel *desc; QGridLayout *grid; QHBoxLayout *mcBox[MAX_DIVISIONS]; //QVBoxLayout *pvbox[MAX_DIVISIONS]; QGridLayout *pvbox[MAX_DIVISIONS]; QVBoxLayout *cvbox[MAX_DIVISIONS]; QLabel *divisionLabels[MAX_DIVISIONS]; QButtonGroup *stopGroup; QButtonGroup *pistonGroup; QButtonGroup *toePistonGroup; QButtonGroup *couplerGroup; QPushButton *stopButtons[MAX_DIVISIONS][MAX_STOPS]; QPalette *stopPalettes[MAX_DIVISIONS][MAX_STOPS]; QPushButton *pistonButtons[MAX_DIVISIONS][MAX_PISTONS]; QCheckBox *couplerCheckBoxes[MAX_DIVISIONS][MAX_COUPLERS]; QHBoxLayout *tphbox; QPushButton *toePistonButtons[MAX_TOE_PISTONS]; QPushButton *gcButton; volatile midi_seq *seq; volatile midi_port *op_a, *op_b; typedef struct { int manual, coupler; } couple_t; couple_t couples[MAX_DIVISIONS * MAX_COUPLERS]; typedef struct { int manual, piston; } piston_t; piston_t pistons[MAX_DIVISIONS * MAX_PISTONS]; ToePiston toePistons[MAX_TOE_PISTONS]; }; #endif genpo-0.9.8/src/genpo.pro0000644000076400017500000000140711046150312014316 0ustar stevesteve# File generated by kdevelop's qmake manager. # ------------------------------------------- # Subdir relative project main directory: . # Target is an application: genpo HEADERS += customEvents.h \ voice.h \ midiThread.h \ piston.h \ pistonStop.h \ stop.h \ coupler.h \ division.h \ console.h \ application.h \ configParser.h \ toepiston.h SOURCES += console.cpp \ midiThread.cpp \ application.cpp \ main.cpp \ configParser.cpp QMAKE_CXXFLAGS_WARN_ON += -Wno-non-virtual-dtor TEMPLATE = app CONFIG += qt thread warn_on TARGET = genpo LIBS += -lasound #The following line was inserted by qt3to4 QT += xml genpo-0.9.8/src/fileopen.xpm0000644000076400017500000000064010221257331015014 0ustar stevesteve/* XPM */ static const char *fileopen[] = { " 16 13 5 1", ". c #040404", "# c #808304", "a c None", "b c #f3f704", "c c #f3f7f3", "aaaaaaaaa...aaaa", "aaaaaaaa.aaa.a.a", "aaaaaaaaaaaaa..a", "a...aaaaaaaa...a", ".bcb.......aaaaa", ".cbcbcbcbc.aaaaa", ".bcbcbcbcb.aaaaa", ".cbcb...........", ".bcb.#########.a", ".cb.#########.aa", ".b.#########.aaa", "..#########.aaaa", "...........aaaaa" }; genpo-0.9.8/src/customEvents.h0000644000076400017500000000176711045612256015356 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef CUSTOMEVENTDATA_H #define CUSTOMEVENTDATA_H #include const int PRESET_CHANGE_EVENT = QEvent::User + 1; #define MIDIPORTS_FOUND_EVENT 100001 #endif genpo-0.9.8/src/division.h0000644000076400017500000000241510607363475014503 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony // This program is free software; you may redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2 of the License, or (at your option) // any later version. // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for // more details. // You should have received a copy of the GNU General Public License along with // this program; if not, write to the Free Software Foundation, Inc., 59 Temple // Place, Suite 330, Boston, MA 02111-1307 USA #ifndef DIVISION_H #define DIVISION_H #include "stop.h" #include "piston.h" #include "coupler.h" #include #include const int MAX_STOPS = 32; const int MAX_COUPLERS = 8; const int MAX_PISTONS = 12; class Division { public: QString label; QString name; QColor colour; int midiChannel; int num_stops; Stop stops[MAX_STOPS]; int num_pistons; Piston pistons[MAX_PISTONS]; int num_couplers; Coupler couplers[MAX_COUPLERS]; }; #endif genpo-0.9.8/src/console.cpp0000644000076400017500000000250710712174362014646 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "console.h" Console::Console() { orgFileName = ""; organName = ""; verboseMode = FALSE; singleStopMode = FALSE; requestedOutput = FALSE; soundFont = ""; description = ""; num_divisions = 0; num_toePistons = 0; for (int c = 0; c < MAX_INPUT_CHANNELS; c++) channel_division_map[c] = FREE_CHANNEL; num_out_ports = 0; } Console::~Console() { // printf( "\nDebug: destroying a Console\n" ); } genpo-0.9.8/src/subscriberThread.cpp0000644000076400017500000000462010712174362016475 0ustar stevesteve// // C++ Implementation: subscriberThread // // Description: // // // Author: Steve Merrony,,, <>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include #include #include "console.h" #include "customEvents.h" #include "subscriberThread.h" #include "pistonEventData.h" #include using namespace std; SubscriberThread::SubscriberThread( volatile Console *shared_console ) { sconsole = shared_console; if (sconsole->verboseMode) cout << "MIDI Subscriber thread starting up\n"; } SubscriberThread::~SubscriberThread() { cout << "Destroying MIDI Subscriber thread\n"; pthread_exit( NULL ); } static void* run(void* mops) { Console *tconsole = (Console *)mops; midi_port *ip, *op; ip = &(tconsole->inp_port); op = &(tconsole->out_port); snd_seq_event_t *ev; while (TRUE) { if (snd_seq_event_input( op->seq_handle, &ev ) < 0) { //cout << "Error fetching MIDI event - notes may have been lost (subscriber thread)\n"; } else { switch (ev->type) { case SND_SEQ_EVENT_PORT_SUBSCRIBED: cout << "MIDI port subscribed\n"; break; case SND_SEQ_EVENT_PORT_UNSUBSCRIBED: int dest = ev->data.connect.dest.client; cout << "MIDI port unsubscribed " << dest << endl; break; } snd_seq_free_event( ev ); } } } void SubscriberThread::start() { pthread_attr_t* attributes = 0; if (pthread_create(&thread, attributes, ::run, (void *)sconsole )) perror("creating subscriber thread failed:"); } void SubscriberThread::stop(bool force = TRUE) { if (force) { pthread_cancel(thread); } } genpo-0.9.8/src/voice.h0000644000076400017500000000177610712174362013765 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef VOICE_H #define VOICE_H class Voice { public: bool active; int manual_channel; unsigned char velocity; int synth; int bank; int voice; }; #endif genpo-0.9.8/src/console.h0000644000076400017500000000460011046032161014276 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef CONSOLE_H #define CONSOLE_H #include "division.h" #include "toepiston.h" #include "voice.h" #include #include const int MAX_DIVISIONS = 8; const int MIDI_CHANNELS_PER_PORT = 16; const int MAX_INPUT_CHANNELS = 16; // This is not necessarily either MAX_DIVISIONS or M_C_P_P... const int MAX_MIDI_OUTPUT_PORTS = 2; // max output ports/synths const int MAX_MIDI_VOICES = MIDI_CHANNELS_PER_PORT * MAX_MIDI_OUTPUT_PORTS; const int MAX_TOE_PISTONS = 16; const int FREE_CHANNEL = -1; // indicates that channel is unallocated typedef struct { int my_client; int seq_client; snd_seq_t *seq_handle; snd_seq_event_t ev; } midi_seq; typedef struct { int my_port; int seq_port; } midi_port; /* N.B. Any additions here will probably need to be handled in TWO places: configParser::characters and configParser::copyConfig */ class Console { public: Console(); ~Console(); QString orgFileName; QString organName; bool verboseMode; bool singleStopMode; bool requestedOutput; int requestedOutClient; int requestedOutPort; QString soundFont; QString description; QString acceleratorStyle; int num_divisions; Division divisions[MAX_DIVISIONS]; int channel_division_map[MAX_INPUT_CHANNELS]; // store the manual assoc with each channel for fast lookup int num_toePistons; ToePiston toePistons[MAX_TOE_PISTONS]; Voice voices[MAX_MIDI_VOICES]; midi_seq seq; midi_port inp_port; midi_port out_port_a, out_port_b; int num_out_ports; }; #endif genpo-0.9.8/src/main.cpp0000644000076400017500000000657211046150216014127 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include using namespace std; #include #include #include #include "application.h" #include "console.h" #include "midiThread.h" int main( int argc, char ** argv ) { Console *console = new Console(); QApplication a( argc, argv ); QString argStr; QString clientStr; QString portStr; console->orgFileName = QString::null; console->verboseMode = FALSE; console->requestedOutput = FALSE; // handle any arguments passed in if ( a.argc() > 1 ) { for (int arg = 1; arg: Hint that genpo should try to send output to a particular ALSA device\n\ --singlestop Only permit one stop at a time (incompatible with pistons)\n\ \n\ If a filename (ending in '.org') is specifield genpo will try to load that organ specification at startup.\n\ \n\ For more information please visit http://genpo.sourceforge.net/\n"; exit(0); } if (argStr.endsWith( ".org" )) { console->orgFileName = argStr; continue; } if (argStr.compare( "--verbose" ) == 0) { console->verboseMode = TRUE; continue; } if (argStr.compare( "--singlestop" ) == 0) { console->singleStopMode = TRUE; continue; } if (argStr.startsWith( "--outport=" )) { // syntax is : console->requestedOutput = TRUE; clientStr = argStr.mid( argStr.indexOf( QRegExp( "=" ) ) +1, argStr.indexOf( QRegExp( ":" )) - argStr.indexOf( QRegExp( "=" ))-1 ); console->requestedOutClient = clientStr.toInt(); portStr = argStr.right( argStr.length() - argStr.indexOf( QRegExp( ":" ) ) -1); console->requestedOutPort = portStr.toInt(); // printf( "\n%s yields: Client: <%s>, Port: <%s>\n", argStr.ascii(), clientStr.ascii(), portStr.ascii() ); } } } ApplicationWindow * mw = new ApplicationWindow( console ); //mw->setCaption( APP_NAME ); mw->show(); a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); MidiThread *mThread = new MidiThread( (QObject *) console ); mThread->start(); // connect thread preset event to mainwindow here? QObject::connect( mThread, SIGNAL( pistonChangeSignal(int, int) ), mw, SLOT( changePiston( int, int ) ) ); QObject::connect( mThread, SIGNAL( toePistonChangeSignal(int) ), mw, SLOT( changeToePiston( int ) ) ); return a.exec(); } genpo-0.9.8/src/midiThread.cpp0000644000076400017500000003470311110571615015254 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007,2008 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ /****************************************************************************** ** midiThread - this thread handles all the MIDI input from the keyboard(s) ******************************************************************************/ #include #include //Added by qt3to4: #include #include "console.h" #include "customEvents.h" #include "midiThread.h" //#include "subscriberThread.h" #include using namespace std; MidiThread::MidiThread( QObject *shared_data ) { tconsole = (Console *)shared_data; if ( tconsole->verboseMode ) cout << "MIDI Thread starting up\n"; } MidiThread::~MidiThread() { if ( tconsole->verboseMode ) cout << "Destroying MIDI thread\n"; } void MidiThread::connectDefaultPorts( midi_seq *seq, midi_port *ip, midi_port *op_a, midi_port *op_b, Console *tconsole ) { // scan all the other MIDI ports and link all readable ones to our input // and first writeable one to our output snd_seq_client_info_t *cinfo; snd_seq_port_info_t *pinfo; snd_seq_port_subscribe_t *subs; snd_seq_addr_t addr; int err; snd_seq_client_info_alloca( &cinfo ); snd_seq_port_info_alloca( &pinfo ); snd_seq_client_info_set_client( cinfo, -1 ); while ( snd_seq_query_next_client( seq->seq_handle, cinfo ) >= 0 ) { if ( snd_seq_client_info_get_client( cinfo ) != seq->my_client ) { // ignore our own port! /* reset query info */ snd_seq_port_info_set_client( pinfo, snd_seq_client_info_get_client( cinfo ) ); snd_seq_port_info_set_port( pinfo, -1 ); while ( snd_seq_query_next_port( seq->seq_handle, pinfo ) >= 0 ) { // Is this an output port we can send MIDI to? if ((( snd_seq_port_info_get_capability( pinfo ) & ( SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE ) ) == ( SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE ) ) && // only interested in synthesizer devices (hardware or software) (( snd_seq_port_info_get_type( pinfo ) & ( SND_SEQ_PORT_TYPE_SYNTHESIZER ) ) == ( SND_SEQ_PORT_TYPE_SYNTHESIZER ) ) || // or the user has specified this port ( tconsole->requestedOutput && ( tconsole->requestedOutClient == snd_seq_client_info_get_client( cinfo ) ) && (( tconsole->requestedOutPort == snd_seq_port_info_get_port( pinfo ) ) || ( tconsole->requestedOutPort + 1 == snd_seq_port_info_get_port( pinfo ) ) ) ) ) { if ( tconsole->verboseMode ) cout << "Output port: " << snd_seq_client_info_get_client( cinfo ) << ":" << snd_seq_port_info_get_port( pinfo ) << " " << snd_seq_port_info_get_name( pinfo ) << "(" << snd_seq_port_info_get_midi_channels( pinfo ) << " channels) "; if (( tconsole->num_out_ports < MAX_MIDI_OUTPUT_PORTS ) && (( !tconsole->requestedOutput ) || ( tconsole->requestedOutput && ( tconsole->requestedOutClient == snd_seq_client_info_get_client( cinfo ) ) ) ) ) { snd_seq_port_subscribe_alloca( &subs ); addr.client = seq->my_client; switch ( tconsole->num_out_ports ) { case 0: addr.port = op_a->my_port; break; case 1: addr.port = op_b->my_port; break; } snd_seq_port_subscribe_set_sender( subs, &addr ); addr.client = snd_seq_client_info_get_client( cinfo ); addr.port = snd_seq_port_info_get_port( pinfo ); snd_seq_port_subscribe_set_dest( subs, &addr ); snd_seq_port_subscribe_set_queue( subs, 1 ); snd_seq_port_subscribe_set_time_update( subs, 1 ); snd_seq_port_subscribe_set_time_real( subs, 1 ); if (( err = snd_seq_subscribe_port( seq->seq_handle, subs ) ) < 0 ) { cerr << "Cannot subscribe announce port: " << snd_strerror( err ) << endl; } else { tconsole->num_out_ports++; if ( tconsole->verboseMode ) cout << " - Connecting"; } } if ( tconsole->verboseMode ) cout << endl; } // Is this an input port we can read MIDI from? if ((( snd_seq_port_info_get_capability( pinfo ) & ( SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ ) ) == ( SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ ) ) && // only interested in real MIDI devices (( snd_seq_port_info_get_type( pinfo ) & ( SND_SEQ_PORT_TYPE_MIDI_GENERIC ) ) == ( SND_SEQ_PORT_TYPE_MIDI_GENERIC ) ) ) { if ( tconsole->verboseMode ) cout << "Input port: " << snd_seq_client_info_get_client( cinfo ) << ":" << snd_seq_port_info_get_port( pinfo ) << " " << snd_seq_port_info_get_name( pinfo ) << "(" << snd_seq_port_info_get_midi_channels( pinfo ) << " channels) - Connecting\n"; // link all input ports to our port... snd_seq_port_subscribe_alloca( &subs ); addr.client = snd_seq_client_info_get_client( cinfo ); addr.port = snd_seq_port_info_get_port( pinfo ); snd_seq_port_subscribe_set_sender( subs, &addr ); addr.client = seq->my_client; addr.port = ip->my_port; snd_seq_port_subscribe_set_dest( subs, &addr ); snd_seq_port_subscribe_set_queue( subs, 1 ); snd_seq_port_subscribe_set_time_update( subs, 1 ); snd_seq_port_subscribe_set_time_real( subs, 1 ); if (( err = snd_seq_subscribe_port( seq->seq_handle, subs ) ) < 0 ) { cerr << "Cannot subscribe announce port: " << snd_strerror( err ) << endl; } } } // end while each port } // end-if } // end while each client } void MidiThread::run( ) { int res; midi_seq *seq; midi_port *ip, *op_a, *op_b; seq = &( tconsole->seq ); ip = &( tconsole->inp_port ); op_a = &( tconsole->out_port_a ); op_b = &( tconsole->out_port_b ); // Create the ALSA input port via which GENPO will receive MIDI // open the ALSA device res = snd_seq_open( &seq->seq_handle, "hw", SND_SEQ_OPEN_INPUT | SND_SEQ_OPEN_OUTPUT, 0 ); snd_seq_set_client_name( seq->seq_handle, "GENPO" ); // get a port seq->my_client = snd_seq_client_id( seq->seq_handle ); // create a new ALSA midi input port on our device ip->my_port = snd_seq_create_simple_port( seq->seq_handle, "GENPO Input", SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE // SND_SEQ_PORT_CAP_READ, , SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION ); if ( ip->my_port < 0 ) { perror( "Error creating input port" ); exit( 1 ); } // Create the ALSA output ports thru which GENPO sends all MIDI output // create a new ALSA midi output port op_a->my_port = snd_seq_create_simple_port( seq->seq_handle, "GENPO Output A", SND_SEQ_PORT_CAP_SUBS_READ | SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ, SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION ); if ( op_a->my_port < 0 ) { perror( "Error creating output port A" ); exit( 1 ); } // create another new ALSA midi output port op_b->my_port = snd_seq_create_simple_port( seq->seq_handle, "GENPO Output B", SND_SEQ_PORT_CAP_SUBS_READ | SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_READ, SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION ); if ( op_b->my_port < 0 ) { perror( "Error creating output port B" ); exit( 1 ); } connectDefaultPorts( seq, ip, op_a, op_b, tconsole ); //SubscriberThread *sThread = new SubscriberThread( tconsole ); //sThread->start(); snd_seq_event_t *ev; unsigned char saved_note; // use this to avoid type-conversions to MIDI types int src_manual = 0, src_chan; //PistonEventData * pe; /* Do not set any runtime variables dependent upon the organ definition before the next loop. They may change as the organ definition is loaded - this may not have been completed by this point! */ /////////////////// the main note-handling loop ////////////////// // REMEMBER - THIS LOOP IS TIME-CRITICAL!!! while ( TRUE ) { if ( snd_seq_event_input( seq->seq_handle, &ev ) < 0 ) { cout << "Error fetching MIDI event - notes may have been lost\n"; } switch ( ev->type ) { // if it's a controller event, but not one of the type we care about, // then we just throw it away (otherwise it's processed like a note) case SND_SEQ_EVENT_CONTROLLER: // too wide-ranging if ( !(( ev->data.control.param == 4 ) || // foot controller ( ev->data.control.param == 7 ) || // Volume ( ev->data.control.param == 11 ) ) ) // Expression break; case SND_SEQ_EVENT_NOTEON: case SND_SEQ_EVENT_NOTEOFF: // case SND_SEQ_EVENT_CHANPRESS: snd_seq_ev_set_subs( ev ); snd_seq_ev_set_direct( ev ); src_chan = ev->data.note.channel; src_manual = tconsole->channel_division_map[src_chan]; if ( src_manual != FREE_CHANNEL ) { // send note to all active voices for this manual for ( int v = 0; v < MAX_MIDI_VOICES; v++ ) { if ( tconsole->voices[v].active && ( tconsole->voices[v].manual_channel == src_chan ) ) { // adjust velocity if not a note-off if ( ev->data.note.velocity != 0 ) ev->data.note.velocity = tconsole->voices[v].velocity; if ( v < MIDI_CHANNELS_PER_PORT ) { //on first synth ev->data.note.channel = v; snd_seq_ev_set_source( ev, op_a->my_port ); } else { // on second synth ev->data.note.channel = v - MIDI_CHANNELS_PER_PORT; snd_seq_ev_set_source( ev, op_b->my_port ); } snd_seq_event_output_direct( seq->seq_handle, ev ); } } // send note to all coupled active voices for this manual saved_note = ev->data.note.note; for ( int cplr = 0; cplr < tconsole->divisions[src_manual].num_couplers; cplr++ ) { if ( tconsole->divisions[src_manual].couplers[cplr].active ) { for ( int v = 0; v < MAX_MIDI_VOICES; v++ ) { if ( tconsole->voices[v].active && ( tconsole->voices[v].manual_channel == tconsole->divisions[src_manual].couplers[cplr].toChannel ) ) { // adjust velocity if not a note-off if ( ev->data.note.velocity != 0 ) ev->data.note.velocity = tconsole->voices[v].velocity; switch ( tconsole->divisions[src_manual].couplers[cplr].length ) { case 16: ev->data.note.note -= 12; break; case 4: ev->data.note.note += 12; break; //default: } if ( v < MIDI_CHANNELS_PER_PORT ) { // first synth ev->data.note.channel = v; snd_seq_ev_set_source( ev, op_a->my_port ); } else { // second synth ev->data.note.channel = v - MIDI_CHANNELS_PER_PORT; snd_seq_ev_set_source( ev, op_b->my_port ); } snd_seq_event_output_direct( seq->seq_handle, ev ); ev->data.note.note = saved_note; } //end-if } //end-for } //end-if } //end-for } //end-if break; case SND_SEQ_EVENT_PGMCHANGE: { // This is intended to handle Preset changes coming from a MIDI keyboard // OK - we're not going to reinvent the wheel here, we'll simply send a special event for // the appropriate Preset to the main application // but we shouldn't pass events that cannot be used... int man = tconsole->channel_division_map[ev->data.control.channel]; if ( tconsole->verboseMode ) cout << "PgmChange received from ALSA channel: " << ( int ) ev->data.control.channel << ", decodes to manual: " << man << endl; if ( man != FREE_CHANNEL ) { // only process if it's from one of our used divisions // cout << "Requested PC: " << ev->data.control.value << " Num_pistons: " << tconsole->divisions[man].num_pistons << endl; // check if the preset requested really exists in this division if ( ev->data.control.value < tconsole->divisions[man].num_pistons ) { // values start at 0 if ( tconsole->verboseMode ) cout << " Piston " << qPrintable( tconsole->divisions[man].pistons[ev->data.control.value].label ) << endl; emit pistonChangeSignal( man, ev->data.control.value ); } } else { // check for ToePistons int realChannel = ev->data.control.channel + 1; // ALSA channel numbers start at 0... for ( int tp = 0; tp < tconsole->num_toePistons; tp++ ) { if ( realChannel == tconsole->toePistons[tp].midiChannel ) { emit toePistonChangeSignal( ev->data.control.value ); /* pe = new PistonEventData(); pe->pe_manual = TOE_PISTON; pe->pe_piston = ev->data.control.value; QCustomEvent* myEvent = new QCustomEvent( PRESET_CHANGE_EVENT ); myEvent->setData(( void * ) pe ); QApplication::postEvent( qApp->mainWidget(), myEvent ); */ } } } break; } case SND_SEQ_EVENT_PORT_SUBSCRIBED: { tconsole->num_out_ports++; if ( tconsole->verboseMode ) { int dest = ev->data.connect.dest.client; int port = ev->data.connect.dest.port; cout << "MIDI port subscribed " << dest << ":" << port << endl; } break; } case SND_SEQ_EVENT_PORT_UNSUBSCRIBED: { tconsole->num_out_ports--; if ( tconsole->verboseMode ) { int dest = ev->data.connect.dest.client; cout << "MIDI port unsubscribed " << dest << endl; } break; } // Everything else is thrown away. //default: } // end-switch snd_seq_free_event( ev ); } } /* void MidiThread::start() { pthread_attr_t* attributes = 0; if ( pthread_create( &thread, attributes, ::run, ( void * )sconsole ) ) perror( "creating thread failed:" ); } void MidiThread::stop( bool force = TRUE ) { if ( force ) { pthread_cancel( thread ); } } */ genpo-0.9.8/src/configParser.h0000644000076400017500000000315410712174362015272 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef CONFIGPARSER_H #define CONFIGPARSER_H #include "console.h" #include #include const unsigned char DEFAULT_VELOCITY = 64; class ConfigParser : public QXmlDefaultHandler { public: bool startDocument(); bool startElement( const QString&, const QString&, const QString&, const QXmlAttributes& ); bool characters( const QString& ); bool endElement( const QString&, const QString&, const QString& ); bool endDocument(); bool copyConfig( Console * ); //Console console; private: Console console; QString indent; QString elName; int man_count; int stop_count; int coupler_count; int piston_count; int piston_stop_count; int toe_piston_count; bool thumb_piston; bool toe_piston; }; #endif genpo-0.9.8/src/pistonStop.h0000644000076400017500000000175210712174362015034 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004,2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef PISTONSTOP_H #define PISTONSTOP_H #include class PistonStop { public: QString divisionLabel; QString stopLabel; }; #endif genpo-0.9.8/src/coupler.h0000644000076400017500000000227710712174362014326 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003,2004 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef COUPLER_H #define COUPLER_H class QString; class Coupler { public: QString label; QString name; QString coupleTo; int length; // for octave couples int fromChannel; // set by the program - the Midi channel to copy events from int toChannel; // set by the program - the Midi channel to copy events to bool active; }; #endif genpo-0.9.8/src/midiThread.h0000644000076400017500000000243511046150216014714 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2007 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef MIDITHREAD_H #define MIDITHREAD_H #include #include "application.h" #include "console.h" class MidiThread : public QThread { Q_OBJECT public: MidiThread( QObject * ); ~MidiThread(); signals: void pistonChangeSignal( int , int ); void toePistonChangeSignal( int ); protected: void run(); private: Console *tconsole; void connectDefaultPorts( midi_seq *, midi_port *, midi_port *, midi_port *, Console * ); }; #endif genpo-0.9.8/src/moc_passingCheckBox.cpp0000644000076400017500000000455711045374127017125 0ustar stevesteve/**************************************************************************** ** Meta object code from reading C++ file 'passingCheckBox.h' ** ** Created: Sun Aug 3 19:26:31 2008 ** by: The Qt Meta Object Compiler version 59 (Qt 4.3.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "passingCheckBox.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'passingCheckBox.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 59 #error "This file was generated using the moc from 4.3.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif static const uint qt_meta_data_PassingCheckBox[] = { // content: 1, // revision 0, // classname 0, 0, // classinfo 2, 10, // methods 0, 0, // properties 0, 0, // enums/sets // signals: signature, parameters, type, tag, flags 17, 16, 16, 16, 0x05, // slots: signature, parameters, type, tag, flags 32, 16, 16, 16, 0x08, 0 // eod }; static const char qt_meta_stringdata_PassingCheckBox[] = { "PassingCheckBox\0\0clicked(void*)\0" "slotClicked()\0" }; const QMetaObject PassingCheckBox::staticMetaObject = { { &QCheckBox::staticMetaObject, qt_meta_stringdata_PassingCheckBox, qt_meta_data_PassingCheckBox, 0 } }; const QMetaObject *PassingCheckBox::metaObject() const { return &staticMetaObject; } void *PassingCheckBox::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_PassingCheckBox)) return static_cast(const_cast< PassingCheckBox*>(this)); return QCheckBox::qt_metacast(_clname); } int PassingCheckBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QCheckBox::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: clicked((*reinterpret_cast< void*(*)>(_a[1]))); break; case 1: slotClicked(); break; } _id -= 2; } return _id; } // SIGNAL 0 void PassingCheckBox::clicked(void * _t1) { void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; QMetaObject::activate(this, &staticMetaObject, 0, _a); } genpo-0.9.8/src/configParser.cpp0000644000076400017500000003301511046041170015613 0ustar stevesteve// GENPO - the GENeral Purpose Organ // Copyright (C) 2003-2008 - Steve Merrony /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "configParser.h" #include #include #include #include using namespace std; //Section section; // Override the methods we're interested in bool ConfigParser::startDocument() { indent = ""; man_count = -1; toe_piston_count = -1; thumb_piston = FALSE; toe_piston = FALSE; return TRUE; } bool ConfigParser::startElement( const QString&, const QString&, const QString& qName, const QXmlAttributes& ) { elName = qName; // deal with section headings in the config file, (re)setting counters as required if (elName == "manual" || elName == "division") { man_count++; console.num_divisions = man_count + 1; console.divisions[man_count].colour = "lightgrey"; console.divisions[man_count].num_stops = 0; console.divisions[man_count].num_pistons = 0; console.divisions[man_count].num_couplers = 0; stop_count = -1; piston_count = -1; coupler_count = -1; // deprecation if (elName == "manual") cout << "Warning: Use of 'manual' is deprecated, please use 'division'\n"; } if (elName == "stop") { stop_count++; console.divisions[man_count].num_stops = stop_count + 1; console.divisions[man_count].stops[stop_count].colour = "lightgrey"; console.divisions[man_count].stops[stop_count].pulled = FALSE; console.divisions[man_count].stops[stop_count].velocity = DEFAULT_VELOCITY; console.divisions[man_count].stops[stop_count].kbdMidiChannel = FREE_CHANNEL; } if (elName == "preset" || elName == "piston") { piston_count++; console.divisions[man_count].num_pistons = piston_count + 1; console.divisions[man_count].pistons[piston_count].active = FALSE; console.divisions[man_count].pistons[piston_count].numPistonStops = 0; console.divisions[man_count].pistons[piston_count].widgetID = 0; piston_stop_count = -1; thumb_piston = TRUE; toe_piston = FALSE; // deprecation if (elName == "preset" ) cout << "\tWarning: Use of 'preset' is deprecated, please use 'piston'\n"; } if ( elName == "toePiston" ) { toe_piston_count++; console.num_toePistons = toe_piston_count + 1; console.toePistons[toe_piston_count].active = FALSE; console.toePistons[toe_piston_count].numPistonStops = 0; console.toePistons[toe_piston_count].widgetID = 0; console.toePistons[toe_piston_count].midiChannel = FREE_CHANNEL; piston_stop_count = -1; toe_piston = TRUE; thumb_piston = FALSE; } if (elName == "presetStop" || elName == "pistonStop") { piston_stop_count++; if (thumb_piston) { console.divisions[man_count].pistons[piston_count].numPistonStops = piston_stop_count + 1; } else { console.toePistons[toe_piston_count].numPistonStops = piston_stop_count + 1; } } if (elName == "coupler") { coupler_count++; console.divisions[man_count].num_couplers = coupler_count + 1; console.divisions[man_count].couplers[coupler_count].length = 8; // default to no transposition console.divisions[man_count].couplers[coupler_count].active = FALSE; } return TRUE; } bool ConfigParser::characters( const QString& ch ) { // ignore whitespace QRegExp rxp = QRegExp( "^([A-Z]|[a-z]|[0-9])" ); if (ch.contains( rxp ) ) { // printf( ": %s", (const char*)ch ); // header stuff if (elName == "organName") console.organName = ch; if (elName == "soundFont") console.soundFont = ch; if (elName == "description") console.description = ch; if (elName == "acceleratorStyle") console.acceleratorStyle = ch; // manual stuff if (elName == "manualLabel" || elName == "divisionLabel") console.divisions[man_count].label = ch; if (elName == "manualName" || elName == "divisionName") { console.divisions[man_count].name = ch; cout << qPrintable( ch ) << " division loading\n"; } if (elName == "manualColour" || elName == "divisionColour") console.divisions[man_count].colour = ch; if (elName == "midiChannel" && !toe_piston) { console.divisions[man_count].midiChannel = ch.toInt() - 1; // it seems ALSA MIDI channel numbers start @ 0, not 1 console.channel_division_map[ch.toInt() - 1] = man_count; } // stop stuff if (elName == "stopLabel" ) console.divisions[man_count].stops[stop_count].label = ch; if (elName == "stopName" ) { console.divisions[man_count].stops[stop_count].name = ch; cout << "\tStop: " << qPrintable( ch ) << "\n"; } if (elName == "stopColour" ) console.divisions[man_count].stops[stop_count].colour = ch ; if (elName == "isReed" ) console.divisions[man_count].stops[stop_count].isReed = (bool) ch.toInt(); if (elName == "midiBank" ) console.divisions[man_count].stops[stop_count].midiBank = ch.toInt(); if (elName == "midiVoice" ) console.divisions[man_count].stops[stop_count].midiVoice = ch.toInt(); if (elName == "velocity" ) console.divisions[man_count].stops[stop_count].velocity = (unsigned char) ch.toInt(); // thumb pistons if (thumb_piston) { if (elName == "presetLabel" || elName == "pistonLabel") console.divisions[man_count].pistons[piston_count].label = ch; if (elName == "presetName" || elName == "pistonName") { console.divisions[man_count].pistons[piston_count].name = ch; cout << "\tPiston: " << qPrintable( ch ) << "\n"; } // thumb piston Stops if (elName == "presetStopLabel" || elName == "pistonStopLabel") console.divisions[man_count].pistons[piston_count].pistonStops[piston_stop_count].stopLabel = ch; } // toe pistons if (toe_piston) { if (elName == "pistonLabel") console.toePistons[toe_piston_count].label = ch; if (elName == "pistonName") { console.toePistons[toe_piston_count].name = ch; cout << "Toe Piston: " << qPrintable( ch ) << "\n"; } if (elName == "midiChannel") console.toePistons[toe_piston_count].midiChannel = ch.toInt(); // toe piston stops if (elName == "pistonStopLabel") console.toePistons[toe_piston_count].pistonStops[piston_stop_count].stopLabel = ch; } // coupler stuff if (elName == "couplerLabel" ) console.divisions[man_count].couplers[coupler_count].label = ch; if (elName == "couplerName" ) { console.divisions[man_count].couplers[coupler_count].name = ch; cout << "\tCoupler: " << qPrintable( ch ) << "\n"; } if (elName == "coupleTo" ) console.divisions[man_count].couplers[coupler_count].coupleTo = ch; if (elName == "length" ) console.divisions[man_count].couplers[coupler_count].length = ch.toInt(); } return TRUE; } bool ConfigParser::endElement( const QString&, const QString&, const QString& ) { indent.remove( 0, 4 ); return TRUE; } bool ConfigParser::endDocument() { // sort out the couplers now - we cannot do this until everything is defined // due to the cross-referencing required. for (int m = 0; m < console.num_divisions; m++) { for (int c = 0; c < console.divisions[m].num_couplers; c++) { console.divisions[m].couplers[c].fromChannel = console.divisions[m].midiChannel; for (int destman = 0; destman < console.num_divisions; destman++) { if ( QString::compare( console.divisions[destman].label, console.divisions[m].couplers[c].coupleTo ) == 0) { console.divisions[m].couplers[c].toChannel = console.divisions[destman].midiChannel; cout << "Coupling " << m << " to " << destman << " @ " << console.divisions[m].couplers[c].length << "\n"; break; } } } } // no voices set (stops pulled) at startup for (int v = 0; v < MAX_MIDI_VOICES; v++) { console.voices[v].active = FALSE; console.voices[v].manual_channel = FREE_CHANNEL; console.voices[v].velocity = 0; console.voices[v].synth = 0; console.voices[v].bank = 0; console.voices[v].voice = 0; } cout << "Organ parsed\n"; // for (int c = 0; c<16; c++) printf( "console.channel_division_map[%d] = %d\n", c, console.channel_division_map[c] ); return TRUE; } bool ConfigParser::copyConfig( Console *cp ) { cp->organName = console.organName; //cp->verboseMode = console.verboseMode; //cp->singleStopMode = console.singleStopMode; //cp->requestedOutput = console.requestedOutput; //cp->requestedOutClient = console.requestedOutClient; //cp->requestedOutPort = console.requestedOutPort; cp->soundFont = console.soundFont; cp->description = console.description; cp->acceleratorStyle = console.acceleratorStyle; for (int mc = 0; mc < MAX_INPUT_CHANNELS; mc++) { cp->channel_division_map[mc] = console.channel_division_map[mc]; } cp->num_divisions = console.num_divisions; for (int m = 0; m < console.num_divisions; m++) { // printf( "Copying manual %i\n", m ); cp->divisions[m].label = console.divisions[m].label; cp->divisions[m].name = console.divisions[m].name; cp->divisions[m].colour = console.divisions[m].colour; cp->divisions[m].midiChannel = console.divisions[m].midiChannel; cp->divisions[m].num_stops = console.divisions[m].num_stops; for (int s = 0; s < cp->divisions[m].num_stops; s++ ) { cp->divisions[m].stops[s].label = console.divisions[m].stops[s].label; cp->divisions[m].stops[s].name = console.divisions[m].stops[s].name; cp->divisions[m].stops[s].colour = console.divisions[m].stops[s].colour; cp->divisions[m].stops[s].isReed = console.divisions[m].stops[s].isReed; cp->divisions[m].stops[s].midiBank = console.divisions[m].stops[s].midiBank; cp->divisions[m].stops[s].midiVoice = console.divisions[m].stops[s].midiVoice; cp->divisions[m].stops[s].pulled = console.divisions[m].stops[s].pulled; cp->divisions[m].stops[s].velocity = console.divisions[m].stops[s].velocity; cp->divisions[m].stops[s].kbdMidiChannel = console.divisions[m].stops[s].kbdMidiChannel; cp->divisions[m].stops[s].voiceIndex = console.divisions[m].stops[s].voiceIndex; } cp->divisions[m].num_pistons = console.divisions[m].num_pistons; for (int p = 0; p < cp->divisions[m].num_pistons; p++ ) { cp->divisions[m].pistons[p].label = console.divisions[m].pistons[p].label; cp->divisions[m].pistons[p].name = console.divisions[m].pistons[p].name; cp->divisions[m].pistons[p].active = console.divisions[m].pistons[p].active; cp->divisions[m].pistons[p].widgetID = console.divisions[m].pistons[p].widgetID; cp->divisions[m].pistons[p].numPistonStops = console.divisions[m].pistons[p].numPistonStops; for (int ps = 0; ps < cp->divisions[m].pistons[p].numPistonStops; ps++) { cp->divisions[m].pistons[p].pistonStops[ps].divisionLabel = console.divisions[m].pistons[p].pistonStops[ps].divisionLabel; cp->divisions[m].pistons[p].pistonStops[ps].stopLabel = console.divisions[m].pistons[p].pistonStops[ps].stopLabel; } } cp->divisions[m].num_couplers = console.divisions[m].num_couplers; for (int c = 0; c < cp->divisions[m].num_couplers; c++) { cp->divisions[m].couplers[c].label = console.divisions[m].couplers[c].label; cp->divisions[m].couplers[c].name = console.divisions[m].couplers[c].name; cp->divisions[m].couplers[c].coupleTo = console.divisions[m].couplers[c].coupleTo; cp->divisions[m].couplers[c].fromChannel = console.divisions[m].couplers[c].fromChannel; cp->divisions[m].couplers[c].length = console.divisions[m].couplers[c].length; cp->divisions[m].couplers[c].toChannel = console.divisions[m].couplers[c].toChannel; cp->divisions[m].couplers[c].active = console.divisions[m].couplers[c].active; } } cp->num_toePistons = console.num_toePistons; for (int tp = 0; tp < cp->num_toePistons; tp++) { cp->toePistons[tp].label = console.toePistons[tp].label; cp->toePistons[tp].name = console.toePistons[tp].name; cp->toePistons[tp].active = console.toePistons[tp].active; cp->toePistons[tp].widgetID = console.toePistons[tp].widgetID; cp->toePistons[tp].midiChannel = console.toePistons[tp].midiChannel; cp->toePistons[tp].numPistonStops = console.toePistons[tp].numPistonStops; for (int tps = 0; tps < cp->toePistons[tp].numPistonStops; tps++) { cp->toePistons[tp].pistonStops[tps].divisionLabel = console.toePistons[tp].pistonStops[tps].divisionLabel; cp->toePistons[tp].pistonStops[tps].stopLabel = console.toePistons[tp].pistonStops[tps].stopLabel; } } for (int v = 0; v < MAX_INPUT_CHANNELS * MAX_MIDI_OUTPUT_PORTS; v++) { cp->voices[v].active = console.voices[v].active; cp->voices[v].manual_channel = console.voices[v].manual_channel; cp->voices[v].velocity = console.voices[v].velocity; cp->voices[v].synth = console.voices[v].synth; cp->voices[v].bank = console.voices[v].bank; cp->voices[v].voice = console.voices[v].voice; } return TRUE; } genpo-0.9.8/src/toepiston.cpp0000644000076400017500000000201610712174362015223 0ustar stevesteve// // C++ Implementation: toepiston // // Description: // // // Author: Steve Merrony,,, <>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see or write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include "toepiston.h" ToePiston::ToePiston() : Piston() { } ToePiston::~ToePiston() { } genpo-0.9.8/organs/jeux2.org0000644000076400017500000001501510664261521014746 0ustar stevesteve
Jeux d'Orgues 2a /home/steve/music/sf/jeuxdorgues2a.sf2 None
div_0_Pedal Pedal 4 stp_32_P_Subbass_16 P Subbass 16 1 40 110 stp_33_P_Floete_8 P Floete 8 1 41 110 stp_43_P_Prestant_4 P Prestant 4 1 43 110 stp_34_P_Trompette_8 P Trompette 8 1 42 110 div_1_Great Great 1 stp_15_I_Bordon_16 I Bordon 16 1 0 110 stp_38_I_Montre_8 I Montre 8 1 1 110 stp_39_I_Bordun_8 I Bordun 8 1 2 110 stp_18_I_Salicional_8 I Salicional 8 1 3 110 stp_20_I_Octav_4 I Octav 4 1 5 110 stp_21_I_Floete_4 I Floete 4 1 6 110 stp_22_I_Doublette_2 I Doublette 2 1 7 110 stp_41_I_Cornett I Cornett 1 9 110 stp_23_I_Fourniture_III I Fourniture III 1 8 110 stp_40_I_Trompette_8 I Trompette 8 1 4 110 cpl_0_Pedal_to_Great Pedal to Great div_0_Pedal 8 cpl_1_Swell_to_Great Swell to Great div_2_Swell 8 div_2_Swell Swell 2 stp_25_II_Bordon_8 II Bordon 8 1 20 110 stp_28_II_Nazard_2_2/3 II Nazard 2 2/3 1 23 110 stp_29_II_Doublette_2 II Doublette 2 1 24 110 stp_30_II_Tierce_1_3/5 II Tierce 1 3/5 1 25 110 stp_31_II_Cymbale_III II Cymbale III 1 26 110 stp_26_II_Hautbois_8 II Hautbois 8 1 21 110 stp_36_II_Prestant_4 II Prestant 4 1 22 110 stp_42_II_Tremblant II Tremblant 0 11 110
genpo-0.9.8/organs/organ.dtd0000644000076400017500000000517011012527252014776 0ustar stevesteve genpo-0.9.8/organs/English-0.9.7.org~0000644000076400017500000004247010664261514016160 0ustar stevesteve
English organ_102.sf2 An English-style Organ None
Pedal Pedal 6 FullPedals Full Pedals Red 0 112 Subbass32 Sub-Bass 32' 0 52 100 PedalOpenDiapason16 Open Diapason 16' 0 53 Bourdon16 Bourdon 16' 0 55 Octave8 Octave 8' 0 56 PedalFlute8 Flute 8' 0 57 PedalFlute4 Flute 4' 0 58 PedalMixtureII Mixture II 0 59 ContraTrombone32 Trombone 32' 0 60 Trombone16 Trombone 16' 0 61 Trombone8 Trombone 8' 0 62 Choir Choir Light Blue 4 Saliciona16 Salicional 16' 0 30 100 Diapason8 Diapason 8' 0 31 100 Flute8 Flute 8' 0 32 100 UndaMaris8 Unda Maris 8' 0 33 100 Principal4 Principal 4' 0 35 100 Flute4 Flute 4' 0 36 100 Fifteenth Fifteenth 2' 0 37 100 VoxHumana8 Vox Humana 8' 0 39 120 0 0 Flute8 Flute4 1 1 Diapason8 Principal4 Fifteenth Great Great 1 OpenDiapason16 Open Diapason 16' 0 0 110 OpenDiapason8 Open Diapason 8' 0 2 54 StoppedDiapason8 Stopped Diapason 8' 0 3 90 Dulciana8 Dulciana 8' 0 4 110 Octave4 Octave 4' 0 5 110 StoppedDiapason4 Stopped Diapason 4' 0 6 110 Nazard Nazard 2 2/3' 0 7 110 Superoctave2 Superoctave 2' 0 8 110 MixtureII Mixture II 0 9 900 Trumpet16 Trumpet 16' 0 11 54 Trumpet8 Trumpet 8' 0 13 54 Clarion4 Clarion 4' 0 14 54 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Octava Octava (Great) Great 4 Swell4 Swell 4' Swell 4 Swell Swell 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 StoppedFlute8 StoppedFlute4 1 1 GeigenDiapason8 Gemshorn4 2 2 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo 5 Cornet Cornet 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100 piano 0 3 Flute8 Flute4 StoppedDiapason8 StoppedDiapason4 StoppedFlute8 StoppedFlute4 mezzo forte 1 3 Diapason8 Principal4 Fifteenth OpenDiapason8 Octave4 GeigenDiapason8 Gemshorn4 forte 2 3 Diapason8 Principal4 Fifteenth OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8
genpo-0.9.8/organs/English-0.9.7.org0000644000076400017500000004277311017220142015751 0ustar stevesteve
English Eorg104.sf2 An English-style Organ None
Pedal Pedal 6 FullPedals Full Pedals Red 0 112 Subbass32 Sub-Bass 32' 0 52 100 PedalOpenDiapason16 Open Diapason 16' 0 53 Bourdon16 Bourdon 16' 0 55 Octave8 Octave 8' 0 56 PedalFlute8 Flute 8' 0 57 PedalFlute4 Flute 4' 0 58 PedalMixtureII Mixture II 0 59 ContraTrombone32 Trombone 32' 0 60 Trombone16 Trombone 16' 0 61 Trombone8 Trombone 8' 0 62 Choir Choir Light Blue 4 Saliciona16 Salicional 16' 0 30 100 Diapason8 Diapason 8' 0 31 100 Flute8 Flute 8' 0 32 100 UndaMaris8 Unda Maris 8' 0 33 100 Principal4 Principal 4' 0 35 100 Flute4 Flute 4' 0 36 100 Fifteenth Fifteenth 2' 0 37 100 VoxHumana8 Vox Humana 8' 0 39 120 0 0 Flute8 Flute4 1 1 Diapason8 Principal4 Fifteenth Great Great 1 OpenDiapason16 Open Diapason 16' 0 0 110 OpenDiapason8 Open Diapason 8' 0 2 54 StoppedDiapason8 Stopped Diapason 8' 0 3 90 Dulciana8 Dulciana 8' 0 4 110 Octave4 Octave 4' 0 5 110 StoppedDiapason4 Stopped Diapason 4' 0 6 110 Nazard Nazard 2 2/3' 0 7 110 Superoctave2 Superoctave 2' 0 8 110 MixtureII Mixture II 0 9 90 AcutaIII Acuta III 0 10 60 Trumpet16 Trumpet 16' 0 11 54 Trumpet8 Trumpet 8' 0 13 54 Clarion4 Clarion 4' 0 14 54 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Octava Octava (Great) Great 4 Swell4 Swell 4' Swell 4 Swell Swell 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 StoppedFlute8 StoppedFlute4 1 1 GeigenDiapason8 Gemshorn4 2 2 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo 5 Cornet Cornet V 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100 piano 0 3 Flute8 Flute4 StoppedDiapason8 StoppedDiapason4 StoppedFlute8 StoppedFlute4 mezzo forte 1 3 Diapason8 Principal4 Fifteenth OpenDiapason8 Octave4 GeigenDiapason8 Gemshorn4 forte 2 3 Diapason8 Principal4 Fifteenth OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8
genpo-0.9.8/organs/OldEnglishOrganManuals.org0000644000076400017500000001053010664261521020246 0ustar stevesteve
Old English Manuals Organ Jeux14.SF2 Loosely based on St. Dionis Backchurch, Fenchurch Street, London
Great Great Organ 1 OpenDiapason8 Open Diapason 8' false 0 0 Principal4 Principal 4' false 0 1 Twelfth Twelfth 2 2/3' false 0 11 Fifteenth Fifteenth 2' false 0 2 Tierce Tierce 1 3/5' false 0 12 Larigot Larigot 1 1/3' false 0 13 Sesquialtera Sesquialtera II false 0 27 Cornet Cornet false 0 98 Trumpet8 Trumpet 8' false 0 25 Clarion4 Clarion 4' false 0 78 GreatToSwell Great to Swell Swell Swell Swell Organ 2 OpenDiapason8 Open Diapason 8' false 0 0 Cornet Cornet false 0 98 Trumpet8 Trumpet 8' false 0 25 Clarion4 Clarion 4' false 0 78 VoxHumana8 Vox Humana 8' true 0 96 SwellToGreat Swell To Great Great
genpo-0.9.8/organs/org1.org0000644000076400017500000001323410664261522014563 0ustar stevesteve
Test Organ (Org1) Jeux14.SF2 Test organ for initial development
Pedal Pedal Organ 3 SubBass16 Subbass 16' 0 111 Trombone16 Trombone 16' 0 118 Great Great Organ 1 DoubleDiapason16 Double Diapason 16' 1 61 OpenDiapason8 Open Diapason 8' 1 63 OpenDiapason4 Open Diapason 4' 1 3 RohrFlute8 Rohrflute 8' 0 53 Octave4 Octave 4' 0 1 HoltzFlute4 Holtzflute 4' 0 17 Superoctave2 Superoctave 2' 0 2 Trumpet8 Trumpet 8' 0 25 1 Full Organ Great OpenDiapason8 Swell Oboe8 GreatToPedal Great to Pedal Pedal GreatToSwell Great to Swell Swell Swell Swell Organ 2 Salicional8 Salicional 8' 0 64 VoixCeleste8 Voix Celeste 8' 1 55 Principal4 Principal 4' 0 46 Fifteenth Fifteenth 2' 0 2 Larigot Larigot 1 1/3' 0 13 SequialteraII Sesquialtera II 0 27 DoubleTrumpet Double Trumpet 16' 0 101 Cornopean8 Cornopean 8' 0 25 Oboe8 Oboe 8' 1 53 SwellToGreat Swell To Great Great SwellToPedal Swell To Pedal Pedal
genpo-0.9.8/organs/Campbells_Harpsichrd.org0000644000076400017500000000437411012525774017771 0ustar stevesteve
Campbell's Harpsichord Campbells_Harpsichord_tuned_1.SF2 Campbell's Harpsichord (Tuned) None
Main Main 1 UpprMain Upper and Main 0 1 UpprMainFull Upper and Main - Full 0 2 Main Main 0 7 MainFull Main - Full 0 8 Upper Grande Orgue 2 Upper Upper 0 4 UpprFull Upper - Full 0 5
genpo-0.9.8/organs/Orgue.org0000644000076400017500000003071610664261522015000 0ustar stevesteve
Orgue jeux d'orgues 2.sf2 Jeux d'Orgues 2 - Romanswiller, Alsace None
Pedal Pedale 3 Subbass16 Subbass 16' 1 16 Floete8 Floete 8' 2 20 Trompette8 Trompette 8' 3 21 Prestant4 Prestant 4' 0 22 Choir Choir Organ Light Blue 4 Saliciona16 Salicional 16' 0 30 Diapason8 Diapason 8' 0 31 Flute8 Flute 8' 0 32 UndaMaris8 Unda Maris 8' 0 33 Principal4 Principal 4' 0 35 Flute4 Flute 4' 0 36 Fifteenth Fifteenth 2' 0 37 VoxHumana8 Vox Humana 8' 0 39 100 Great Great Organ 1 OpenDiapason16 Open Diapason 16' 0 0 OpenDiapason8 Open Diapason 8' 0 2 StoppedDiapason8 Stopped Diapason 8' 0 3 Dulciana8 Dulciana 8' 0 4 Octave4 Octave 4' 0 5 StoppedDiapason4 Stopped Diapason 4' 0 6 Nazard Nazard 2 2/3' 0 7 Superoctave2 Superoctave 2' 0 8 MixtureII Mixture II 0 9 Trumpet16 Trumpet 16' 0 11 Trumpet8 Trumpet 8' 0 13 Clarion4 Clarion 4' 0 14 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Swell Swell Organ 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 1 StoppedFlute8 StoppedFlute4 1 1 2 GeigenDiapason8 Gemshorn4 2 3 3 Diapason16 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo Organ 5 Cornet Cornet 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100
genpo-0.9.8/organs/English-0.9.8~0000644000076400017500000004277311045554362015401 0ustar stevesteve
English Eorg104.sf2 An English-style Organ None
Pedal Pedal 6 FullPedals Full Pedals Red 0 112 Subbass32 Sub-Bass 32' 0 52 100 PedalOpenDiapason16 Open Diapason 16' 0 53 Bourdon16 Bourdon 16' 0 55 Octave8 Octave 8' 0 56 PedalFlute8 Flute 8' 0 57 PedalFlute4 Flute 4' 0 58 PedalMixtureII Mixture II 0 59 ContraTrombone32 Trombone 32' 0 60 Trombone16 Trombone 16' 0 61 Trombone8 Trombone 8' 0 62 Choir Choir Light Blue 4 Saliciona16 Salicional 16' 0 30 100 Diapason8 Diapason 8' 0 31 100 Flute8 Flute 8' 0 32 100 UndaMaris8 Unda Maris 8' 0 33 100 Principal4 Principal 4' 0 35 100 Flute4 Flute 4' 0 36 100 Fifteenth Fifteenth 2' 0 37 100 VoxHumana8 Vox Humana 8' 0 39 120 0 0 Flute8 Flute4 1 1 Diapason8 Principal4 Fifteenth Great Great 1 OpenDiapason16 Open Diapason 16' 0 0 110 OpenDiapason8 Open Diapason 8' 0 2 54 StoppedDiapason8 Stopped Diapason 8' 0 3 90 Dulciana8 Dulciana 8' 0 4 110 Octave4 Octave 4' 0 5 110 StoppedDiapason4 Stopped Diapason 4' 0 6 110 Nazard Nazard 2 2/3' 0 7 110 Superoctave2 Superoctave 2' 0 8 110 MixtureII Mixture II 0 9 90 AcutaIII Acuta III 0 10 60 Trumpet16 Trumpet 16' 0 11 54 Trumpet8 Trumpet 8' 0 13 54 Clarion4 Clarion 4' 0 14 54 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Octava Octava (Great) Great 4 Swell4 Swell 4' Swell 4 Swell Swell 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 StoppedFlute8 StoppedFlute4 1 1 GeigenDiapason8 Gemshorn4 2 2 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo 5 Cornet Cornet V 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100 piano 0 3 Flute8 Flute4 StoppedDiapason8 StoppedDiapason4 StoppedFlute8 StoppedFlute4 mezzo forte 1 3 Diapason8 Principal4 Fifteenth OpenDiapason8 Octave4 GeigenDiapason8 Gemshorn4 forte 2 3 Diapason8 Principal4 Fifteenth OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8
genpo-0.9.8/organs/gm.org0000644000076400017500000004757310664261520014331 0ustar stevesteve
General MIDI gm.sf2 A GM2 Console None
1 1 1 Grand Piano 1 Grand Piano 1 White 0 0 Grand Piano 2 Grand Piano 2 White 0 1 Electric Grand Electric Grand White 0 2 Honky Tonk Honky Tonk White 0 3 E.Piano 1 E.Piano 1 White 0 4 E.Piano 2 E.Piano 2 White 0 5 Harpsichord Harpsichord White 0 6 Clavinet Clavinet White 0 7 Celeste Celeste White 0 8 Glockenspiel Glockenspiel Gray 0 9 Music Box Music Box Gray 0 10 Vibraphone Vibraphone Gray 0 11 Marimba Marimba Gray 0 12 Xylophone Xylophone Gray 0 13 Tubular Bells Tubular Bells Gray 0 14 Dulcimer Dulcimer Gray 0 15 Organ 2 Organ 2 LightBlue 0 17 Organ 3 Organ 3 LightBlue 0 18 Church Organ Church Organ LightBlue 0 19 Reed Organ Reed Organ LightBlue 0 20 Accordion Accordion LightBlue 0 21 Harmonica Harmonica LightBlue 0 22 Bandoleon Bandoleon LightBlue 0 23 2 2 2 Nylon String Guitar Nylon String Guitar LightGreen 0 24 Steel String Guitar Steel String Guitar LightGreen 0 25 Jazz Guitar Jazz Guitar LightGreen 0 26 Clean Guitar Clean Guitar LightGreen 0 27 Muted Guitar Muted Guitar LightGreen 0 28 Overdrive Guitar Overdrive Guitar LightGreen 0 29 Distortion Guitar Distortion Guitar LightGreen 0 30 Guitar Harmonics Guitar Harmonics LightGreen 0 31 Acoustic Bass Acoustic Bass Green 0 32 Fingered Bass Fingered Bass Green 0 33 Picked Bass Picked Bass Green 0 34 Slap Bass 1 Slap Bass 1 Green 0 36 Slap Bass 2 Slap Bass 2 Green 0 37 Synth Bass 1 Synth Bass 1 Green 0 38 Synth Bass 2 Synth Bass 2 Green 0 39 Violin Violin 0 40 Viola Viola 0 41 Contra Bassoon Contra Bassoon 0 43 Tremolo Strings Tremolo Strings 0 44 Pizzicato Strings Pizzicato Strings 0 45 Harp Harp 0 46 Timpani Timpani 0 47 Strings Strings 0 48 Slow Strings Slow Strings 0 49 3 3 3 Synth Strings 1 Synth Strings 1 0 50 Synth Strings 2 Synth Strings 2 0 51 Choir Aahs Choir Aahs 0 52 Voice Oohs Voice Oohs 0 53 Synth Vox Synth Vox 0 54 Orchestra Hit Orchestra Hit 0 55 Trumpet Trumpet Red 0 56 Trombone Trombone Red 0 57 Tuba Tuba Red 0 58 Muted Trumpet Muted Trumpet Red 0 59 French Horn French Horn Red 0 60 Brass Brass Red 0 61 Tenor Sax Tenor Sax 0 66 Oboe Oboe Pink 0 68 English Horn English Horn Pink 0 69 Bassoon Bassoon Pink 0 70 Clarinet Clarinet Pink 0 71 Piccolo Piccolo Pink 0 72 Flute Flute Pink 0 73 Pan Flute Pan Flute 0 75 Bottle Chiff Bottle Chiff 0 76 Shakuhachi Shakuhachi 0 77 Whistle Whistle 0 78 Ocarina Ocarina 0 79 4 4 4 Square Wave Square Wave 0 80 Saw Wave Saw Wave 0 81 Synth Calliope Synth Calliope 0 82 Charang Charang 0 84 Solo Vox Solo Vox 0 85 5th Saw Wave 5th Saw Wave 0 86 Bass n Lead Bass And Lead 0 87 Fantasia Fantasia 0 88 Warm Pad Warm Pad 0 89 Poly Synth Poly Synth 0 90 Space Voice Space Voice 0 91 Bowed Glass Bowed Glass 0 92 Metal Pad Metal Pad 0 93 Halo Pad Halo Pad 0 94 Sweep Pad Sweep Pad 0 95 Ice Rain Ice Rain 0 96 Soundtrack Soundtrack 0 97 Crystal Crystal 0 98 Atmosphere Atmosphere 0 99 Brightness Brightness 0 100 Goblin Goblin 0 101 Echo Drops Echo Drops 0 102 5 5 5 Star Theme Star Theme 0 103 Sitar Sitar 0 104 Banjo Banjo 0 105 Shamisen Shamisen 0 106 Koto Koto 0 107 Kalimba Kalimba 0 108 Fiddle Fiddle 0 110 Tinker Bell Tinker Bell 0 112 Agogo Agogo 0 113 Steel Drum Steel Drum 0 114 Wood Block Wood Block 0 115 Taiko Drum Taiko Drum 0 116 Melo Tom 1 Melo Tom 1 0 117 Synth Drum Synth Drum 0 118 Reverse Cymbal Reverse Cymbal 0 119 Guitar Fret Noise Guitar Fret Noise 0 120 Breath Noise Breath Noise 0 121 Seashore Seashore 0 122 Bird Bird 0 123 Telephone Telephone 0 124 Helicopter Helicopter 0 125 Applause Applause 0 126 Gun Shot Gun Shot 0 127
genpo-0.9.8/organs/English-0.9.8.org~0000644000076400017500000004277211045554562016170 0ustar stevesteve
English Eorg104.sf2 An English-style Organ None
Pedal Pedal 6 FullPedals Full Pedals Red 0 112 Subbass32 Sub-Bass 32' 0 52 100 PedalOpenDiapason16 Open Diapason 16' 0 53 Bourdon16 Bourdon 16' 0 55 Octave8 Octave 8' 0 56 PedalFlute8 Flute 8' 0 57 PedalFlute4 Flute 4' 0 58 PedalMixtureII Mixture II 0 59 ContraTrombone32 Trombone 32' 0 60 Trombone16 Trombone 16' 0 61 Trombone8 Trombone 8' 0 62 Choir Choir lightblue 4 Saliciona16 Salicional 16' 0 30 100 Diapason8 Diapason 8' 0 31 100 Flute8 Flute 8' 0 32 100 UndaMaris8 Unda Maris 8' 0 33 100 Principal4 Principal 4' 0 35 100 Flute4 Flute 4' 0 36 100 Fifteenth Fifteenth 2' 0 37 100 VoxHumana8 Vox Humana 8' 0 39 120 0 0 Flute8 Flute4 1 1 Diapason8 Principal4 Fifteenth Great Great 1 OpenDiapason16 Open Diapason 16' 0 0 110 OpenDiapason8 Open Diapason 8' 0 2 54 StoppedDiapason8 Stopped Diapason 8' 0 3 90 Dulciana8 Dulciana 8' 0 4 110 Octave4 Octave 4' 0 5 110 StoppedDiapason4 Stopped Diapason 4' 0 6 110 Nazard Nazard 2 2/3' 0 7 110 Superoctave2 Superoctave 2' 0 8 110 MixtureII Mixture II 0 9 90 AcutaIII Acuta III 0 10 60 Trumpet16 Trumpet 16' 0 11 54 Trumpet8 Trumpet 8' 0 13 54 Clarion4 Clarion 4' 0 14 54 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Octava Octava (Great) Great 4 Swell4 Swell 4' Swell 4 Swell Swell 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 StoppedFlute8 StoppedFlute4 1 1 GeigenDiapason8 Gemshorn4 2 2 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo 5 Cornet Cornet V 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100 piano 0 3 Flute8 Flute4 StoppedDiapason8 StoppedDiapason4 StoppedFlute8 StoppedFlute4 mezzo forte 1 3 Diapason8 Principal4 Fifteenth OpenDiapason8 Octave4 GeigenDiapason8 Gemshorn4 forte 2 3 Diapason8 Principal4 Fifteenth OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8
genpo-0.9.8/organs/BigFrench.org0000644000076400017500000001732011012525774015542 0ustar stevesteve
Big French Organ Jeux14.SF2 A Flight of Fancy!
Pedal Pedal Organ 3 Principal16 Principal 16' 0 110 100 Contrebasse16 Contrebasse 16' 0 111 100 Resultant32 Resultant 32' 0 114 100 Bourdon32 Bourdon 32' 1 60 120 Bourdon16 Bourdon 16' 0 15 120 Posaune16 Posaune 16' 0 115 Fagotto8 Fagotto 8' 0 116 Quintade16 Quintade III 16' 0 119 Great Great Organ 1 Bourdon16 Bourdon 16' 0 15 Montre8 Montre 8' 0 0 FluteHarm8 Flute Harmonique 8' 1 5 Gamba8 Gamba 8' 0 19 Prestant4 Prestant 4' 0 1 OpenFlute4 Open Flute 4' 0 18 Nazard2.6 Nazard 2 2/3' 0 11 Doublette2 Doublette 2' 0 2 Tierce Tierce 1 3/5' 0 12 FournitureIII Fourniture III 0 33 BasseBombarde16 Basse Bombarde 16' 0 102 Trumpet8 Trumpet 8' 0 25 Clarion4 Clarion 4' 0 78 SwellToGreat Swell to Great Swell PedalToGreat Pedal to Great Pedal Swell Swell Organ 2 Principal8 Principal 8' 0 45 Principal4 Principal 4' 0 46 OpenDiapason8 Open Diapason 8' 0 0 Cornet8 Cornet 8' 0 98 Trumpet8 Trumpet 8' 0 25 Hautbois8 Hautbois 8' 1 53 Gedackt8 Gedackt 8' 0 58 RohrFlote8 Rohrflote 8' 0 53 RohrFlote4 Rohrflote 4' 0 54 Clarion4 Clarion 4' 0 78 Viola8 Viola 8' 1 0 Viola4 Viola 4' 0 66 VoixCeleste8 Voix Celeste 8' 1 55 Cromorne8 Cromorne 8' 0 72 PedalToSwell Pedal to Swell Pedal
genpo-0.9.8/organs/English-0.9.8.org0000644000076400017500000004277211046152747015772 0ustar stevesteve
English Eorg104.sf2 An English-style Organ None
Pedal Pedal 6 FullPedals Full Pedals red 0 112 Subbass32 Sub-Bass 32' 0 52 100 PedalOpenDiapason16 Open Diapason 16' 0 53 Bourdon16 Bourdon 16' 0 55 Octave8 Octave 8' 0 56 PedalFlute8 Flute 8' 0 57 PedalFlute4 Flute 4' 0 58 PedalMixtureII Mixture II 0 59 ContraTrombone32 Trombone 32' 0 60 Trombone16 Trombone 16' 0 61 Trombone8 Trombone 8' 0 62 Choir Choir lightblue 4 Saliciona16 Salicional 16' 0 30 100 Diapason8 Diapason 8' 0 31 100 Flute8 Flute 8' 0 32 100 UndaMaris8 Unda Maris 8' 0 33 100 Principal4 Principal 4' 0 35 100 Flute4 Flute 4' 0 36 100 Fifteenth Fifteenth 2' 0 37 100 VoxHumana8 Vox Humana 8' 0 39 120 0 0 Flute8 Flute4 1 1 Diapason8 Principal4 Fifteenth Great Great 1 OpenDiapason16 Open Diapason 16' 0 0 110 OpenDiapason8 Open Diapason 8' 0 2 54 StoppedDiapason8 Stopped Diapason 8' 0 3 90 Dulciana8 Dulciana 8' 0 4 110 Octave4 Octave 4' 0 5 110 StoppedDiapason4 Stopped Diapason 4' 0 6 110 Nazard Nazard 2 2/3' 0 7 110 Superoctave2 Superoctave 2' 0 8 110 MixtureII Mixture II 0 9 90 AcutaIII Acuta III 0 10 60 Trumpet16 Trumpet 16' 0 11 54 Trumpet8 Trumpet 8' 0 13 54 Clarion4 Clarion 4' 0 14 54 0 0 StoppedDiapason8 StoppedDiapason4 1 1 OpenDiapason8 Octave4 2 2 OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII SoloToGreat Solo To Great Solo ChoirToGreat Choir To Great Choir SwellToGreat Swell To Great Swell PedalToGreat Pedal to Great Pedal Octava Octava (Great) Great 4 Swell4 Swell 4' Swell 4 Swell Swell 2 Dulciana16 Dulciana 16' 0 16 GeigenDiapason8 Geigen Diapason 8' 0 17 StoppedFlute8 Stopped Flute 8' 0 18 Salicional8 Salicional 8' 0 19 Celeste8 Celeste 8' 0 20 Gemshorn4 Gemshorn 4' 0 21 StoppedFlute4 Stopped Flute 4' 0 22 Piccolo2 Piccolo 2' 0 23 SesquialteraII Sesquialtera II 0 24 ContraFagotto16 Contra Fagotto 16' 0 25 Cornopean8 Cornopean 8' 0 26 Oboe8 Oboe 8' 0 27 0 0 StoppedFlute8 StoppedFlute4 1 1 GeigenDiapason8 Gemshorn4 2 2 GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8 SoloToSwell Solo To Swell Solo ChoirToSwell Choir To Swell Choir GreatToSwell Great To Swell Great PedalstoSwell Pedals To Swell Pedal Solo Solo 5 Cornet Cornet V 0 41 Strings8 Strings 8' 0 43 OrchFlute8 Orchestral Flute 8' 0 44 OrchFlute4 Orchestral Flute 4' 0 45 Tuba8 Tuba 8' 0 46 110 OrchOboe8 Orchestral Oboe 8' 0 48 80 Clarinet8 Clarinet 8' 0 49 100 Krummhorn8 Krummhorn 8' 0 50 100 piano 0 3 Flute8 Flute4 StoppedDiapason8 StoppedDiapason4 StoppedFlute8 StoppedFlute4 mezzo forte 1 3 Diapason8 Principal4 Fifteenth OpenDiapason8 Octave4 GeigenDiapason8 Gemshorn4 forte 2 3 Diapason8 Principal4 Fifteenth OpenDiapason16 OpenDiapason8 Dulciana8 Octave4 MixtureII GeigenDiapason8 Gemshorn4 SesquialteraII Cornopean8
genpo-0.9.8/INSTALL0000644000076400017500000000214111012527320012722 0ustar stevesteveGENPO Installation - Version 0.9.6 - August 2007 ================================================ Source Build and Install ------------------------ Prerequisites The minimum requirements are: * Linux - at least kernel 2.4 * QT Libraries - at least version 3 (KDE not required) * ALSA - at least version 0.9 (Linux 2.6 includes ALSA) In terms of the QT libraries - you must have the full development suite installed. The package to look for will be named something like 'qt-devel-3.x.x'. Before attempting to build GENPO as described below, please ensure that your QTDIR environment variable is (correctly) set. If you type 'echo $QTDIR' at the command prompt and get just a blank line back, then the variable is not set - unless you are very lucky GENPO will not build in this situation. Build If you have all the prerequisites installed, then the following steps should be all that is required to unpack and build GENPO... tar xzvf genpo-0.9.6.tar.gz cd genpo-0.9.6 ./build.sh Problems? Please let us know! See the website http://genpo.sourceforge.net/ (c) 2004,2007 S.Merrony genpo-0.9.8/CHANGES0000644000076400017500000000720311111511575012675 0ustar stevesteveChanges file for GENPO: 0.9.8 Qt4 Conversion and fix for >16 stops Change: Colours are now expressed as SVG-compliant colour names (see http://www.w3.org/TR/SVG/types.html#ColorKeywords ) Bugfix: When connected to 2 outputs, stops 17-32 now work properly Bugfix: Fix size of piston buttons to prevent them swallowing up space Tidy: Get rid of passingButtons & passingCheckBoxes and hash all IDs instead Tidy: Stop explicitly using pthreads and use pure Qt4 QThreads instead Tidy: Replace Qt3-style customEvents with signals/slots Fix: Remove spurious topLayout 0.9.7 One bug fix and tidy up the licencing and package: Bugfix: Fix crash on unexpected programme change event Tidy: Ensure no binary files in package Tidy: Ensure GPL statement applied everywhere 0.9.6 One new feature, minor fixes, and some code tidying: Tidy: Move MIDI initialisation code into private connectDefaultPorts() function in MidiThread Bugfix: Improve detection of a default synthesizer to send MIDI to Tidy: Fix flags on the MIDI Input port Tidy: Stop using more ALSA resources than we need and just use one Sequencer/device for all input and output N.B. The names of the GENPO ALSA ports have changed NEW: Support 32 channels (simultaneous stops) if two synths are available on same device (GENPO now creates two output ports) Tidy: Separate Sequencer from Port handling and add a new structure in console.h GUI: Tweak min size of toe and thumb piston buttons GUI: Increase default window height slightly Web: Update website 0.9.5 Fixes, improvements and a new feature: Tidy: Clean up build by putting QMAKE_CXXFLAGS_WARN_ON *= -Wno-non-virtual-dtor in genpo.pro to get rid of QT3 Library induced warnings with GCC 4 Tidy: Use iostreams not printf etc. Tidy: Recreate all widgets whenever an organ definition is loaded Bugfix: fix loading of different 'size' organs Tidy: Explicit creation of Console object (added console.cpp) Bugfix: Ignore notes from undefined channel Bugfix: Ignore preset changes from undefined channels (fixes a crash) Tidy: Improve look of Coupler frames Bugfix: remove artifacts from display (QButtonGroups that should have been NoFrame) NEW: Add alternative names of 'piston' for 'preset' and 'division' for 'manual' Tidy: Deprecate use of 'preset' and 'manual' Tidy: Rename Manual class to Division (and all associated members/variables) Tidy: Rename Preset class to Piston (and all associated members/variables) NEW: Add new 'toePiston' feature a.k.a. whole-organ combinations Web: Update website 0.9.1 Tidy: Added console.channel_manual_map to speed-up/simplify note handling NEW: Added --help switch NEW: Added --singlestop mode - just permit one voice at a time NEW: Added --outport=: option to hint that a particular ALSA channel should be used for output Tidy: Try to guess an (obvious) value for QTDIR in build.sh 0.9.0 Intermediate release NEW: Added organ reload functionality Tidy: Cleaned up loading of organs Tidy: Removed MIDI Config menu option (use external tools) Tidy: Removed redundant code in application.cpp NEW: 'Too many stops' warning now persists Bugfix: Fixed GCC 4 issue with type conv of UNICODE_ACCEL in application.cpp 0.8.1 Minor Release NEW: Added --verbose option NEW: Added organs/gm.org General MIDI organ spec. Tidy: Updated organs/English-0.8.1.org reference organ Tidy: Tidied up some GUI code Tidy: Improved ALSA port names Tidy: Added customEvents.h in preparation for more events Tidy: Removed redundant code from console.h genpo-0.9.8/README0000644000076400017500000000420710664266054012576 0ustar stevesteveGENPO README - Version 0.9.6 - August 2007 ========================================== What is it? GENPO is the GENeral Purpose Organ. It is a program which replicates the essential features of any pipe, theatre, or reed organ. GENPO reads a description of an organ (a .org XML file) and presents a suitable user interface for operating that organ. There are a number of high quality organ SoundFonts freely available and the .org file maps the stop sounds to organ manuals and stops. Other facilities such and couplers and presets are available. You may connect one or more MIDI keyboards to GENPO to provide the organ manuals, you can even assign one to be the 'pedalboard' if so desired! GENPO is free, Open Source software. The program was written as a result of the author trying some other 'virtual organs' and having a hard time either getting them installed, or using them. The philosophy behind the progam is that of ease of use combined with full functionality. GENPO does not try hard to look exactly like an organ console - but an organist should feel instantly at home when presented with the console. What do I need? Minimum requirements are: * Linux - at least kernel 2.4 * QT Libraries - at least version 3 (KDE not required) * ALSA - at least version 0.9 * (Linux 2.6 includes ALSA) MIDI interface (supported by ALSA) * MIDI keyboard - the more the merrier * Soundcard supporting SoundFonts - developed and tested with a SoundBlaster Live!® (see * below) * An organ SoundFont (.SF2 file) * GENPO N.B. These docs do not cover building or installing the ALSA libraries. * Okay, this is now officially optional as I have run GENPO using a soft-synth to create the sound. I used FluidSynth, but I'm sure Timidity++ would also work. With FluidSynth the sound quality wan't quite up to native SoundBlaster standards, but it might be quite acceptable if you spent some time optimising your system appropriately. GENPO will work 'out of the box' with soft synths - although you may have to route the midi connection using a tool like aconnect or kaconnect. INSTALLATION Please see the INSTALL file. (c) 2003,2007 S.Merrony genpo-0.9.8/COPYING0000644000076400017500000010451310664261047012747 0ustar stevesteve GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . genpo-0.9.8/build.sh0000755000076400017500000000615611111553131013340 0ustar stevesteve#!/bin/sh # GENPO build script # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see or # write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA # This script simply checks that the prerequites are in place and then # runs the build sequence. We do not try to guess where things might # be - that way lies madness! # IF YOU ARE HAVING PROBLEMS DO NOT TRY TO FIX THEM BY ALTERING THIS SCRIPT! echo "GENPO Build Starting" echo echo "Stage 1 - Checking environment is sane..." if [ -z "$QTDIR" ]; then if [ -d "/usr/share/qt4" ]; then echo " QTDIR was not set - but I found QT" export QTDIR=/usr/share/qt4 else echo "Error - QTDIR is not set, please ensure QT is properly configured" echo " and that the QTDIR environment variable points to the QT installation" echo " directory. Then re-run this script." exit 1 fi else echo " QTDIR is set ($QTDIR)" fi # check for Debian-style qmake-qt4 if ! which qmake-qt4 2> /dev/null 1>/dev/null; then if ! which qmake 2> /dev/null 1>/dev/null; then echo "Error - qmake is not on PATH, please ensure QT is properly configured" echo " and that the 'qmake' utility is on your PATH. " echo " Then re-run this script." exit 1 else echo " qmake is found (`which qmake`)" export QMAKE=qmake fi else echo " qmake-qt4 is found (`which qmake-qt4`)" export QMAKE=qmake-qt4 fi if ! [ -d "src" ]; then echo "Error - src directory not found, GENPO package is corrupt" exit 1 else echo " src directory found (`ls -d src`)" fi if ! which gcc 2> /dev/null 1>/dev/null; then echo "Error - gcc compiler is not on PATH" exit 1 else echo " gcc compiler is found (`which gcc`)" fi if ! which make 2> /dev/null 1>/dev/null; then echo "Error - make is not on PATH" exit 1 else echo " make is found (`which make`)" fi echo "Stage 2 - Preparing Makefile..." cd src $QMAKE -makefile genpo.pro if ! [ -e "Makefile" ]; then echo "Error - Makefile not generated by qmake" exit 1 else echo " Makefile generated" fi echo "Stage 3 - Compiling and Linking..." make if ! [ -e "genpo" ]; then echo "Error - There was some error compiling or linking GENPO" echo " Look at the output above for an explanation" exit 1 else echo " genpo executable built" fi echo echo "GENPO Build Complete. The 'genpo' program is currently in the 'src' directory. Sample organ configurations are in the 'organs' directory. Have fun!" exit 0 genpo-0.9.8/NOTES0000644000076400017500000000116710221257332012517 0ustar stevesteveInitially: ========= Do: == Handle multiple manuals. Assume soundfont support, and that it's pre-loaded by the user (where?). XML-based organ definition. QT-only - no KDE features. Use alsa sound library. Two threads - one for midi, one for gui. Don't: ===== Don't bother with midi port mapping, just create a new input port and use it - the user can map to that port using (k)aconnect. Don't worry about writing out (creation of, or changes to) configuration files. Don't think about Timidity output. Don't worry about OSS compatibility. Don't worry about window resizing - that's cosmetic and CAN wait.