<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    I changed SoundPlayer class playLoop which I figured is what passes
    the samples to the OS like attached, writing 1 mega samples to an
    aiff file. TSTTCPW.<br>
    I must have made a mistake because I suddenly get lost buffers but
    frankly I had some wine :-).<br>
    <br>
    I used Tim's first snippet:<br>
    <br>
    "awful noise when mixing"<br>
    |snd|<br>
    snd := FMSound organ1.<br>
    snd setPitch: 440 dur: 10 loudness: 0.9;<br>
        play.<br>
    1 second wait.<br>
    <br>
    FMSound brass1 setPitch: 470 // 2 dur:2 loudness: 0.9;<br>
        play.<br>
    1 second wait.<br>
    snd stopGracefully<br>
    <br>
    It's repeatable the sound seems to have the right length but the
    discontinuity marked red usually happens if the sound system of the
    OS looses a buffer. I had my laptop run at 4 GHZ, the audio output
    sounded normally bad and the loss is in the first second, where the
    audio is still ok. Playing the recorded file reveals the additional
    distortions.<br>
    <br>
    I just want to save another trip through the time zones so I put it
    out buggy as it is. Maybe I just used the wrong place to do my
    recording, maybe I recorded mono from a stereo buffer, whatever.<br>
    <br>
    Be mild :-)<br>
    <br>
    Herbert<br>
    <br>
    <br>
    <img src="cid:part1.8427E003.88757A73@gmx.net" alt=""><br>
    <br>
    <div class="moz-cite-prefix">Am 27.12.2020 um 19:49 schrieb Herbert
      König:<br>
    </div>
    <blockquote type="cite"
      cite="mid:cf7ab590-eefa-4a65-bc0c-968ff1d0cec9@gmx.net">Next step
      is to try to record the output before it goes to the OS and
      <br>
      see if the image or some primitive creates the problem.
      <br>
      <br>
      Cheers,
      <br>
      <br>
      Herbert
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>