Mercurial > hg > svcore
comparison data/fileio/MIDIFileWriter.cpp @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | 59e7fe1b1003 |
children | dad0fc8ff405 |
comparison
equal
deleted
inserted
replaced
917:49618f39ff09 | 936:0c1d6de8f44b |
---|---|
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; |