Difference between revisions of "OSWORD &08"

From BeebWiki
Jump to: navigation, search
m (1 revision)
(Updated references.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:OSWORD]]
 
[[Category:OSWORD]]
{{#customtitle:OSWORD 8 - Define a sound envelope}}
+
{{PageTitle|OSWORD &08 (8): Define a sound envelope}}
 +
__NOTOC__
 
==Specification==
 
==Specification==
 
  On entry:
 
  On entry:
Line 20: Line 21:
 
==Calling from BBC BASIC==
 
==Calling from BBC BASIC==
 
* <code>ENVELOPE e,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13</code> calls OSWORD &08.
 
* <code>ENVELOPE e,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13</code> calls OSWORD &08.
 +
 +
==Implementations==
 +
The OSWORD &08 ENVELOPE call merely copies the parameters into the specified envelope buffer.
 +
The sound system then uses this data when generating and updating sounds.
  
 
==See Also==
 
==See Also==
* [[SOUND]], [[ENVELOPE]]
+
* [[SOUND]] for details on controlling the sound system
 +
* [[ENVELOPE]] for details on envelopes
 
* [[OSWORD &07]]
 
* [[OSWORD &07]]
 
* http://mdfs.net/Docs/Comp/BBC/Oswords
 
* http://mdfs.net/Docs/Comp/BBC/Oswords
 
==Implementations==
 
The OSWORD &08 ENVELOPE call meerly copies the parameters into the specified envelope buffer.
 
The sound system then uses this data when generating and updating sounds.
 
  
 
[[User:Jgharston|Jgharston]] 20:14, 29 July 2010 (UTC)
 
[[User:Jgharston|Jgharston]] 20:14, 29 July 2010 (UTC)
 +
[[User:Jgharston|Jgharston]] ([[User talk:Jgharston|talk]]) 18:01, 7 January 2023 (CET)

Latest revision as of 18:01, 7 January 2023

OSWORD &08 (8): Define a sound envelope

Specification

On entry:
  XY?0 =envelope number
  XY?1 =length of each envelope step (b7=auto repeat pitch envelope)
  XY?2 =change of pitch in step 1
  XY?3 =change of pitch in section 2
  XY?4 =change of pitch in section 3
  XY?5 =number of steps in section 1
  XY?6 =number of steps in section 2
  XY?7 =number of steps in section 3
  XY?8 =change of amplitude per step in attack phase
  XY?9 =change of amplitude per step in decay phase
  XY?10=change of amplitude per step in sustain phase
  XY?11=change of amplitude per step in release phase
  XY?12=target amplitude at end of attack phase
  XY?13=target amplitude at the end of the decay phase

Calling from BBC BASIC

  • ENVELOPE e,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13 calls OSWORD &08.

Implementations

The OSWORD &08 ENVELOPE call merely copies the parameters into the specified envelope buffer. The sound system then uses this data when generating and updating sounds.

See Also

Jgharston 20:14, 29 July 2010 (UTC) Jgharston (talk) 18:01, 7 January 2023 (CET)