2024-12-01 19:35:24 +00:00
|
|
|
//| Copyright: (C) 2020-2024 Kevin Larke <contact AT larke DOT org>
|
|
|
|
//| License: GNU GPL version 3.0 or above. See the accompanying LICENSE file.
|
2023-05-01 01:24:26 +00:00
|
|
|
#ifndef cwSvgMidi_h
|
|
|
|
#define cwSvgMidi_h
|
|
|
|
|
|
|
|
namespace cw
|
|
|
|
{
|
|
|
|
namespace svg_midi
|
|
|
|
{
|
2023-05-21 16:39:50 +00:00
|
|
|
typedef handle<struct svg_midi_str> handle_t;
|
|
|
|
|
|
|
|
rc_t create( handle_t& hRef );
|
|
|
|
rc_t destroy( handle_t& hRef );
|
|
|
|
|
|
|
|
rc_t setMidiMsg( handle_t h, double secs, unsigned uid, unsigned ch, unsigned status, unsigned d0, unsigned d1 );
|
|
|
|
rc_t setMarker( handle_t h, double secs, unsigned uid, unsigned ch, unsigned markId, unsigned markValue );
|
|
|
|
rc_t write( handle_t h, const char* fname );
|
|
|
|
|
|
|
|
|
2023-05-01 01:24:26 +00:00
|
|
|
rc_t write( const char* fname, midi_state::handle_t msH );
|
|
|
|
|
2023-05-13 11:49:50 +00:00
|
|
|
rc_t midi_to_svg_file( const char* midi_fname, const char* out_fname, const object_t* midi_state_args );
|
|
|
|
rc_t piano_score_to_svg_file( const char* piano_score_fname, const char* out_fname, const object_t* midi_state_args );
|
2023-05-01 01:24:26 +00:00
|
|
|
|
|
|
|
rc_t test_midi_file( const object_t* cfg );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|