[vorbis-dev] a listening test tool

Robert Voigt robert.voigt at gmx.de
Wed Oct 11 14:51:24 PDT 2000


This is an improved version. Now you don't have to change 561 numbers in
an editor, you can paint images to change the values! This is an
entirely new way of human-computer-interaction and I'm seriously
considering getting it patented :))

There are 3 grayscale image files attached, one for each array toneatt,
peakatt, noiseatt. They are set to 128 gray, which means zero here. Each
file is 11 * 17 pixels. I use GIMP for painting them, and I zoom in
16:1. Then I choose the sharp pencil with opacity of about 20, and paint
them darker to decrease the numbers or lighter to increase them. After
every C-s oggenc with psyhack.c reads the new image files and changes
the values.

What you have to do is replace psyhack.c and .h with these new versions,
save the 4 image files (original-raw.pnm is just for restoring the
original gray files, but you can also paint them with 080808h and 100
opacity), change the paths in the 3 fopen()s and compile. You may also
have to change the "#define Dataoffset" if you use a different paint
program that writes a different pnm header. 

At the moment I also use original-raw.pnm to see what was 128 gray while
painting. This is not very accurate and we'll have to find a better way
to define zero.



#ifndef __PSYHACK_H
#define __PSYHACK_H

#include <vorbis/codec.h>

void psyhack(vorbis_info_psy *psy_param);

#endif


<HR NOSHADE>
<UL>
<LI>image/x-portable-anymap attachment: noise.pnm
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noise.pnm
Type: application/octet-stream
Size: 416 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20001011/61aff5d2/noise-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: original-raw.pnm
Type: application/octet-stream
Size: 408 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20001011/61aff5d2/original-raw-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: peak.pnm
Type: application/octet-stream
Size: 408 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20001011/61aff5d2/peak-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tone.pnm
Type: application/octet-stream
Size: 518 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20001011/61aff5d2/tone-0001.obj


More information about the Vorbis-dev mailing list