home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15463 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.5 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!lysator.liu.se!manne
  3. From: manne@lysator.liu.se (Manne Landeholm)
  4. Subject: Re: sound amplitude/frequency modulation
  5. Message-ID: <1931@lysator.liu.se>
  6. Sender: news@lysator.liu.se
  7. Nntp-Posting-Host: robert.lysator.liu.se
  8. Organization: Lysator Academic Computer Society, Linkoping University, Sweden
  9. References: <lfdlkeINNo5l@news.bbn.com>
  10. Date: Fri, 6 Nov 1992 14:31:56 GMT
  11. Lines: 33
  12.  
  13. c471040@mizzou1.missouri.edu writes:
  14.  
  15. >I'm looking for code (either assembly language or C) which will allow me
  16. >to use one sound channel to modulate another. Please contact
  17. >biojosh@mizzou1.missouri.edu
  18.  
  19. You should not use another channel for modulation. LFO-modulation can easily be
  20. made by the 68000 by writing to the corresponding volume- and period-registers.
  21. All trackers I know of let you do this using control-codes in the song.
  22. It's just not worth allocating an audio-channel for such an easy task.
  23. Though, it's not very hard to do this using DMA. For amplitude-modulation you
  24. just create a sample with the range 0-64 (let's say a sine-wave), set the 
  25. corresponding modulation bit and start the modulation-channel + the channel
  26. to be modulated. The per. register of the modulation-channel now controls the
  27. speed of the amplitude-modulation.
  28. But I must reapeat: This is a very EXPENSIVE way of modulation.
  29.  
  30. I have a book called 'Amiga System Programmer's Guide' (SYBEX(?)), showing an
  31. example of DMA-controlled modulation written in assembler. Borrow it from a
  32. friend, it's really not worth buying...
  33.  
  34. :-) Have fun.
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.