Browse Source

Sequencer: Cover up bug in gcc-4.8.

tags/non-daw-v1.2.0
Jonathan Moore Liles 10 years ago
parent
commit
f68232ab5c
3 changed files with 8 additions and 8 deletions
  1. +2
    -2
      nonlib/MIDI/event.H
  2. +6
    -0
      nonlib/MIDI/midievent.C
  3. +0
    -6
      nonlib/MIDI/midievent.H

+ 2
- 2
nonlib/MIDI/event.H View File

@@ -74,8 +74,8 @@ namespace MIDI
void deselect ( void );
bool selected ( int n ) const;
bool selected ( void ) const;
void note ( char note );
unsigned char note ( void ) const;
virtual void note ( char note );
virtual unsigned char note ( void ) const;
tick_t note_duration ( void ) const;
void note_duration ( tick_t l );



+ 6
- 0
nonlib/MIDI/midievent.C View File

@@ -99,6 +99,12 @@ namespace MIDI
_data.msb = vel & 0x7F;
}

unsigned char
midievent::note ( void ) const
{
return _data.lsb;
}

void
midievent::note ( char note )
{


+ 0
- 6
nonlib/MIDI/midievent.H View File

@@ -222,12 +222,6 @@ namespace MIDI
return (opcode() == NOTE_OFF);
}

inline unsigned char
midievent::note ( void ) const
{
return _data.lsb;
}

inline bool
midievent::operator< ( const midievent &rhs ) const
{


Loading…
Cancel
Save