home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!lysator.liu.se!manne
- From: manne@lysator.liu.se (Manne Landeholm)
- Subject: Re: sound amplitude/frequency modulation
- Message-ID: <1931@lysator.liu.se>
- Sender: news@lysator.liu.se
- Nntp-Posting-Host: robert.lysator.liu.se
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- References: <lfdlkeINNo5l@news.bbn.com>
- Date: Fri, 6 Nov 1992 14:31:56 GMT
- Lines: 33
-
- c471040@mizzou1.missouri.edu writes:
-
- >I'm looking for code (either assembly language or C) which will allow me
- >to use one sound channel to modulate another. Please contact
- >biojosh@mizzou1.missouri.edu
-
- You should not use another channel for modulation. LFO-modulation can easily be
- made by the 68000 by writing to the corresponding volume- and period-registers.
- All trackers I know of let you do this using control-codes in the song.
- It's just not worth allocating an audio-channel for such an easy task.
- Though, it's not very hard to do this using DMA. For amplitude-modulation you
- just create a sample with the range 0-64 (let's say a sine-wave), set the
- corresponding modulation bit and start the modulation-channel + the channel
- to be modulated. The per. register of the modulation-channel now controls the
- speed of the amplitude-modulation.
- But I must reapeat: This is a very EXPENSIVE way of modulation.
-
- I have a book called 'Amiga System Programmer's Guide' (SYBEX(?)), showing an
- example of DMA-controlled modulation written in assembler. Borrow it from a
- friend, it's really not worth buying...
-
- :-) Have fun.
-
-
-
-
-
-
-
-
-
-
-
-