APL 2000

APL 2000

Post by JohnAHalib » Thu, 21 Feb 2008 13:19:02



Is there a way using APL 2000 + Win to control the playing of an
MP3 in an APL program?
Anything perhaps similar to displaying a .bmp file?
 
 
 

APL 2000

Post by Tracke » Fri, 22 Feb 2008 09:37:18

Sure - there are several ways. One is to use the APL+Win built in Media control. Another is to use iTunes of Windows Media player as ActiveX controls under control of APL+Win.

 
 
 

APL 2000

Post by JohnAHalib » Sat, 23 Feb 2008 10:42:29


Tracker, thanks.
I did look at media, but was at a complete loss.
Do you have a simple example?
I still do APL as an actuary, and home use.
Have not done much with the Activex Controls.
 
 
 

APL 2000

Post by Tracke » Sat, 23 Feb 2008 15:07:57


Here is a simple example in APL2ASCII format:
Note: the file name is has a fully qualified path. Example:
C:\Documents and Settings\Me\My Documents\Audio\Pineknoll\2008-SS1\pkpssl20080223.mp3
Start of APL...

'f' #wi 'Create' 'Form'
f
'f.m' #wi 'Create' 'Media'
f.m
file{<-}'c:\path\file.mp3'
x #wi 'file' file
x #wi 'Stop'
x #wi 'Play'
x #wi 'Stop'
 
 
 

APL 2000

Post by Tracke » Sat, 23 Feb 2008 15:11:34


'f' #wi 'Create' 'Form'
f
'f.m' #wi 'Create' 'Media'
f.m
file{<-}'c:\path\file.mp3'
x #wi 'file' file
x #wi 'Stop'
x #wi 'Play'
x #wi 'Stop'

Maybe the above will come through better.
Note, you can also using Apple's ITunes application to play MP3 files, though it is more involved.
Does the above code snippet help?
 
 
 

APL 2000

Post by bwo » Fri, 29 Feb 2008 01:18:33


> f > > 'f.m> #wi 'Create' 'Media'
> f.m < > > ile{<-}'>:\path\file.mp3'
>> #wi 'file'>file
> #w> '>top'
> #wi 'Play'
> #wi >St>p'
>
> Maybe the above will come through better.>< > > Does the above code snippet help?


What is <x> ? Is it some APL2ASCII feature?
 
 
 

APL 2000

Post by Tracke » Fri, 07 Mar 2008 11:53:07


Should have been:
x{<-}'f.m' #wi 'Create' 'Media'