Showing posts with label GitHub. Show all posts
Showing posts with label GitHub. Show all posts

Friday, 9 October 2026

Considering what the Hebrew Bible is about

I have been learning Hebrew by translating Tanach these past 20 years. What have I learned? It's always a stretch to really answer a question like this. Sometime ago, perhaps a week or a few days ago -- I forgot to look at the date, I selected Psalm 11 for a demonstration of a book idea I did not pursue -- to much at once! So I put this chapter below.

I think we can and must take the world as it is, a serious decision about what is good. And variety and trouble are part of that good. As the spiritual goes -- nobody knows de trouble a've seen... I notice that the musical contour is the same for Genesis 1:1a as it is for Verses in the story of Cain -- what have you done! And the contour is an inclusio for the deluge -- as you can discover.

The Hebrew Bible is an act of love, by humans for humans in a Spirit of Persistence of Love, a Holiness to be sought, and a Forming of Communities of Love in truth and kindness and faithfulness.
Let's set that against this psalm.

Trope in full is here to listen to as you read. A link on that page will take you to the verse by verse learning page.

Psalms 11


Syllables: 150. Words: 68. Roots: 52. Root Recurrence: 38%. Average per verse: 3.7.

Psalms 11: Syllables: 154; Longest recitation: 10; Tenor: f# 25.32%;
Ornament density: 15.6%; Average phrase length: 9.1.


1 For the leader. Of David.
In Yahweh I take refuge. How do you say to me,
Flit away to your mountain, bird? (1-2-4-1)
א למנצ֗ח לד֫ו֥ד
בֽיהו֨ה ׀ חס֗יתי א֭יך תאמר֣ו לנפש֑י
נ֝֗ודי הרכ֥ם צפֽור
7
11
6
a lmnxk ldvid
bihvh ksiti aiç tamru lnpwi
nudi hrcm xipor

2 ♪C For behold: the wicked. They direct a bow. They prepare their arrows on the bow-string,
to shoot in gloom at the upright of heart. (C-4-1)
ב כ֤י הנ֪ה הרשע֡ים ידרכ֬ון ק֗שת כוננ֣ו חצ֣ם על־י֑תר
ליר֥ות במו־א֝֗פל לישרי־לֽב
18
9
b ci hnh hrwyim idrcun qwt connu kixm yl-itr
lirot bmo-aopl liwri-lb

3 ♪B For the fundamentals are overthrown.
How does a righteous one work? (B-4-1)
ג כ֣י ה֭שתות יֽהרס֑ון
צ֝ד֗יק מה־פעֽל
8
5
g ci hwtot iihrsun
xdiq mh-pyl

4 Yahweh is in his holy temple. Yahweh in the heavens his throne.
His eyes gaze on,
His eyelids test the children of humanity. (1-2-4-1)
ד יהו֤ה ׀ בֽה֘יכ֤ל קדש֗ו יהוה֮ בשמ֪ים כ֫סא֥ו
עינ֥יו יחז֑ו
עפעפ֥יו י֝בחנ֗ו בנ֣י אדֽם
14
5
10
d ihvh bhicl qodwo ihvh bwmiim cisao
yiniv ikzu
ypypiv ibknu bni adm

5 Yahweh will test a righteous one,
but the wicked and lover of violence ...
he hates. (1-2-4-1)
ה יהוה֮ צד֪יק י֫בח֥ן
ו֭רשע ואה֣ב חמ֑ס
שֽנא֥ה נפשֽו
6
8
4
h ihvh xdiq ibkn
vrwy vaohb kms
wnah npwo

6 He rains snares on the wicked.
Fire and pitch and ferocious wind are the portion of their cup. (1-2-1)
ו ימט֥ר על־רשע֗ים פ֫ח֥ים
א֣ש ו֭גפרית ור֥וח זלעפ֗ות מנ֣ת כוסֽם
8
14
v imTr yl-rwyim pkim
aw vgoprit vruk zlypot mnt cosm

7 For Yahweh is a righteous one. He loves righteousness.
His faces gaze on the upright. (1-4-1)
ז כֽי־צד֣יק י֭הוה צדק֣ות אה֑ב
י֝ש֗ר יחז֥ו פנֽימו
9
8
z ci-xdiq ihvh xdqot ahb
iwr ikzu pnimo
1 flit away, (nvd) wander aimlessly, even sounds like English nod, flit off is too rude for me though the sense may be that rude.
your mountain, (hr) or hill. Your is plural, mountain is a metonym for God. I have used both mountain and hill for this word.
3 fundamentals, (wit) to set. The form of the word is rare, used here and in Isaiah 19:10, but the underlying root is very common. work,
(pyl) not the word for do or make.
4 Does this one have eyelids (ypyp)? This word is rare in the Bible. It is used in Job three times. Taken together with Leviathan, it forms part of the framework of Job (with a touch of humour). It appears twice in the Psalter, here and in Psalm 132 where David says he will not let his eyelids slumber until he builds a house for his Lord. Elsewhere in the Bible, it occurs five more times, including one seductive fluttering in Proverbs 6.
5 he hates, lit. hates his being, or hates himself. Most translations consider the wicked as the object of hate belonging to Yahweh.
6 [Matthew 5:45]
7 gaze, third person plural agreeing with faces as subject.
First time recurrence (for this book in the chapter): ahb bkn kzh iwr
Word / Gloss 1 2 3 4 5 6 Vs Stem
לישרי at the upright of
▒
2 ישר
יחזו gaze on
▒
4 חזה
יבחנו test
▒
4 בחן
יבחן will test
▒
5 בחן
ואהב and lover of
▒
5 אהב
אהב he loves
▒
7 אהב
ישר the upright
▒
7 ישר
יחזו gaze on
▒
7 חזה

Saturday, 8 August 2026

A quick hello

I've been ignoring you -- very busy and not yet dead -- poor eyes, heart wobbly, but going strong with continuing to explore the music of the Hebrew Bible. The GitHub site has been updated with several features since my last post. All music available free to the general public. And features that could be used to explore the music with automation. Someone write a feature discovery program. I haven't figured out how to specify such a feature yet. But the site would be ideal for teaching the Haïk-Vantoura trope.

Recent substack posts will give you the updates. I think you can find them all here.

I looked my blog reader -- and I had over 3000 unread posts -- signed on and having a look :)

Friday, 3 July 2026

Using AI to analyse ancient music.

I have made extensive use of AI to begin analysis of the music using Python and other tools -- the JSON is not yet uploaded to GitHub -- needs special treatment for its size. Link is here -- redesigned top levels.

The following is the Chrome AI summary of a days work. It's a good programmer if you get the prompts right. There's also a lot of moonshine.

I will probably write more later on Substack -- will let you know.

Tanakh Cantillation Analysis Suite

An automated syntactic parser and rhetorical analysis engine designed for the Hebrew Bible (Tanakh), mapped syllable-by-syllable according to the Suzanne Haïk-Vantoura (SHV) deciphering key.
This repository contains a tidy, sequential dataset of over 730,000 syllable rows encompassing all 23,000+ verses across 929 chapters, alongside a modular Python suite that analyzes how the inherited te'amim (trope symbols) act as an authentic prophetic and narrative commentary.

📊 The Master JSON Database Structure
The core database (complete_tanakh.json) bypasses raw visual vector noise (like SVGs) and organizes the entire corpus into a flat, chronological array. Because ancient Hebrew reads right-to-left while Western music scales left-to-right, the database establishes an immutable sequence track.
Key Data Fields per Syllable:
  • BOOK_CD / BOOK_SEQ_NO: The canonical book name and its numerical sequence identifier (ensuring Genesis is #1 and Ezra/Chronicles sit at their proper historical endpoints).
  • CHAPTER_CD / VERSE_CD: Padded structural address coordinates.
  • XML_SEQ: The master sequential timeline anchor. Crucial for linear right-to-left processing.
  • LYRIC_SYLL: The transliterated phonetic syllable fragment.
  • SYLL_NOTE: The explicit absolute pitch token (calibrated around Tonic = E4).
  • ORNAMENT_NAME: Fully populated lowercase Masoretic accent tags (e.g., atnach, ole, revia-mugrash, paz).
  • HEB_TEXT: The fully pointed, unescaped Hebrew text string, anchored elegantly to the first syllable of each verse change.

🎼 The Musicological Laws (Prose vs. Poetry)
The Python suite dynamically alters its analytical framework by executing an automated dialect check. It verifies the genre layout of each verse using a strict F# / G# frequency selector:
1. Prose Mode (G#4 present, F#4 forbidden)
  • E4 (Degree 1 - Tonic): Ground baseline and home register.
  • F4 (Degree 2 - Supertonic): A dynamic, kinetic bridge. Never a rest point. It acts as an acoustic pathway driving into a G#4 or stepping down to the tonic E4 at a verse boundary.
  • G4 / G#4 (Degree 3 - Mediant): Signals anticipation of an impending structural cadence.
  • A4 (Degree 4 - Subdominant): An expansive, level plateau delivering profound equilibrium, security, and confidence (rather than Western tension).
  • B4 (Degree 5 - Dominant): The narrative engine; the first natural harmonic of the shofar used for royal proclamation.
2. Poetic Mode (Sifrei Emet: Psalms, Proverbs, Job) (F#4 present, G#4 forbidden)
  • F#4 (Degree 2 Sharp): An expressive, hovering suspension plateau. It functions as a formal, binding cadence ONLY if the previous syllable carried the lowercase ole ornament.
  • G4 (Degree 3 - Mediant): Elevates into a primary, high-intensity recitation engine holding deep emotional focus.
  • D4 (Degree 7 - Sub-Tonic): The physical springboard. A low, muscular crouching note used to gather potential energy before vertical melodic vaults.
  • C5 (Degree 6 - Sixth Degree): A transcendent register used for intense appeals or sudden explosions of absolute joy and awe.

🛠️ The Advanced Analytical Functions Suite
The included Python application contains five core decoupled routines designed to process the 730,000-row dataset at macro scale:
📍 Routine 1: The Master Range Filter
Allows you to cleanly slide a window across any arbitrary cross-section of the Tanakh (e.g., from Job 3:1 to Job 4:5) by translating chapter/verse vectors into flat mathematical scalars, preventing data bleeding at chapter boundaries.
⚡ Routine 2: Strophe Boundary & High C Explosion Finder
Flags structural poetic units (like the openings of Job 3 or Psalm 29) where the melody shatters smooth step-wise motion. It targets verses that launch immediately into C5 or treat the opening tonic E4 as a fractional, explosive upbeat rocket.
🔗 Routine 3: Non-Tonic Commencement ('Reverse Colon' Tracer)
Identifies verses that intentionally bypass a clean acoustic restart on the tonic E4. By kicking off on a dominant B4 or a tense F#4, these verses function as a "reverse colon," forcing the performer to aurally anchor the sentence onto the emotional residue of the preceding text.
🎭 Routine 4: Revia-Mugrash Recitation Decoder
Maps out every structural occurrence of the specialized poetic revia-mugrash ornament, documenting the exact pitch register it chose to lock onto as it builds its technical runway back down to the baseline.
🔁 Routine 5: Ideational Underscore & Motif Indexer
Scans your selected range for repeating lowercase ornament clusters (such as the D4 -> paz -> zar -> zarqa -> C5 flight pattern). If an accent string hits multiple times across a section, it maps them out as a recurring acoustic motif used to underscore a unified text theme.