Two questions on smooth swing,
1) What is a good length of a hum file to use? I have some hums from a different font and the hum file is only 2 seconds long. This causes a strange speaker pop/crackle every 2 seconds when there is no swinging (like sitting stationary on the desk).
2) The files are named swingl and swingh, these seem to coincide with monophonic font names, should I do something different if I have a polyphonic font(swngl and swngh), or does that not matter? If it doesn't matter, can my swingl and h files be made from mono font even though I have a polyphonic font?
1. Generally speaking, longer is better, because it makes the sound less repetitive. Beyond 20 seconds it probably doesn't matter though.
The pop/crackle isn't a good thing though. My best guess is that you get an underflow on the main hum while the other two hums are re-opened.
Things to try that may fix it:
a) Try a different sd card (I mostly use Sandisk.)
b) Make sure your sounds are 16-bit mono. (24/32-bit and stereo are a waste of sd card bandwidth.)
c) Try making the hums different lengths. This will make them loop around at different times.
d) Increase the buffer in BufferedWavPlayer (I've been considering doing this myself...)
Note to self: add sd card bandwidth latency/bandwidth testing command to teensysaber...
2. The SmoothSwing V1/V2 is implemented separately from the font renderer, which means that it works with both polyphonic and monophonic fonts. However, with monophonic fonts, clashes and blast effects will be be toned down while swinging, with polyphonic fonts they will not, as they are played separately.
volHum and volEff are set at 15 and 16, what does 15/16 represent, a percentage out of 100? I have my overall volume at 1750, and my effects are ear piercing, the hum volume is perfect, and the swinging I wish I could get louder. I've been playing with changing volHum and volEff (via config file) but it doesn't seem to have an effect.
No, 16 is the max.
Smoothswing V2 volume is controlled by smoothsw.ini, in particular SwingSensetivity, SwingSharpness and MaxSwingVolume.
More info here:
Teensy Saber OS