Mercurial > hg > svcore
comparison data/fileio/MIDIFileWriter.cpp @ 935:f960d67ce842 tonioni
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:42:01 +0100 |
parents | 59e7fe1b1003 |
children | dad0fc8ff405 |
comparison
equal
deleted
inserted
replaced
925:3efc20c59a94 | 935:f960d67ce842 |
---|---|
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; |