I fixed a few small details on the PHP interface.
First, the "index.php" page cleans up every temp trace file or temp
object prototypes folder if these are older than 24 hours and not
created in the current session. (This might happen if your browser stays
on while you are doing other things.)
Various problems are solved, among which the output file and format
would be reset to "out.sco" and "Csound" when compiling the grammar or
changing the output folder.
The Csound object prototype normally deals with all variables currently
used by BP2.9.8. However I don't remember the meaning of “Tpict”, so it
is displayed and cannot be changed. Probably dealing with the graphic
interface.
I am also unable to calculate the standard duration of an object.
Variable Tref is not the duration. I remember it is important but I need
to look at the C code to remember its use.
File headers saved on the PHP interface all start with:
// Bol Processor BP3 compatible with version BP2.9.8
The important part is BP2.9.8 because when BP2.9.8 reads it, it will
figure out that this is the format of the latest version, namely iv = 18
if I rememember well. There is a table in the C code containing the
names of all versions, and BP2.9.8 is the 18th entry.
This may be useful for making BP2.9.8 able to read the "-mi" files
edited by the PHP code, so we can check in sounds and graphics that no
parameter has been confused.
I said that the "objects.php" page is problematic because the "SAVE"
button should be clicked after modifying parameters in some prototypes.
There is a risk that changes be lost. I am working on an ‘autosave’
procedure that will record data changes every minute.
THat's all for the moment! I am enclosing the 8 PHP files which have
been modified.
Bernard Bel
|