Sound Generator v1.0
Overview
Plays PCM-encoded audio data from a memory bank.
Ports Definition
Top Input
Function | Description |
---|---|
Playback Start Index | Set the playback starting from the nth 16-bit data. This setting only takes effect when reading the audio data. |
Right Input
Function | Description |
---|---|
Playback Length | Set how much 16-bit data to play, only takes effect when reading the audio data. |
Bottom Input
Function | Description |
---|---|
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. |
Left Input
Function | Description |
---|---|
Sample Rate | Set the sample rate of playback, in Hz. This setting only takes effect when reading the audio data. |
Back Input
Function | Description |
---|---|
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.