Adlib Patch Resource Format Specification and Freddy Pharkas, Frontier Pharmacist Development: Difference between pages

From Sierra Wiki
(Difference between pages)
Jump to navigationJump to search
sierraw>Andrew Branscom
Created page with "Revision 1<br /> Ravi I.<br /> Mar. 11, 2002 ===Preface=== The Adlib patch resource defines instruments for the Yamaha OPL2 FM synthesis chip. Other cards, including the or..."
 
m 4 revisions imported
 
Line 1: Line 1:
Revision 1<br />
{{DevSubpageLinks}}
Ravi I.<br />
{{DevStub}}
Mar. 11, 2002


==<br /> Game Design Document ==


===Preface===
* [[File:PDF.png]] [[File:FreddyPharkas-DesignDocument.pdf|Freddy Pharkas, Frontier Pharmacist Design Document]] &nbsp; <span class="DLInfo"> PDF File [574 KB]</span> <ref>[http://allowe.com/games/game-designs.html Al Lowe Game Design]</ref>


The Adlib patch resource defines instruments for the Yamaha OPL2 FM synthesis chip. Other cards, including the original SoundBlasters, that had the same or compatible chips also used the Adlib patch. The patch is traditionally numbered PATCH.004 or 4.PAT.
<blockquote>
<!-- Design notes here -->
</blockquote>


Sierra does not seem to have changed the format of its Adlib patch resource through the entire life of SCI. This file format applies to all IBM games.
==<br /> Game Transcript ==
<!--Dead link: Please post comments or questions to the SCI webboard: http://pub48.bravenet.com/forum/show.asp?usernum=4071584210


More SCI information is available on the WWW at
* [[File:PDF.png]][[:File:FreddyPharkas-GameTranscript.pdf|Freddy Pharkas, Frontier Pharmacist Game Transcript]] &nbsp; <span class="DLInfo"> PDF File [722 KB]</span> <ref>Text Extracted by [[:User:BBP|Bonny Ploeg]]</ref>
      http://freesci.linuxgames.com    The FreeSCI Project Homepage
      http://agisci.cjb.net            The Ultimate AGI & SCI Web Site-->
<!-- Dead link: The latest version of this specification should be available at http://www4.ncsu.edu/~rniyenga/-->


You can contact me personally at ravi.i@softhome.net, but I would prefer that SCI messages be posted on the webboard so everyone can see them.
<blockquote>
<!-- Transcript notes here -->
</blockquote>


===File Format===
==<br /> Exploring Game Resources ==


The first two bytes of an extracted patch file contain the bytes 89h 00h identifying a patch resource. These are not actually part of the resource data.
<blockquote>
<!-- Resources notes here -->


Patch files contain a block of 48 instrument definitions followed optionally by the magic number ABh CDh (CDABh when read into a little endian machine) and 48 more definitions. Each instrument definition is 28 bytes containing data for an Adlib channel composed of two operators.
===<br /> Resources Used ===


*


===Instrument Definitions===
====<br /> External Resources ====


An instrument definition has the following fields, each 1 byte long:
*
{| cellpadding="2" cellspacing="0" border="1"
</blockquote>
! offset || description || values
|-
| align="center" | 0h || op 1 key scaling || align="center" | 0 - 3
|-
| align="center" | 1h || op 1 frequency modulation || align="center" | 0 - 15
|-
| align="center" | 2h || channel feedback || align="center" | 0 - 7
|-
| align="center" | 3h || op 1 attack rate || align="center" | 0 - 15
|-
| align="center" | 4h || op 1 sustain level || align="center" | 0 - 15
|-
| align="center" | 5h || op 1 envelope generator || align="center" | true, false
|-
| align="center" | 6h || op 1 decay rate || align="center" | 0 - 15
|-
| align="center" | 7h || op 1 release rate || align="center" | 0 - 15
|-
| align="center" | 8h || op 1 amplitude || align="center" | 0 - 63
|-
| align="center" | 9h || op 1 amplitude modulation || align="center" | true, false
|-
| align="center" | Ah || op 1 vibrato || align="center" | true. false
|-
| align="center" | Bh || op 1 keyboard scale rate || align="center" | true, false
|-
| align="center" | Ch || algorithm (reversed) || align="center" | 0, 1
|-
| align="center" | Dh || op 2 key scaling || align="center" | 0 - 3
|-
| align="center" | Eh || op 2 frequency modulation || align="center" | 0 - 15
|-
| align="center" | Fh || unused || align="center" | &nbsp;
|-
| align="center" | 10h || op 2 attack rate || align="center" | 0 - 15
|-
| align="center" | 11h || op 2 sustain level || align="center" | 0 - 15
|-
| align="center" | 12h || op 2 envelope generator || align="center" | true, false
|-
| align="center" | 13h || op 2 decay rate || align="center" | 0 - 15
|-
| align="center" | 14h || op 2 release rate || align="center" | 0 - 15
|-
| align="center" | 15h || op 2 amplitude || align="center" | 0 - 63
|-
| align="center" | 16h || op 2 amplitude modulation || align="center" | true, false
|-
| align="center" | 17h || op 2 vibrato || align="center" | true. false
|-
| align="center" | 18h || op 2 keyboard scale rate || align="center" | true, false
|-
| align="center" | 19h || unused || align="center" | &nbsp;
|-
| align="center" | 1Ah || op 1 waveform || align="center" | 0 - 3
|-
| align="center" | 1Bh || op 2 waveform || align="center" | 0 - 3
|}


Note that the sense of the algorithm field is switched. A value of 0 means that the two operators are in synthesis while a value of 1 means that operator 1 modulates operator 2.
==<br /> Developer Notes ==


===Revision history===
<!-- <div class="Quote">
{{Quote|Attrib = [[Ken Williams]]
}}
Quoted text here
<ref>[[sgf:Topic.|www.sierragamers.com/forum/bbs/Topic.]] - <date> <time></ref>
</div>
-->
<blockquote>
<!-- Notes here -->
</blockquote>


Revision 1 - Mar. 11, 2002
==<br /> References ==
* First release of the specification
 
<references />
 
==<br /> Related Links ==
 
* [[Freddy Pharkas]]
* [[:Category:Game Development|Game Development]]
<!--
* [[Exploring Game Resources]]
-->


&nbsp;
&nbsp;


[[Category:SCI_Driver_Resources]]
[[Category:Development Pages]]
[[Category:Audio]]
<!-- [[Category:Game Design]] -->
<!-- [[Category:Game Transcripts]] -->
<!-- [[Category:Concept Art]] -->
<!-- [[Category:Game Development]] -->
<!-- [[Category:Game Developer Notes]] -->
<!-- [[Category:Game Resources]] -->
<!-- [[Category:Game Developer Notes]] -->

Latest revision as of 15:36, 16 February 2025


  This article is a Development development stub page. You can help the Sierra Wiki by expanding it.


 
 


Game Design Document


Game Transcript


Exploring Game Resources


Resources Used


External Resources


Developer Notes


References


Related Links