Skip to content

Sound Generator v1.0

Overview

Plays PCM-encoded audio data from a memory bank.

Ports Definition

Top Input

FunctionDescription

Playback Start Index

Set the playback starting from the nth 16-bit data. This setting only takes effect when reading the audio data.
For example, if the Left Input is 44100 V, and you set this port to 88200 V, the playback will starts from 88200/2/44100 = 1 second.

Right Input

FunctionDescription

Playback Length

Set how much 16-bit data to play, only takes effect when reading the audio data.

Bottom Input

FunctionDescription

Start / Volume

When the input voltage raises from 0 V, the playback starts. If the input voltage drop to 0 V, the playback stops. When playing, the higher the voltage , the louder the volume.
When the voltage of this port is 0 V, if the voltages of other inputs change, this element will try to read audio data from specified memory bank again. But when the voltage of this port is not 0 V, nothing will happen.

Left Input

FunctionDescription

Sample Rate

Set the sample rate of playback, in Hz. This setting only takes effect when reading the audio data.
Range: 8000 ~ 48000 (In hexadecimal: 1F40 ~ BB80)

Back Input

FunctionDescription

Memory Bank ID

Set the ID of a memory bank that the audio data read from. This setting only takes effect when reading the audio data.

Audio Convert

Before using the sound generator, you need to use ffmpeg or Format Factory to convert the audio file to a file that meets the following requirements:

  • File Format: WAV
  • Codec:PCM (If there is no such option, it is usually PCM)
  • Channels:2
  • Sample Rate:8000 ~ 48000 Hz
  • Bit Depth:16 bits

After converting, import it to the Gigavolt Memory Bank.

💡 If errors occupies when entering worlds.

This is because other elements on ports have not been initialized, and this cause the sound generator receives 0V input. Or because the memory bank has not been initialized, then the sound generator try to read it but failed.
The correct solution is to set the input voltage of the backend to 0V before exiting the world, and then set it again when you need to play.