[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

5132.0. "Samples from other systems..." by DEFOE::JAMIE (Thunder knows all things.) Mon Oct 21 1991 09:32

    Does anyone know how I can hear samples for the SUN Sparcstation on
    the Amiga ? Is there any conversion necessary or is there a player that
    will cope with them directly ? And how about samples for the Mac ???
    
    Cheers,
    
    				Jamie.
T.RTitleUserPersonal
Name
DateLines
5132.1PEEVAX::GIFFORDMy dunny was kicked down by chooks!Mon Oct 21 1991 21:0929
Conversion of samples tends to be very simple (ish).

Firstly be aware (look at the data), to see if the sample has a low at 0 or -127.

(I*M PC samplers tend to have a low starting at 0.)

on the AMIGA (cheers from the crowd), samples have a low commencing at -127.

How do I convert then I hear you asking. Simple just add -127 to each sample 
value.

Next you will need to determine the sample rate - I normally guess - a normal-ish
rate if between 8k and 12k. 

Finally you will have to read the sample into memory - thats fairly easy.

Then with trusty Rom kernal manual at your side, allocate and audio channel
and play it!

In EOT:: are the rom kernal manual examples, which have nice bits of code which
will....

show you how to allocate a channel
and show you how to play a sample!

Stan.

P.S I really should upload the undocumented, uncommented kludges I have
put together over the years to do some of this stuff!
5132.2TENAYA::MWMMon Oct 21 1991 21:306
Better yet, how about turning those into a audio package that is to audio
files what PPM/PBM are to graphics files? There are people on usenet who'd
*love* to have this kind of thing (me, I want it only after I get audio
out of my DECStation...).

	<mike
5132.3?FORTY2::CADWALLADERRifle butts to crush you down...Tue Oct 22 1991 09:351
Who's this Ron Kernel?	:-)
5132.4DEFOE::JAMIEThunder knows all things.Tue Oct 22 1991 12:496
    He's a famous writer of operating systems, I think. I've seen books
    written by him for loads of different machines so he must be pretty
    hot at what he does...
    
    
    				Jamie.
5132.5Macto8SVXCRISTA::CAPRICCIOGarth, take your Ritalin...Tue Oct 29 1991 02:5132
    I came across this one while looking for Waldo. It's probably in lotsa
    other places already, but if it ain't, try CRISTA""::AMIGA:MACTO8SVX.LZH.
    Hope it helps...

    Pete




                             Mac_To_8SVX
                                 by
                             Tim Friest
                             8-Aug-1990

MacTo8SVX is a AmigaOS 2.0 program which converts Macintosh digitized sound
data to an Amiga IFF 8SVX sound file.

The program assumes that the Mac data is simply that (a stream of bytes
without a header, resource fork, or whatever).  I got the speeds for the
sampling rates from the March/April 1990 AmigaMail article by John Orr.

This program only runs under AmigaOS 2.0 (I couldn't resist the IFFParse
library or the new DOS calls...  Thanks to Leo, Stuart, and C=.

This program is not copyrighted and may be destributed or modified in any
way you desire.  If you make modifications, I'd appreciate credit where due.

I can be reached:

USMail:        Tim Friest                      BIX: TFRIEST
       211 McCarrey #1
       Anchorage, AK 99508