Hosted by
|
package body Midi_Instruments is
function Create
(ID : in String;
Channel : in Natural;
Program : in Natural)
return Midi_Instrument_Access
is
Result : Midi_Instrument_Access := new Midi_Instrument;
begin
To_String_Access(ID, Result.ID);
Result.Channel := Channel;
Result.Program := Program;
return Result;
end Create;
function Get_ID
(This : access Midi_Instrument)
return String is
begin
return To_String(This.ID);
end Get_ID;
function Get_Channel
(This : access Midi_Instrument)
return Natural is
begin
return This.Channel;
end Get_Channel;
function Get_Program
(This : access Midi_Instrument)
return Natural is
begin
return This.Program;
end Get_Program;
end Midi_Instruments;
|