hello, after a first pass reading the code, i dropped some notes and questions about what to do and where. As there is no developer docs, i need to understand the global behavior of the program and its specificities. So the following statements are considered for a first step : parsing the meta events of the SMF file into the meta track of the song structure. ev.h > add a "#DEFINE EV_MARKER 0xValue" > errr… if it must be only 1 byte (char), then there is only 0x01 left, is it usable ? > add a #"define marker_val" to struct ev {...} > what value ? v0 or v1 ? ev.c > ev_dbg(…) : add EV_MARKER case smf.c > smf_getvar(…) read a variable length value usefull to get the marker info > smf_puttrack : store a track in the smf > add marker events to the meta track ? > song_exportsmf : open the smf and store the whole song > add marker events to the meta track ? > smf_gettrack : parse a track 'varlen event ... ' > THE PLACE TO PARSE THE MARKER EVENTS > add statement : else if (type == 0x06) {…} /*marker event*/ song.h > add an entry to "struct song" for a marker meta track, or use the meta track ? (the meta track is reffered as "tempo track" in comments) song.c > add a function like : does_song_have_markers(…) ? > if any, add marker track initialisation > add EV_MARKER case to song_metaput(…) if some action is to be done when a marker is reached xxxx? > add a new proc "lmarkers" to show the list of markers listed in the song's meta track I'm looking forward to your answers about the meta track and the #define mainly, then if i have not missed big things, this first step should be doable for me. RaphaëlReceived on Tue, 13 Nov 2012 00:06:19 +0100
This archive was generated by hypermail 2.1.8 : Wed Nov 08 2017 - 16:32:23 CET