enable and extend EVORAL_MIDI_XML. Useful for Debugging. Any objections?
git-svn-id: svn://localhost/ardour2/branches/3.0@13223 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f8b7687f78
commit
3f5c6f8190
|
@ -373,7 +373,8 @@ def build(bld):
|
|||
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
||||
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
||||
'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
|
||||
'PROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"'
|
||||
'PROGRAM_NAME="' + bld.env['PROGRAM_NAME'] + '"',
|
||||
'EVORAL_MIDI_XML=1'
|
||||
]
|
||||
|
||||
#obj.source += ' st_stretch.cc st_pitch.cc '
|
||||
|
|
|
@ -71,8 +71,29 @@ MIDIEvent<Time>::to_xml() const
|
|||
result->add_property("Number", long(pgm_number()));
|
||||
break;
|
||||
|
||||
case MIDI_CMD_NOTE_ON:
|
||||
result = new XMLNode("NoteOn");
|
||||
result->add_property("Channel", long(channel()));
|
||||
result->add_property("Note", long(note()));
|
||||
result->add_property("Velocity", long(velocity()));
|
||||
break;
|
||||
|
||||
case MIDI_CMD_NOTE_OFF:
|
||||
result = new XMLNode("NoteOff");
|
||||
result->add_property("Channel", long(channel()));
|
||||
result->add_property("Note", long(note()));
|
||||
result->add_property("Velocity", long(velocity()));
|
||||
break;
|
||||
|
||||
case MIDI_CMD_BENDER:
|
||||
result = new XMLNode("PitchBendChange");
|
||||
result->add_property("Channel", long(channel()));
|
||||
result->add_property("Value", long(pitch_bender_value()));
|
||||
break;
|
||||
|
||||
default:
|
||||
// The implementation is continued as needed
|
||||
result = new XMLNode("NotImplemented");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -82,6 +103,7 @@ MIDIEvent<Time>::to_xml() const
|
|||
#endif // EVORAL_MIDI_XML
|
||||
|
||||
template class MIDIEvent<Evoral::MusicalTime>;
|
||||
template class MIDIEvent<long long>;
|
||||
|
||||
} // namespace Evoral
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ def build(bld):
|
|||
obj.use = 'libsmf libpbd'
|
||||
obj.vnum = EVORAL_LIB_VERSION
|
||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||
obj.defines = ['PACKAGE="libevoral"' ]
|
||||
obj.defines = ['PACKAGE="libevoral"', 'EVORAL_MIDI_XML=1' ]
|
||||
|
||||
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
|
||||
# Static library (for unit test code coverage)
|
||||
|
@ -117,7 +117,7 @@ def build(bld):
|
|||
obj.linkflags = '-lgcov'
|
||||
obj.cflags = [ '-fprofile-arcs', '-ftest-coverage' ]
|
||||
obj.cxxflags = [ '-fprofile-arcs', '-ftest-coverage' ]
|
||||
obj.defines = ['PACKAGE="libevoral"' ]
|
||||
obj.defines = ['PACKAGE="libevoral"', 'EVORAL_MIDI_XML=1' ]
|
||||
|
||||
# Unit tests
|
||||
obj = bld(features = 'cxx cxxprogram')
|
||||
|
|
Loading…
Reference in New Issue
Block a user