~ubuntu-branches/ubuntu/oneiric/muse/oneiric

« back to all changes in this revision

Viewing changes to synti/organ/organgui.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-11-17 21:43:38 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101117214338-1hvfl7oo2dsqnvrb
Tags: 1.1-0ubuntu1
* New upstream release (LP: #668631)
* Switch to dpkg-source 3.0 (quilt) format
* Switch to dh7 short form
* debian/rules:
  - added --enable-dssi and --enable-osc to conf flags for dssi support
  - added -ljackserver to LDFLAGS to fix a FTBFS because of --as-needed
* debian/control:
  - added build build dependency on liblo-dev and dssi-dev for dssi support
  - bump Standards-version to 3.9.1. No changes required.
* debian/muse.desktop, debian/muse.xpm: dropped as desktop file and icon is
  now shipped upstream.
* fix-desktop-categories.patch: fix Categories tag in upstream desktop file
* 10_es_locale_fix.dpatch: refreshed and converted to quilt as
  fix_es_locale.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "muse/midi.h"
28
28
#include "muse/midictrl.h"
29
29
 
 
30
//#define ORGANGUI_DEBUG
 
31
 
30
32
//---------------------------------------------------------
31
33
//   OrganGui
32
34
//---------------------------------------------------------
129
131
 
130
132
void OrganGui::setParam(int param, int val)
131
133
      {
 
134
      #ifdef ORGANGUI_DEBUG
 
135
      fprintf(stderr, "OrganGui:setParam param:%d val:%d\n", param, val);
 
136
      #endif
 
137
      
132
138
      param &= 0xfff;
133
139
      if (param >= int(sizeof(dctrl)/sizeof(*dctrl))) {
134
140
            fprintf(stderr, "OrganGui: set unknown Ctrl 0x%x to 0x%x\n", param, val);
146
152
            if(slider->minValue() < 0)
147
153
              val -= 8192;
148
154
            
 
155
            #ifdef ORGANGUI_DEBUG
 
156
            fprintf(stderr, "OrganGui:setParam setting slider val:%d\n", val);
 
157
            #endif
 
158
            
149
159
            slider->setValue(val);
150
160
            if (ctrl->label)
151
161
                  ((QSpinBox*)(ctrl->label))->setValue(val);