<?php require_once "fs_inner_context.inc"; ?>
<html>

<head>

<title><?php echo $HTML_TITLE; ?></title>

</head>

<?php echo html_bgcolor_body($BG_COLOR); ?>

<!-- Standard hierarchical header structure -->

<?php echo $CS_HEADER_HTML; ?>

<?php echo html_linked_text("<em>Courses</em>", $CS_COURSES_ROOT_URL); ?>

<?php echo $HTML_HEADER; ?>

<hr>

<h3>Trivial additive synthesis</h3>

<p>
Here is an example of a trivial additive
synthesis. <tt>introscale.sco</tt> plays a simple major
scale. <tt>introscales.orc</tt> defines the "instrument" on which the
scale is played by summing 2 sine waves, and modulating the amplitude
with a piecewise-linear envelope. The main purpose of this example is
to give you a schema that you may edit to produce more realistic
sounds by additive synthesis. But, there are a few interesting things
about the example itself. Try to figure out the relation between the
frequencies of the sine waves, and the pitches of the notes that you
hear. It is not quite obvious.

<ul>
  <li><a href="introscale.orc"><tt>introscale.orc</tt></a> (CSound
       orchestra file)
  <li><a href="introscale.sco"><tt>introscale.sco</tt></a> (CSound
       score file)
  <li><a href="introscale.aiff"><tt>introscale.aiff</tt></a> (AIFF
       sound file at 44,100 16-bit samples per second)

<br><br>

  <li><a href="sinscale.orc"><tt>sinscale.orc</tt></a> (CSound orchestra file)
  <li><a href="sinscale.sco"><tt>sinscale.sco</tt></a> (CSound score
       file)

<br><br>

  <li><a href="horn_sample_1.orc"><tt>horn_sample_1.orc</tt></a> (CSound
       orchestra file)
  <li><a href="horn_sample_1.sco"><tt>horn_sample_1.sco</tt></a> (CSound
       score file)
</ul>
       
<?php echo html_footer("index", 0); ?>

<!-- hhmts start -->
Last modified: Wed Apr 11 17:31:11 CDT 2001
<!-- hhmts end -->

</body>

</html>
