Swift app's audio don't match the brightness intensity of the image section randomly?
问题 I have this application that takes an image (under OpenCVWrapper) that is grayscale and turns the brightness of that specific section that's touched by the Apple Pencil into sound. The dark areas don't make any sound, the medium areas make a medium pitch, and the bright areas make a high pitch. But for some reason the code works in some areas of the image flawlessly and in other it's almost reversed. Code Below: //Produce Sound Based on Location of Touch Input @objc func strokeAction(gesture: