Scope works by reading bytes from input files, and mapping byte A to X-coordinate, and byte B to Y-coordinate. Then it draws a line between the points. One byte can have a value between 0 to 255. For example, if byte A is 2 and byte B is 4, then scope draws a dot in point x = 2, y = 4. Then, scope reads next pair of bytes, and draws a dot again in point directed by values of bytes. After that, scope draws a line between the points. This repeats on and on as long as scope can read bytes or user stops the program.
To not clutter the screen with lines, scope also has a decay function. Decay means, that after each time scope has drawn a line, it decreases brightness of the line by 1. Brightness values run also from 0 to 255.
Scope can be useful at analyzing music or sound files. If sound waves are in-phase (that means they rise and go down at same time, 0 degrees phase difference), then scope draws a diagonal line from bottom-left corner to up-right corner. If sound waves are out-phase (meaning that when other is up, the other wave is down 180 degrees phase difference), then scope draws a diagonal line from top-left corner to bottom-right corner. If phase difference between sound waves is 90 degrees or 270 degrees, then scope draws a circle.
Go to illustrations of phases of waveforms
Remember, 90 degrees equals 0.5π.
Waves are in-phase.
Waves are out-phase.
Waves are 90 degrees out of phase.
Waves are 270 degrees out of phase.
Waves are in-phase.
Waves are out-phase.
Waves are 90 degrees out of phase.
Arrow indicates direction of progress.
Waves are 270 degrees out of phase.
Arrow indicates direction of progress.
Graphs were made using Graphmatica 1.60e. It's software from year 1999, but is still useful for small things.
Back to top