Repository navigation
Contour 1.8.1-tp65test4 (EPZ TP65 test build with shelves)
Pre-releaseSuperseded by Contour 1.8.2, which supports the EPZ TP65. This test version stays here for reference.
Contour 1.8.1-tp65test4 is a test build with writing for one device: the EPZ TP65 (USB 3302:4325), requested in #6. The TP65 is not a supported device yet. It is built on Contour 1.8.1 and replaces 1.8.1-tp65test3: the same reads and the same write sequence, now with the two shelf types.
It installs as a separate app, Contour Beta (io.github.chronosauros.contour.beta), next to Contour from Google Play or GitHub, and updates a Contour Beta that is already there (tp65test3 included). Nothing needs to be uninstalled. Stable release 1.8.1 stays the latest release.
What changed since tp65test3
- LOW SHELF (type 1) and HIGH SHELF (type 3) can be sent to a TP65, on the same band frame
01 09 18 00 i 00 00and the same RAM apply01 0A 04 00 00 FF FF. PEAK is unchanged. - The shelf biquad is Contour's 96 kHz design with the vendor's shelf formula, the Q field in the slope term: alpha = sin(w0) / 2 * sqrt((A + 1/A) * (1/Q - 1) + 2), A = 10^(gain / 40). The Q field holds the Q shown in the editor, times 256.
- The shelf Q convention is not measured on a TP65. Contour keeps the Tanchjim Space II's (the Q field is the shelf's Q); the CrinEar Protocol Max and the TRN Black Pearl play a shelf at the Q field / sqrt(2). Only a measurement of the output can tell which one the TP65 plays.
- A shelf that would need a preamp cut (a boost, at AUTO), whose coefficients do not fit signed Q30, or whose Q has no real biquad at its gain is refused before anything is sent.
Expected frames for the suggested shelf test
LOW SHELF 100 Hz, -6 dB, Q 0.71 and HIGH SHELF 4000 Hz, -6 dB, Q 0.71, here as bands 1 and 7 with slot byte 0; bytes 0-36 of the 64-byte report, the rest zero. Byte 5, the band index, follows the position the shelf gets in the send; the coefficient bytes 8-27 and the fields 28-36 do not:
4b 01 09 18 00 01 00 00 97 93 e0 3f 67 16 d7 80 5f d4 48 3f b7 aa 28 7f 28 59 d6 c0 64 00 b6 00 00 fa 01 00 00
4b 01 09 18 00 07 00 00 1a 83 78 22 09 1d d7 cb 85 9c 4e 14 cc 0a 60 69 8c b8 01 d4 a0 0f b6 00 00 fa 03 00 00
What it does with a TP65 (as tp65test3)
- Recognises it by VID:PID 3302:4325 and the exact USB product name "TP65".
- Reads (report ID 0x4B, 64 bytes, zero padded):
80 0C 00(version),80 09 00(slot byte),80 09 00 00 i 00for bands 0-9,80 03 01(preamp / offset). - HOLD TO SEND: the full read first; then only the bands whose registers differ from it, 20 ms after each band, 120 ms after the last; then the RAM apply and 250 ms; then the full read again, compared register by register with what was sent. A difference ends the send as failed; nothing is sent again automatically.
- Never sent to a TP65: the preamp write,
01 05,01 17, the flash01 01 01, settings, factory reset, firmware or probe frames. The code refuses every other frame for the TP65. - The preamp is not written: a send needs the profile's preamp at 0 dB and is refused otherwise (AUTO with a boost included).
- PEAK, LOW SHELF and HIGH SHELF. No DAC Settings page.
Other devices
Unchanged from 1.8.1: the catalog test confirms every other device's entry equals 1.8.1, their write sequences are untouched, and the core tests pass.
Log
Every USB report Contour sends and receives goes to logcat under the tag ContourUsb. After a test: adb logcat -d -s ContourUsb > contour-log.txt.
APK signed with the existing Chronosaur release key.
SHA-256 of contour-beta-1.8.1-tp65test4.apk:
24f3a173e66c68fda810527ec97629d4e3773a90fe6ef3e08bbf78e0d2c12b44