Note: When addressing the noise channel, valid values for pitch are 0 to 7 inclusive.

If you are used to TI BASIC you are probably wondering where the duration value is. There isn't one. It's entirely dumb. SOUND simply writes to the sound chip and it's done. It's up to you to end notes/sounds at the appropriate time in your code. To end a note, simply set the volume of that channel to 15.

10.1 Supplementary Sound Words

The only sound-related word in the TurboForth ROM is SOUND, as described above. However, the following supplementary words are very useful and offer a superior level of control over the sound chip:

The noise channel takes a value from 0 to 7 for the different types of noise.
Use a value of 3 for the channel number number when you want to change the
volume of the noise channel.

10.2 Code Equivalents of the Supplementary Sound Words

The words given above are very useful and quite fast. They are also useful to see how to address the sound chip in high-level code. However, in normal use, one would want sound-related words to process as quickly as possible in order to give more time to other things, especially when developing games etc. To that end, machine code versions of the above words are given below. Usage is identical to the words given above. They occupy 114 bytes of memory.