Not sure I understand...stevepoole wrote:Hi Derek,
After some checking it would appear that I had renamed Dilwyn's full Toolkit suite as DJTK_bin for the music program!
This is wasteful, as only the code to acces font swapping is necessary....
Perhaps Dilwyn can advise just which sub-files are necessary so I can zip them for the FastStave_bas music notations ?
Then I would like to post the modified DJTK_bin file for the Jan 30th forum entry, so Derek's tweaks won't be necessary any more.
Next I shall cut down the full program, so that music samples can be added to any program at all, ( because FastStave_bas is a neat but comprehensive demo... )
Best Wishes, Steve.
If you mean that only the font setting instruction is needed, out of the entire toolkit, it may be easier to use a smaller single extension from my website at http://www.dilwyn.me.uk/tk/font.zip. If you want to link it to a QLiberator compiled program use $$asmb=flp1_font_cde,0,10 (or the equivalent REM $$=flp1_font_cde,0,10 in Turbo)
Although these days, I don't know what the advantage of using such an extension would be (or the DJToolkit one from the toolkit Norman wrote for me so many moons ago) since 99.9% of QL systems these days have Toolkit 2, which contains a perfectly good extension called CHAR_USE to change fonts.
The only advantage of using the DJToolkit one would be that it also has the WHERE_FONT function to track down the address of an already installed font for a given channel. So Norman's offer to extract the keyword(s) you want may be useful in that respect. You could probably use the DEA disassembler to extract keywords from given toolkits, although it's not the easiest of processes! Plus, potentially copyright issues with some non-PD toolkits. There's an article about using DEA to do this on Quanta's website, at https://quanta.org.uk/software-library/helpline/ - scroll down to article 35, Toolkits and Extensions and click on the link to download the PDF file to read.
(I haven't yet had a chance to look at Steve's music program, hence why I sound a little confused).