home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The AGA Experience 2
/
agavol2.iso
/
software
/
utilities
/
educational
/
octamedpro&midi
/
docs
/
arexx&octamed.txt.pp
next >
Wrap
Text File
|
1992-09-02
|
3KB
|
66 lines
ARexx and OctaMED
An exploration of multi-tasking
For multimedia applications
An Article written for The Official MED Users Group by Gareth R.Craft
In 1991, the Amiga won the 'European Home Computer of the Year' award. Its
supeior Graphic users Interface, multi-tasking, and impressive graphic and
sound abilities have brought a new level of computing power to the 'home' user.
Now, one thing that everybody expects from any personal computer is the ability
to offer control and automation over all its tasks. This was true even when
home computers were paltry affairs by today's standards. As users become less
dazzled by the abilities of the machine, they become more intrested in how to
use it practically themselves. This shift from passive to a more active style
of home computing stresses the need for a personal programming language for the
Amiga.
The lay person could well be excused for thinking that such a language should
come automatically with the computer. In an ideal world that may be the case,
but in reality, good software always takes time to follow the hardware. For
many reasons, neither AmigaBASIC nor AmigaODS ever became popular for personal
programming. A substantial vacuum existed in this area. That was until the
long awaited release of Workbench 2.0 on the Amiga which introduced a new
contender in the personal programming lamguage stakes - Arexx.
ARexx is derived from the REXX language used on the big computers for script
control and interprocess communication. It was implemented on the Amiga by
Bill Hawes, a programmer with some impressive programs to his name. It is
generally agreed that the implementation is extremely sound, and that it takes
special advantage of the Amiga's features. ARexx is not a new language, and
has had something of a cult following for quite a while, especially among US
programmers. However, once its super-practical nature started to become
apparent, more and more people became interested. Today, many serious
applications have ARexx support and Teijo Kinunen's OctaMED is a good example
where multi-tasking and multi-media follow this new ARexx tradition. What
follows is a discussion of some of the ARexx Commands and writing an ARexx
script for the OctaMEDPlayer and multi-tasking.
The ARexx ADDRESS instruction, which has a number of forms including 'address
COMMAND' is the method used to communicate with the underlying AmigaDOS by
setting up an ARexx host address.
e.g.
If we have OctaMEDPlayer in df0: we can use ARexx to ask AmigaDOS to load and
run the program.
/* Music Example.rexx */
address command ' run df0:OCTAMEDPLAYER'
say 'loading OCTAMEDPLAYER Program'
Now in order to send some mes