Hosted by
|
with Strings; use Strings;
package Midi_Instruments is
type Midi_Instrument is limited private;
type Midi_Instrument_Access is access all Midi_Instrument;
function Create
(ID : in String;
Channel : in Natural;
Program : in Natural)
return Midi_Instrument_Access;
function Get_ID
(This : access Midi_Instrument)
return String;
function Get_Channel
(This : access Midi_Instrument)
return Natural;
function Get_Program
(This : access Midi_Instrument)
return Natural;
private
type Midi_Instrument is limited record
ID : String_Access;
Channel : Natural;
Program : Natural;
end record;
end Midi_Instruments;
|