Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 exptools; site ihwpt.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!ihwpt!knudsen
From: knudsen@ihwpt.UUCP (mike knudsen)
Newsgroups: net.micro.amiga,net.music.synth
Subject: Amiga Sound Answers & Comments
Message-ID: <485@ihwpt.UUCP>
Date: Wed, 25-Sep-85 18:53:54 EDT
Article-I.D.: ihwpt.485
Posted: Wed Sep 25 18:53:54 1985
Date-Received: Sat, 28-Sep-85 04:34:57 EDT
Distribution: net
Organization: AT&T Bell Laboratories
Lines: 54
Xref: watmath net.micro.amiga:225 net.music.synth:540

(Re-posting due to additions & machine-change foulups)

Well, here I am answering my own dumb questions and, I hope,
some others' as well.  A few days ago I posted some queries about
the Amiga's sound chip scheme.  Turns out the answers were in the
Byte article that I had already carefully read!  (Whatever you
do, don't let your age go over 40... blows your RAMs....)

	The news is good and bad.  Yes, the chip allows for
AM and FM synthesis.  It generates arbitrary waveforms out
of previously-loaded tables, just like on the KIM back in '77,
but can mung these together by AM or FM.  And, these tables
can be as long as you want, so as to play out a digitized (sampled)
one-shot sound event (like a glass marble shattering).
No mention of an on-board A/D.  Hopefully you can write
directly to the D/A converters.
	Bad news: there are only 4 channels of sound.
Any kind of modulation sacrifices a channel to another,
so only two FM notes could be played together.  Not so hot.
Good news: each channel has its own envelope generator (ADSR).
Also, you could prestore nice 4-note major, minor, etc. chords
and play a whole chord out of one channel!

	Fact:  the channels play out 8-bit bytes of samples
(not really hi-fi), tho they read 16-bit words at a time.
Probably requires an even number of samples per waveform.
	More bad news: pitch is controlled by period, not frequency.
And that's period between samples.  The resolution is around 279
nsec, or 1 / 7.++ MHz clock rate.  So, if your waveform contains
N samples, to play it at 440 Hz requires a divider D such that
	440 = 7M / (N * D).
Trouble is, for reasonable N values, like 256, at higher pitches
the D values get pretty small, so your pitch resolution
is limited, making it hard to get higher notes in tune.
Can beat this by making hi-pitch wave tables shorter
(which is physically a good idea), but it's a pain.
	Also, the FM jiggles period, not frequency.
Serious FM usually drives frequency negative, which I'm sure this chip
can't handle.  And the modulation will be very nonlinear
(but that may just make for richer sounds).
NEW:	Each channel is hard-wired to the left or Right stereo
channel.  No mixing, no panning (constant-power or otherwise)!

	Summary:  Amiga music is OK, if you use lots of ingenuity
to beat the system.  I've been beating KIMs and Cocos for years;
when do we get a home computer with a built-in music system that
at least *postpones for a year* your craving for a REAL
synthesizer and a MIDI interface?
	mike k
PS: watch the digital signal processing (DSP) microchips
that have been out for a while.  Someday this technology
may give us worthwhile built-in music capabilities,
or enuf power on one little PC board to send the DX-7s
to the garage sales.