The Mudcat Café TM
Thread #57226   Message #899237
Posted By: GUEST,Jon
26-Feb-03 - 01:11 PM
Thread Name: Tech: how could we write music via the cat
Subject: RE: Tech: how could we write music via the cat
Just given it a bit longer thought for dealing with a single ABC in a post. It would probably be easiest to have some tag on a post to indicate it contained abc to play. One simple "if" could then be used to determine if abc existed in a particular post to a thread and a link "click to play" could be given at the bottom of any such post.

All that would be needed then is to extract the abc - a search to find "X:" in the post and to take each subsequent line, say down to a blank line as that is supposed to be an abc end of file marker should do that, the abc written to a temp file, to run abc2midi and return content as a MIDI.

Maybe not an ideal solution but I'd think a relatively simple approach to what at first sounds a very difficult job.

Jon