Hosted by
|
with Ada.Tags; use Ada.Tags;
with Real_Numbers; use Real_Numbers;
with Messages; use Messages;
with Clefs; use Clefs;
with Times; use Times;
with Music.Notes; use Music.Notes;
with Boxes.Staves; use Boxes.Staves;
with Boxes.Measures; use Boxes.Measures;
with Boxes.Clefs; use Boxes.Clefs;
with Boxes.Keys; use Boxes.Keys;
with Boxes.Times; use Boxes.Times;
with Boxes.Chords; use Boxes.Chords;
with Printers; use Printers;
with Font_Loaders; use Font_Loaders;
package Collectors.Graphic is
Quiet : constant Boolean := True;
type Graphic_Collector is new Collector with private;
Graphic_Collector_Tag : constant String;
type Graphic_Collector_Access is access all Graphic_Collector;
function Create
return Graphic_Collector_Access;
procedure Add_Stave
(This : access Graphic_Collector);
procedure Add_Measure
(This : access Graphic_Collector);
procedure Add_Clef
(This : access Graphic_Collector;
Add : access Clef);
procedure Add_Key
(This : access Graphic_Collector;
Add : access Key);
procedure Add_Time
(This : access Graphic_Collector;
Add : access Time);
procedure Set_Barline
(This : access Graphic_Collector;
Set : access Barline);
procedure Add_Chord
(This : access Graphic_Collector);
procedure Add_Note
(This : access Graphic_Collector;
Add : access Note);
procedure Layout
(This : access Graphic_Collector;
Font : access Font_Loader);
procedure Print
(This : access Graphic_Collector;
To : access Printer'Class;
Staff_Height : in Real);
private
type Graphic_Collector is
new Collector with
record
Middle_C : Integer := -6;
Chord : Chord_Box_Access;
Measure : Measure_Box_Access;
Stave : Stave_Box_Access;
end record;
Graphic_Collector_Tag : constant String := "collectors.graphic.graphic_collector";
end Collectors.Graphic;
|