home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / soundcar / 5617 < prev    next >
Encoding:
Text File  |  1992-12-21  |  3.8 KB  |  87 lines

  1. Newsgroups: comp.sys.ibm.pc.soundcard
  2. Path: sparky!uunet!usc!sdd.hp.com!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!sciborg.uwaterloo.ca!ptran
  3. From: ptran@sciborg.uwaterloo.ca (Phat H Tran)
  4. Subject: Re: Calling all GUS SDKers and users!
  5. Message-ID: <BzJx6y.9Ku@watserv2.uwaterloo.ca>
  6. Sender: news@watserv2.uwaterloo.ca
  7. Organization: University of Waterloo
  8. References: <1992Dec18.225839.62168@cc.usu.edu>
  9. Date: Sun, 20 Dec 1992 09:32:58 GMT
  10. Lines: 75
  11.  
  12. In article <1992Dec18.225839.62168@cc.usu.edu> sl8nl@cc.usu.edu writes:
  13. >Ouch, I just ran into a major brick wall in my GUS modplayer...
  14. >
  15. >All you with SDK's, listen up.  Maybe I'm missing a command...
  16. >
  17. >OK,  as you are all aware, module samples have a start, length, loops, and
  18. >loope, illustrated like.
  19. >
  20. >Start                       Length
  21. >+--------------------------------+
  22. >      -----------------  
  23. >   LoopS            LoopE            
  24. >
  25. >Alright, as far as I can tell, the GUS only supports this.
  26. >
  27. >Start-----------------------End
  28. >           LoopS------------End
  29. >
  30. >Am I missing something??????????    This is going to really hurt in looping
  31. >samples if it can't do it like Amiga modules!
  32. >
  33. >Joshua Jensen
  34. >
  35.  
  36. The GUS seems to be oriented toward playing MIDI instruments.  You
  37. have the attack transient, which is played once and is located before
  38. loopS, and you have the sustain waveform that is looped for the sustain
  39. and faded for the release.  Since few real instruments experience a
  40. significant change in waveform as their sustain dies, this approach is
  41. quit simple and yet realistic.  Instrument samples for MOD files also
  42. have the attack and sustain phases.  However, I don't think MOD players
  43. merely fade the sustain waveform for the release, and as a result, 
  44. there's a release phase in which the sample itself fades.
  45.  
  46. The MOD approach is more flexible in the sense that you can have weird
  47. and wonderful waveform changes occuring at the end of a note.  But a
  48. disadvantage is that you can only end notes right at the end of the
  49. loop.  If you end the note when the middle of the looped section is 
  50. played, you will probably hear a "pop" since the release section of the
  51. sample was only aligned for the end of the loop.  The GUS approach will
  52. let you end a note at any time.  Also, the MOD sample format means that
  53. a long release time means a huge sample size.
  54.  
  55. If you want to play MOD files faithfully on the GUS, then you can split
  56. the MOD sample into two GUS patches:
  57.  
  58. Start--------------------------------------------------------Length
  59.           LoopS---------------------------LoopE
  60. Start---------------------------------------EndStart------------End
  61.           LoopS---------------------------LoopE                    
  62. Patch 1                                        Patch 2
  63.  
  64. Play the first patch at the note on signal, and then play the 
  65. second patch on note off.  I don't know how easily it would be to
  66. implement so that the two patches meld nicely together.
  67.  
  68. A better way to play MODs on the GUS is to drop the release phase
  69. from the MOD samples altogether, keep only up to LoopE, and then have
  70. the GUS handle the release in its hardware.  This approach will save
  71. a lot of memory, and should not affect the sound of the MOD any since
  72. practically all release phases are copies of the sustain phase with
  73. the volume diminishing over time.
  74.  
  75. Well, there ya have it!  I just wrote a whole article on two subjects
  76. I know next to nothing about.  I have no idea how the GUS actually works 
  77. (No, I don't have the SDK.) and I know even less about the MOD format.
  78. I am just going on what info Josh presented in his query and some 
  79. assumptions of mine, the biggest being that the release phase of the
  80. MOD sample is a complete sample of a note fading.  For all I know,
  81. it could actually be a fixed-amplitude waveform that the MODPlayer
  82. fades during playback instead.  Please correct me if I'm wrong
  83. anywhere, anybody.  I'm just tossing ideas around.
  84.  
  85. Phat.
  86.  
  87.