Menu

Object oriented wrapper functions

Object Oriented Wrapper Functions

To reduce the complexity and to generalize the programming interface microTone Module bundled with Object Oriented Wrapper. Wrapper modules and packages for each programming language is located in following locations:

  • C++: \pkg\msvc
  • C++ Builder: \pkg\cbuilder
  • Delphi: \pkg\delphi
  • Lazarus: \pkg\lazarus
  • .NET framework: F:\UTM\utm\lib\i386-win32 (utmclr.dll)

MicroTone class methods

SendByte

Send byte to microTone Module.

Parameters: OutData - byte to send to microTone Module.
Return: Return status of the transmission.

//Lazarus/Delphi/Pascal
function SendByte(OutData : Byte) : Word;

//C++
short sendByte(char OutData);

//.NET framework (C# as example)
public ushort SendByte(byte OutData)

SendShort

Send short or 16 bit numerical data to microTone Module.

Parameters: OutData - 16 bit data to send to microTone Module.
Return: Return status of the transmission.

//Lazarus/Delphi/Pascal
function SendShort(OutData: Word): Word;

//C++
short sendShort(short OutData);

//.NET framework (C# as example)
public ushort SendShort(ushort OutData);

Send

Send 3 bit data or control word to microTone Module.

Parameters: Control word or 3 bit data to send to microTone Module.
Return: Return status of the transmission.

//Lazarus/Delphi/Pascal
function Send(OutData : Byte): Word;

//C++
short send(char OutData);

//.NET framework (C# as example)
public ushort Send(byte OutData);

Related

Documentation: microTone Module API functions

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.