"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/MidiImport/MidiImport.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

MidiImport.cpp  (lmms-1.2.0-rc7):MidiImport.cpp  (lmms-1.2.0-rc8)
skipping to change at line 410 skipping to change at line 410
} }
} }
else if( evt->is_note() && evt->chan < 256 ) else if( evt->is_note() && evt->chan < 256 )
{ {
smfMidiChannel * ch = chs[evt->chan].create( tc, trackName ); smfMidiChannel * ch = chs[evt->chan].create( tc, trackName );
Alg_note_ptr noteEvt = dynamic_cast<Alg_note_ptr> ( evt ); Alg_note_ptr noteEvt = dynamic_cast<Alg_note_ptr> ( evt );
int ticks = noteEvt->get_duration() * ticksPerBea t; int ticks = noteEvt->get_duration() * ticksPerBea t;
Note n( (ticks < 1 ? 1 : ticks ), Note n( (ticks < 1 ? 1 : ticks ),
noteEvt->get_start_time() * ticks PerBeat, noteEvt->get_start_time() * ticks PerBeat,
noteEvt->get_identifier() - 12, noteEvt->get_identifier() - 12,
noteEvt->get_loud()); noteEvt->get_loud() * (200.f / 12 7.f)); // Map from MIDI velocity to LMMS volume
ch->addNote( n ); ch->addNote( n );
} }
else if( evt->is_update() ) else if( evt->is_update() )
{ {
smfMidiChannel * ch = chs[evt->chan].create( tc, trackName ); smfMidiChannel * ch = chs[evt->chan].create( tc, trackName );
double time = evt->time*ticksPerBeat; double time = evt->time*ticksPerBeat;
QString update( evt->get_attribute() ); QString update( evt->get_attribute() );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)