comparison data/fileio/MIDIFileWriter.cpp @ 929:59e7fe1b1003 warnfix_no_size_t

Unsigned removals and warning fixes in data/
author Chris Cannam
date Tue, 17 Jun 2014 14:33:42 +0100
parents d6bd5751b8f6
children dad0fc8ff405
comparison
equal deleted inserted replaced
928:6a94bb528e9d 929:59e7fe1b1003
342 342
343 NoteList notes = m_exportable->getNotes(); 343 NoteList notes = m_exportable->getNotes();
344 344
345 for (NoteList::const_iterator i = notes.begin(); i != notes.end(); ++i) { 345 for (NoteList::const_iterator i = notes.begin(); i != notes.end(); ++i) {
346 346
347 size_t frame = i->start; 347 int frame = i->start;
348 size_t duration = i->duration; 348 int duration = i->duration;
349 int pitch = i->midiPitch; 349 int pitch = i->midiPitch;
350 int velocity = i->velocity; 350 int velocity = i->velocity;
351 351
352 if (pitch < 0) pitch = 0; 352 if (pitch < 0) pitch = 0;
353 if (pitch > 127) pitch = 127; 353 if (pitch > 127) pitch = 127;