Minor cleanup.

This commit is contained in:
Jonathan Moore Liles 2008-06-13 23:53:20 -05:00
parent 148b313b31
commit 25842b89a7
3 changed files with 6 additions and 0 deletions

View File

@ -484,6 +484,7 @@ event_list::insert_time ( tick_t start, tick_t l )
continue; continue;
if ( ts >= start ) if ( ts >= start )
{
if ( e->is_note_on() ) if ( e->is_note_on() )
{ {
/* only notes ENTIRELY WITHIN the range will be moved */ /* only notes ENTIRELY WITHIN the range will be moved */
@ -493,6 +494,7 @@ event_list::insert_time ( tick_t start, tick_t l )
else else
e->timestamp( e->timestamp() + l ); e->timestamp( e->timestamp() + l );
} }
}
} }
/** delete events in range and close the gap */ /** delete events in range and close the gap */

View File

@ -464,10 +464,12 @@ Grid::toggle_select ( int x, int y )
event *e = _event( x, y, true ); event *e = _event( x, y, true );
if ( e ) if ( e )
{
if ( e->selected() ) if ( e->selected() )
e->deselect(); e->deselect();
else else
e->select(); e->select();
}
unlock(); unlock();
} }

View File

@ -180,10 +180,12 @@ main ( int argc, char **argv )
ASSERTION( "Could not initialize MIDI system! (is Jack running and with MIDI ports enabled?)" ); ASSERTION( "Could not initialize MIDI system! (is Jack running and with MIDI ports enabled?)" );
if ( ! transport.valid ) if ( ! transport.valid )
{
if ( transport.master ) if ( transport.master )
ASSERTION( "The version of JACK you are using does not appear to be capable of passing BBT positional information." ); ASSERTION( "The version of JACK you are using does not appear to be capable of passing BBT positional information." );
else else
ASSERTION( "Either the version of JACK you are using does pass BBT information, or the current timebase master does not provide it." ); ASSERTION( "Either the version of JACK you are using does pass BBT information, or the current timebase master does not provide it." );
}
song.dirty( false ); song.dirty( false );