Japanese
FAQGeneral program
BackForward
FAQ/Program General

SOUND



What are the STEREO/MONO settings for CD-DA?

Q)
How to switch between STEREO and MONORAL for CDDA sound At first, I thought that I could just change the stereo/mono settings in BOOT-ROM, but according to the software creation guidelines, the BOOT-ROM settings are prohibited from being rewritten from an application. I don't know what to do.

There is a stereo/monaural switch in the sound driver, but it seems to be a setting for PCM vocalization, so this is different from the information I want.

A)
CDDA sound can also be changed using the stereo/monaural switching bit in the sound driver.

Also, to obtain the multiplayer status (stereo/monaural), use the SMPC I/F library.


If I set SND_Init to slInitSound, it doesn't work.

Q)
When I changed the setting to SND_Init to slInitSound, no sound came out.
Aren't both functions just transferring driver and map data and activating the sound CPU?

A)
wrong. It is true that both functions transfer the driver and map and activate the 68000, but each function also performs the task of initializing the shared area.

SND_Init initializes the shared variables used by the SND_* functions, and slInitSound initializes the parts of the SGL system variable area that are used by sounds, so when you use these sound functions, you have to look at uninitialized data. Of course, there will be no sound as you will be operating it.

These two function groups cannot be used at the same time, but if you use SND_* functions in Cinepak etc., but use slSnd* in the main program, you can use them by performing slInitSound before using the slSnd* functions. You can.
Of course, the process is the same in reverse.


How to set volume/Pan without using sound I/F library in SBL?

Q)
How to set volume/Pan without using sound I/F library (SND_SetCdDaLev / SND_SetCdDaPan) in SBL

A)
There is no other way to operate at the library level.
Another method is to use a sound driver.
CD-DA Level and CD-DA Pan can be operated as sound control commands.
Please see the SATURN Sound Driver System Interface Manual for this information.
Note that SND_SetCdDaLev / SND_SetCdDaPan also performs similar processing.


I want to pan the sequence, but the sound is coming out in the middle.

Q)
I tried panning the sequence but it sounds right in the middle. I have set L to the maximum (1F), and when I check the command history, the pan command is sent correctly (0E,01,...).

A)
First, check whether any effects (DSP) are used in the sequence. Also, if you pan too much to the left or right, the sound may sound more centered, so in that case, try adjusting the setting value to a smaller value.


How do you calculate the PCM playback pitch?

Q)
I don't know how to calculate the value specified for the PCM playback pitch.

A)
The playback pitch calculation is as follows.
If the playback frequency is Fn,

 ( ( s^-OCT × 1024 × Fn ) / 44.1 - 1024 ) × OCT × 2048

It becomes. However, the OCT value is

 5.5125KHz ~ 11.025KHz -3
11.025KHz ~ 22.05KHz -2
22.05KHz ~ 44.1KHz -1
44.1KHz ~ 88.2KHz 0
88.2KHz ~ 1

is. For details, please refer to 6.4.5 "Support for playback frequencies other than 44.1kHz" in the Sound Embedded Manual of PROGRAMMERS GUIDE VOL.1.


I want to bring the data to the 68000 side when playing the PCM stream.

Q)
Does all the data for "PCM stream playback" have to be stored in the SH2's main memory?
Is it not possible to pull the data to the main before transferring it to the 68000?

A)
This is a specification of the stream library, so stream data cannot be brought directly to the 68000 side.


How to apply effects to PCM stream playback

Q)
I would like to apply an effect from the built-in DSP to PCM stream playback, but the parameters are initialized to 0 and cannot be changed.Is there any support in the library that allows you to change the effect send level? ?

In the sound driver, it seems that the effect parameters such as volume, localization, and effect send level can be changed, but in the library, there was an annotation that ``DSP is not used'' and it was fixed to 0.

A)
The only option is to issue commands directly to the sound driver.


Slot is fixed when playing PCM stream

Q)
While checking the slot status to check the number of pronunciations, I found out that the PCM stream seems to be occupying slots 3 and 4.
The sound driver side should be using dynamic voice allocation, but if this continues, if some BGM instruments are playing in slot number 3 and PCM is played, the sound will be erased.
Is there a way to avoid this?

A)
If you bring the PCM stream to number 4 as much as possible, the songs that came in up to number 3 will not be deleted, so please deal with it accordingly.


Volume is low with direct MIDI

Q)
When playing SE continuously using direct MIDI, the volume (Velocity) suddenly decreases. The note-off command is issued correctly, but is there another cause?

A)
Is there a one-to-one correspondence between note-offs and are commands issued each time? Also, if the parameters specified at that time are not the same as those for note-on (such as the Velocity setting), the above phenomenon may occur. not.
Other than that, I can't think of any particular cause.


Regarding the floating point specifications of the delay buffer.

Q)
Please tell me the floating point format of one piece of data (16bit) in the delay buffer.
Also

LDI MEMSXX, MR[Table + ADREG/NF]

When data is loaded with non-floating specification like this, does it go into the upper 16 bits of the 24 bits of the MEMSXX register? Does it go into the lower 16 bits?

A)
The floating point format cannot be disclosed due to a non-disclosure agreement with Yamaha.
It is stored in the upper 16 bits of the register, and the rest are filled with 0.


BackForward
FAQGeneral program
Copyright SEGA ENTERPRISES, LTD. 1997