"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/editors/PianoRoll.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.

PianoRoll.cpp  (lmms-1.2.0-rc7):PianoRoll.cpp  (lmms-1.2.0-rc8)
skipping to change at line 913 skipping to change at line 913
{ {
note->setSelected( false ); note->setSelected( false );
} }
} }
} }
void PianoRoll::shiftSemiTone( int amount ) // shift notes by amount semitones void PianoRoll::shiftSemiTone( int amount ) // shift notes by amount semitones
{ {
if (!hasValidPattern()) {return;} if (!hasValidPattern()) {return;}
m_pattern->addJournalCheckPoint();
bool useAllNotes = ! isSelection(); bool useAllNotes = ! isSelection();
for( Note *note : m_pattern->notes() ) for( Note *note : m_pattern->notes() )
{ {
// if none are selected, move all notes, otherwise // if none are selected, move all notes, otherwise
// only move selected notes // only move selected notes
if( useAllNotes || note->selected() ) if( useAllNotes || note->selected() )
{ {
note->setKey( note->key() + amount ); note->setKey( note->key() + amount );
} }
} }
skipping to change at line 936 skipping to change at line 937
// we modified the song // we modified the song
update(); update();
gui->songEditor()->update(); gui->songEditor()->update();
} }
void PianoRoll::shiftPos( int amount ) //shift notes pos by amount void PianoRoll::shiftPos( int amount ) //shift notes pos by amount
{ {
if (!hasValidPattern()) {return;} if (!hasValidPattern()) {return;}
m_pattern->addJournalCheckPoint();
bool useAllNotes = ! isSelection(); bool useAllNotes = ! isSelection();
bool first = true; bool first = true;
for( Note *note : m_pattern->notes() ) for( Note *note : m_pattern->notes() )
{ {
// if none are selected, move all notes, otherwise // if none are selected, move all notes, otherwise
// only move selected notes // only move selected notes
if( note->selected() || (useAllNotes && note->length() > 0) ) if( note->selected() || (useAllNotes && note->length() > 0) )
{ {
// don't let notes go to out of bounds // don't let notes go to out of bounds
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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