12-15-2024, 02:03 PM
(12-15-2024, 01:14 PM)doppler Wrote: First bug of V4 ???
example:
Do
Print ".";
c = c + 1
If c Mod 10 = 0 Then Play "a64g64"
Loop
Play volume is not default 50% and not changeable with the Q## "play" variable. Tested with 3.14 as a baseline. V4.0 is much louder 100% and harsh distorted because of it. Sorry you got to kill the window, didn't leave an escape route.
The volume is still 50% by default. It is just that it uses a square waveform by default just like QB45 did back in the day. Previously, QB64 used a triangle waveform, which has a much softer sound compared to a square waveform. For compatibility, we always reference QB45 as the standard.
You can adjust the volume using the "v" MML command. For example:
Code: (Select All)
PLAY "v20"
Alternatively, you can change the waveform to a triangle with an optional volume ramp like so:
Code: (Select All)
PLAY "@3Q1"
Once set, all subsequent PLAY commands will use the triangle waveform. If you are using multi-voice playback, remember to apply this change for each voice.