Dear all,
I have completed graphic routines on the console and checked them in
"objects" and "pianoroll" display modes for simple notes and
time-patterns. The display of sound-objects will be checked/fixed once
the console is able to load sound-object prototypes. This will also make
it possible to create several images in the same command.
At this point I am tempted to stop working on branch "graphics-for-BP3"
and suggest to merge it with "BP3-develop". The reason is that we might
otherwise need to deal with conflicts because of changes in the
Makesound() procedure that have implications on real-time MIDI.
Graphic display requires the PHP interface to create a window and
interpret CANVAS code. The latest version of the interface adjusts
window sizes to image sizes.
It is possible to create graphic with a command line such as:
../bp produce -gr ../ctests/-gr.NotReich -se ../ctests/-se.NotReich -d
--csoundout ../my_output/out.sco --traceout
../temp_bolprocessor/trace_7556e342225455a131e76b9dc226390e.txt --seed 15524
Note that this command is asking for a trace and providing the path and
name of the trace file. (The name contains the session ID.)
Sending a command without trace:
../bp produce -gr ../ctests/-gr.NotReich -se ../ctests/-se.NotReich -d
--csoundout ../my_output/out.sco --seed 15524
will end up with "Segmentation fault: 11".
The reason is that the console needs a location for the image file, so
it uses the path of the trace to locate the image, ending up with:
../temp_bolprocessor/trace_7556e342225455a131e76b9dc226390e_image_1.html
To use graphic routines without a trace we will need a new option
specifying a path and the beginning of name(s) for the image file(s).
Names will automatically end with "image_1", "image_2" etc. Anyway, if a
full name is provided the machine could append it with "_1", "_2" etc.
Currently, the console picks up in the settings file the type of image:
"objects" or "pianoroll". In case no settings file is available, this
option could also be provided in the command line. This is less critical
because the default type of an image is set to "pianoroll" if the item
contains only simple notes and "objects" in case sound-objects have been
found. Still, the two options are possible and interesting if the item
contains simple notes and time-patterns, see for instance the attached
images. So it would be fair to have a command option forcing the image
type. I will also check the display of sound-objects in pianoroll based
on notes contained in these objects.
I checked all these procedures with several web browsers on Mac and I
hope they will work identically in a Windows environment… ;-)
Bernard
|