Sound page

The Sound page

What you hear comes from the machine’s own sound devices - the beeper, the tape, and whatever sound chips and cards the machine has. You choose which devices a machine has on the Machine page of Options (see Sound devices). On the Sound page you set how the sound is played and how loud each device is.

Emulate sound, above the groups, switches the sound off and on. When it is off, Xpeccy+ plays silence. The machine still runs at its normal speed, but its sound is not worked out at all, which leaves more of the computer’s power for the emulation. The Debugger’s scope and the sound of a rewind are silent for that time too. While it is off, the rest of the page is grayed out. This is not the same as the NULL driver below: that driver works the sound out but does not play it.

Under it are four groups.

Output - how the sound reaches your speakers:

  • Driver - SDL plays the sound; NULL plays nothing.

  • Rate - the sample rate. Auto uses the rate of your computer’s sound device and shows that rate. 48000 and 44100 set a fixed rate.

  • Latency - how much sound is kept ready ahead of playback, from 10 to 150 ms. A lower value makes the sound follow the picture and the keys more closely, but if the value is too low, the sound clicks. With Auto adjust ticked (the default), Xpeccy+ finds the value by itself. It raises the latency when the sound runs short, and lowers it again after a long time with no gaps. The slider then shows the value the emulator has settled on.

Stereo and Filters, side by side, set how every machine is heard. This is a matter of taste, as a shader is, so you set it once here for all machines, and it stays when the machine changes. A machine can have its own Stereo and Board filter, which take the place of these (see A machine’s own below). Each group’s title shows what the machine shown in Options has now: Stereo (current: Mono), Filters (board: TV (RF)). With By machine, the title shows the board’s own value. If the machine has a choice of its own, the title shows that choice. A machine with no PSG has no order to show, and neither has the ZX Next.

Stereo:

  • PSG stereo - the order of the sound chip’s three voices from left to right: Mono, ABC, ACB, BAC, BCA, CAB, CBA. ABC puts the second voice in the middle. ACB puts the third voice there. By machine, the default, keeps each board’s own order - mono on the 128K, ABC on the Pentagon, BAC on the Scorpion - as shown in the machine’s Machine: PSG. The ZX Next keeps the order its own software sets.

  • Separation - how far apart the left and right sides are, for the sound chips (the ZX Next’s too) and the General Sound. 100% keeps them fully apart, and 0% is mono. It is 75% at first. One value serves every machine.

Filters:

  • Board filter - what every machine sounds through (see Board filter below). No filter, the default, plays every machine clean. By machine gives each machine its own board’s filter, the one named in its Board filter list on the Machine page. That filter is on the beeper, and on some boards on the sound chip too. Any other choice puts all of the sound of every machine through that filter.

  • Low cut (DC) - takes out the lowest frequencies. The chips’ output sits above zero rather than around it, and that offset only takes loudness away from the rest of the sound. On by default.

  • High cut (anti-alias) - takes out the frequencies too high for the output rate. Without it, they come back as false notes, which you hear most in beeper music as a harsh crunch. On by default. It costs a little CPU time.

Volumes - one slider for each device, from 0 to 100:

Volume

What it sets

Master

everything together; the same as the toolbar’s volume

Beeper

the machine’s own speaker

Tape

the tape, while it plays or records

PSG

the AY or YM sound chips

DAC

Covox and Soundrive

General Sound

the General Sound card

SAA1099

the SAA1099 chip

The rest of the Sound page is the same for every machine.

A machine’s own

A machine can sound different from what this page says. It can have its own Stereo in Machine: PSG (see PSG) and its own Board filter on the Machine page (see Board filter). Those lists have:

  • Global setting, the default - this page’s choice, shown in gray: Global setting (ABC), or, with By machine here, Global setting (Machine spec), which means each machine as its board was made. A note under the list shows what this gives the machine: Result: Mono (machine spec), Result: TV (RF) (machine spec);

  • then, below a separator line, the values. The value the board was made with is marked: Mono (Machine spec), TV (RF) (Machine spec).

Any choice except the first is the machine’s own. You hear it whatever this page says, and a change on this page does not take it away. The first choice puts the machine back on this page’s setting. So does a filter you pick in the sound menus while that machine runs (see Board filter below).

While any machine has a choice of its own, a button marked appears after PSG stereo or Board filter, with the number of such machines. Its tooltip lists them, one per line, with what each one has. Click the button to set that list’s choice for every machine at once and take their own choices away. It asks first, with the same list, and keeps whatever else you changed on those machines. Cancel in Options does not undo it.

The ZX Next has no choices of its own here: it is heard as this page says.

Board filter

The beeper is a single bit of a port, but what you heard from it depended on the board: a 48K’s own small speaker, a TV, an amplifier behind a coupling capacitor, or a piezo sounder. On some machines the sound chip went the same way. With Board filter in Filters you pick what every machine sounds through. The same choices are also under the arrow of the toolbar’s Mute button and in Sound of the right-click menu. Next to them, under Output filters, are Low cut (DC) and High cut (anti-alias). In those menus the mark is on the filter the running machine is heard through, and By machine shows the name of its board’s filter: By machine (TV (RF)). A filter you pick there becomes this page’s setting, for every machine, and you hear it at once. If the running machine had a filter of its own, that filter is dropped, and the message says which one. Other machines keep theirs. Picking the marked filter again changes nothing.

The filter runs in the machine’s time, so it slows down and speeds up with the machine. In Slow Motion, a high tone that the filter cuts stays cut as it drops in pitch.

Choice

Filters

What goes through them

What it is on the board

Machines it comes with

No filter

none

-

boards with only resistors between the beeper and the output

Pentagon, Pentagon 1024 SL, Profi, Phoenix, ALF, ZX Next

48K speaker

low-pass, 4.4 kHz on a rising edge and 2.3 kHz on a falling one; high-pass, 500 Hz, 12 dB an octave

beeper, tape

the ULA’s pin drives the speaker with slow, uneven edges; the speaker is small and gives little bass. The 500 Hz is a guess: there is no measurement of the speaker

48K

TV (RF)

low-pass, 3.2 kHz

beeper, tape, PSG

a TV’s FM sound on its aerial input (50 us de-emphasis); the board mixes the PSG in before the modulator

128K, +2

+2A/+3

low-pass, 2.5 kHz; high-pass, 340 Hz on the beeper and the tape, 150 Hz on the PSG

beeper, tape, PSG

the transistor that mixes them has a 100 nF capacitor on its output, on every socket; the high-passes are the coupling capacitors. Worked out from the schematic, not measured; the 150 Hz is a guess

+2A, +3

ZX Evolution

low-pass, 8.6 kHz

beeper, tape

a 2.2K resistor and a 10 nF capacitor on the beeper’s input

ZX Evolution

Scorpion

high-pass, 530 Hz

beeper, tape

the coupling capacitor on the beeper’s way out

Scorpion ZS 256 and Turbo+

ATM Turbo

high-pass, 80 Hz

beeper, tape

the coupling capacitor into the amplifier

ATM Turbo 2+

Piezo

a ring at 4.1 kHz; under it the bass falls off 6 dB an octave

beeper, tape

a piezo sounder of the ZP-3 kind, as some clones had. The ring is the element’s own; how sharp it is and how the bass falls were set by ear, as there is no measurement of the element

-

The low-pass and high-pass filters here fall off 6 dB an octave unless the table says otherwise.

With By machine, a filter takes what the table’s third column says, as on the board. The other sound devices - General Sound, the SAA1099, Covox and Soundrive - have outputs of their own on every board and are not filtered. A filter you pick from the list takes all of the sound, the sound chips and cards too. This is how the music would sound through that board, whether or not the machine could have had it. With TV (RF) and +2A/+3, the chips and cards go the way the table gives for the PSG.

Low-pass 5 kHz, 24 dB/oct, last in the list, does not come from any board. It cuts the highs from 5 kHz, 24 dB an octave, and keeps the bass. It is made for beeper music played by pulse width (PWM), whose pulses carry a whistle far above the tune. The filter removes the whistle, and the music sounds a little duller.

Beeper

The beeper is the machine’s own speaker, and every machine has it. You set its volume with Beeper on the Sound page. MIC in the beeper, in the ULA group of Machine: Advanced Settings, also mixes the signal the machine sends to the tape into the beeper sound, a tenth as loud, as a machine with a ULA does (see Advanced settings).

Recording the sound

Capture > Record Sound to WAV… writes what you hear to a file. See Capture menu.