Browse Source

nonlib/MIDI: Cleanup some type signatures.

tags/non-daw-v1.3.0
Jonathan Moore Liles 4 years ago
parent
commit
b0d850ff76
2 changed files with 11 additions and 11 deletions
  1. +4
    -4
      nonlib/MIDI/midievent.C
  2. +7
    -7
      nonlib/MIDI/midievent.H

+ 4
- 4
nonlib/MIDI/midievent.C View File

@@ -87,19 +87,19 @@ namespace MIDI
memcpy( p, &_data, l );
}

int
byte_t
midievent::size ( void ) const
{
return midievent::event_size( opcode() );
}

void
midievent::note_velocity ( int vel )
midievent::note_velocity ( byte_t vel )
{
_data.msb = vel & 0x7F;
}

unsigned char
byte_t
midievent::note ( void ) const
{
return _data.lsb;
@@ -111,7 +111,7 @@ namespace MIDI
_data.lsb = note & 0x7F;
}

unsigned char
byte_t
midievent::note_velocity ( void ) const
{
return _data.msb;


+ 7
- 7
nonlib/MIDI/midievent.H View File

@@ -59,7 +59,7 @@ namespace MIDI

public:

static inline int
static inline byte_t
event_size ( byte_t op )
{
switch ( op )
@@ -104,15 +104,15 @@ namespace MIDI
void opcode ( byte_t o );
void lsb ( byte_t n );
void msb ( byte_t n );
int lsb ( void ) const;
int msb ( void ) const;
byte_t lsb ( void ) const;
byte_t msb ( void ) const;
int pitch ( void ) const;
void pitch ( int n );
void data ( byte_t D1, byte_t D2 );
void data ( byte_t *D1, byte_t *D2 ) const;
void raw ( byte_t *p, int l) const;
int size ( void ) const;
void note_velocity ( int vel );
byte_t size ( void ) const;
void note_velocity ( byte_t vel );
bool is_note_on ( void ) const;
bool is_note_off ( void ) const;
virtual unsigned char note ( void ) const;
@@ -198,13 +198,13 @@ namespace MIDI
_data.msb = n & 0x7F;
}

inline int
inline byte_t
midievent::lsb ( void ) const
{
return _data.lsb;
}

inline int
inline byte_t
midievent::msb ( void ) const
{
return _data.msb;


Loading…
Cancel
Save