qTe Docs — Symph System

Symph System

Symph generation, metadata, embedding, phonetic syllables, series, and blockchain

What Is a Symph?

A Symph (short for Symphony) is a 128-character string that uniquely identifies and represents encoded data. It is generated from the 64 encoded bytes produced by the qTeByte bijection, where each pair of bytes maps to a phonetic syllable through the coordinate system.

Think of a Symph as a musical address — each character encodes frequency, position, and cycle information derived from the original data. Combined with frequency offsets, the Symph can be used to perfectly reconstruct the original input.

Symph Example

KaRiMoSuTeNaLuPiZoFaHeWiDoBuXeJaCr...

128 characters, each pair representing a syllable mapped from coordinate positions

Symph Structure

SYMPH STRING STRUCTURE (128 CHARACTERS) Symph Core (128 chars) — Syllable-encoded coordinate data Extended: DataLength (8 chars, pos 128–135) Extended: Remainder (8 chars, pos 136–143) Full symph string = 128 (core) + 8 (data length) + 8 (remainder) = 144 characters total Core 128 chars: 64 syllables × 2 chars each, from coordinate → phonetic mapping

Symph Properties

PropertyTypeDescription
ValueStringNumeric representation derived from coordinate position
WordsWord[]Array of Word structures containing syllable data
BytesByte[]The raw byte representation
CycleLongThe frequency cycle number in the coordinate system
PositionLongThe position within the cycle
LocationStringCombined cycle+position string
ValueOffsetDecimalThe offset between location and frequency value

Syllable & Phonetic System

The phonetic layer converts byte values into two-character syllables built from consonant-vowel pairs. Each Syllable maps a single byte (0–255) to a unique consonant+vowel combination. Word structures group syllables, and Sonon wraps the full coordinate mapping.

BYTE → SYLLABLE → WORD → SYMPH MAPPING Byte 0–255 Syllable Consonant + Vowel Word Syllable group Symph String 128 characters Byte(183) → Syllable("Ka") → Word(["Ka","Ri"]) → … → Symph("KaRiMoSuTeNa…") 64 bytes → 64 syllables → concatenated into 128-character Symph string

Related Classes

ClassRole
SyllableMaps a single byte to a consonant+vowel pair
ConsonantConsonant phoneme definitions
VowelVowel phoneme definitions
WordGroups syllables into word structures
SononWraps coordinate → sonic mapping (contains syllables + coordinates)

SymphMetadata

Every encoded item has a SymphMetadata object that stores descriptive information alongside the Symph. This metadata is persisted as JSON and synced to AT Proto.

FieldTypeDescription
SymphStringThe 128-character Symph identifier (first 128 chars)
TitleStringHuman-readable title
FilenameStringOriginal filename (if file-based)
ExtensionStringOriginal file extension
AuthorStringCreator/author
TagsStringComma-separated tags
CategoryStringMaterial Design icon category identifier
SummaryStringBrief description
DataLengthIntegerOriginal data size in bytes
RemainderIntegerRemainder bytes for chunk alignment
PacketsIntegerNumber of encoding packets (ceil(DataLength/1024))
TimeStampLongUTC ticks when encoded
PrivacyIntegerPrivacy level (0=public, 1=contacts, 2=private)
RequiresPasswordBooleanWhether password is needed for decoding
GUIDStringUnique identifier for collection grouping
FieldsStringCustom field data (JSON-encoded)
WorkflowStringWorkflow state information

SymphEmbed — The Encoding Engine

SymphEmbed is the high-level encoding orchestrator. It takes input (file stream, text, or binary data), processes it through the encoding pipeline, generates the Symph and metadata, and stores offset files.

SymphEmbed ENCODING WORKFLOW Input File / Text / Stream Prepare Build metadata Setup stream EmbedMultiThreaded Parallel encoding DataPackage creation Offset generation Output SymphMetadata Offset files qte_offsets/*.qTe SymphMetadataStore AT Proto (optional sync) Convert136charSymphToSymphBytes(symph, resourcesPath) Reverse path: Symph string → byte data using offsets. Supports both online and offline modes. Used by decode, blockchain sync, and data verification

Key Methods

MethodDescription
EmbedMultiThreaded(addBlock, useOffline, originaldatalength)Main encoding method — processes stream through parallel pipeline, returns SymphMetadata
Convert136charSymphToSymphBytes(symph, resourcesPath, useOffline, offsetDbPath)Decoding method — converts Symph string back to original bytes
EncodeMetadataSymph(metadata, password, addBlock, privacy)Encodes metadata itself as a Symph for blockchain entries

SymphSeries & Groups

When encoding large files, multiple Symphs may be generated (one per chunk/layer). These are tracked as SymphGroup and SymphSeries structures.

SymphGroup

Represents a single encoding group containing multiple Symphs produced from one layer of hierarchical encoding. Tracks the group's encoding result including all chunk Symphs and their offsets.

SymphSeries

A collection of SymphGroups across all layers for a single file encoding operation. The series terminates at the final Symph that represents the entire file.

Symph Blockchain

The Symph blockchain is a chain of encoded blocks where each block contains a metadata Symph, a reference to the previous block, and a UTC timestamp. Blocks are synced via the BlockchainSync class.

SYMPH BLOCKCHAIN STRUCTURE Block N Meta Symph (64B) Prev Block Symph (64B) Timestamp (8B) Block N+1 Meta Symph (64B) Prev Block Symph (64B) Timestamp (8B) Block N+2 Meta Symph (64B) Prev Block Symph (64B) Timestamp (8B)

Block Contents (136 bytes total)

SegmentSizeContent
Metadata Symph64 bytesThe Symph-encoded metadata for this block's entry
Previous Block64 bytesThe Symph of the previous block in the chain
Timestamp8 bytesUTC binary timestamp (DateTime.UtcNow.ToBinary)

SymphMetadataStore

SymphMetadataStore is a static singleton that persists all SymphMetadata objects. It provides lookup by Symph identifier and stores data as JSON in the qte_metadata folder. The store is used by both encoding (writing new metadata) and decoding (looking up titles, filenames, tags).

Key Operations

  • GetMetadata(symph) — Retrieve metadata by Symph string
  • SaveMetadata(metadata) — Persist metadata to the store
  • GetAllMetadata() — List all stored metadata entries
  • DeleteMetadata(symph) — Remove a metadata entry