xyscope icon indicating copy to clipboard operation
xyscope copied to clipboard

waves generate at double the intended amplitude

Open stststephen opened this issue 4 months ago • 3 comments

I'm running Processing 4.4.4.

XYScope seems to be generating all the waves at double the amplitude. So for example, the "Calibration" circle appears like this:

Image

As you can see, only the upper left quadrant is displayed within the path limits. Adjusting the volume output on my interface further proves that the amplitude problem is on the software end.

I'm temporarily fixing this by cutting all the draw settings in half, so for example a circle that's centered in the screen needs to be programmed as: xy.circle(width/4, height/4, width/2);

Another temporary fix I found was to change the amplifier settings using xy.amp(0.1);

but I don't think this is fixing the underlying problem, seeing as the circle is being drawn off-center: Image

Any ideas on how I can resolve this?

stststephen avatar Aug 31 '25 18:08 stststephen

@stststephen That looks like a bug in the Processing IDE... I've been using 4.3, which is now a bit old.. just downloaded the latest (4.4.6) and saw the bug... downloaded 4.4.1 and no issue.. process of elimination to see what changed when that breaks a bunch of the examples... 4.4.3 has the issue... 4.4.2 = no problem (although the alphabetical order of example contributed libraries is mixed up)... sooo something was introduced in 4.4.3. Will create an issue there about it now..

ffd8 avatar Sep 03 '25 22:09 ffd8

Hi @stststephen and @ffd8 I suspect it is the introduction of matching the pixelDensity() to the default of the display you are using. So since 4.4.3 a sketch will be pixelDensity = 2 on a MacBook by default for example. Please check if adding pixelDensity(1) to the setup will solve the issue

Stefterv avatar Sep 04 '25 08:09 Stefterv

Image Image

Just tested it locally and that seems to fix it for now, not sure what the underlying issue is and wether or not it is something we need to solve internally or with the library

Stefterv avatar Sep 04 '25 08:09 Stefterv