~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/sig.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.1.12) (10.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120718160706-qy1lydijykeiqqmg
Tags: 2.0-1
* New stable release.
* debian/rules: Exclude muse/widgets/arrangercolumns.{cpp,h}~ from being
  deleted by dh_clean.
* Drop 0002-gcc_hardening.patch, applied upstream.
* Drop 0003-ftbfs_gcc47.patch, applied upstream.
* Refresh 1001-buildsystem.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// THIS FILE IS ORPHANED: nothing uses its functions
 
2
 
1
3
//=========================================================
2
4
//  MusE
3
5
//  Linux Music Editor
84
86
 
85
87
void SigList::del(unsigned tick)
86
88
      {
87
 
// printf("SigList::del(%d)\n", tick);
88
89
      iSigEvent e = find(tick);
89
90
      if (e == end()) {
90
91
            printf("SigList::del(%d): not found\n", tick);
98
99
            }
99
100
      ne->second->z = e->second->z;
100
101
      ne->second->n = e->second->n;
101
 
      ne->second->tick  = e->second->tick;
 
102
      ne->second->tick = e->second->tick;
102
103
      erase(e);
103
104
      normalize();
104
105
      }
133
134
            int ticksB = ticks_beat(e->second->n);
134
135
            int ticksM = ticksB * e->second->z;
135
136
            bar += delta / ticksM;
136
 
            if (delta % ticksM)     // Teil eines Taktes
 
137
            if (delta % ticksM)     // Part of a measure
137
138
                  ++bar;
138
139
            ++e;
139
140
            }
175
176
      ciSigEvent i = upper_bound(tick);
176
177
      if (i == end()) {
177
178
            printf("ticksMeasure: not found %d\n", tick);
178
 
            // abort();
179
179
            return 0;
180
180
            }
181
181
      return ticksMeasure(i->second->z, i->second->n);
223
223
      ciSigEvent i = upper_bound(tick);
224
224
      if (i == end()) {
225
225
            printf("timesig(%d): not found\n", tick);
226
 
            // abort();
227
226
            z = 4;
228
227
            n = 4;
229
228
            }
242
241
      ciSigEvent e = upper_bound(t);
243
242
      if (e == end()) {
244
243
            fprintf(stderr, "tickValues(0x%x) not found(%zd)\n", t, size());
245
 
            // abort();
246
244
            *bar = 0;
247
245
            *beat = 0;
248
246
            *tick = 0;
293
291
      ciSigEvent e = upper_bound(t);
294
292
      if (e == end()) {
295
293
            printf("SigList::raster(%x,)\n", t);
296
 
            // abort();
297
294
            return t;
298
295
            }
299
296
      int delta  = t - e->second->tick;