Research

  1. SwarmErhu: From Oscillator Swarm to Heterophonic Ensemble

    Jingkai Hu

    Manuscript, 2026. (PDF, Max patch)

  2. Between Noise and Tone: The Buzz of the Gyil Xylophone

    Jingkai Hu

    Manuscript, 2026. (PDF, electronic gyil)

  3. Undertone: Sound Mapping and Soundwalking in Lower Manhattan

    Jingkai Hu

    Manuscript, 2026. (PDF, sound map)

  4. Music Emotion Recognition with Joint MIDI and Audio Features

    Jingkai Hu

    M.M. thesis, New York University, 2026. Advisor: Juan Pablo Bello. (PDF)

  5. How Temperature Affects the Sound of Pouring Water

    Jingkai Hu

    Course paper, Advanced Musical Acoustics (MPATE-GE 2036), New York University, 2025. (PDF)

  6. Evaluating Music2Latent for Piano Performance Analysis

    Jingkai Hu, with classmates

    Team project, Deep Learning for Media, New York University, 2025.

Between Noise and Tone: The Buzz of the Gyil Xylophone

2026

an article, with an electronic gyil to play in the browser

Organology · Timbre · Spectral analysis · Web Audio · Playable instrument

Role
Sole author; recordings, analysis and instrument
Context
Manuscript, 2026

The gyil is a xylophone of northwestern Ghana and neighbouring regions. Gourds hang under its keys, and thin membranes, traditionally made of spider egg sacs, cover holes in the gourds and buzz when a key is struck. The article looks at that buzz in three ways: what the published sources say about the membrane and why the buzz is wanted, how the buzz behaves in recordings of one instrument, and what can be done with it in a new one.

A twelve-key gyil on a wooden floor, and a close view of two gourds with pale membranes over their holes.
The twelve-key gyil recorded for the article, and the spider-egg-sac membranes on two of its gourds.

In the recordings, only four of the twelve keys have a clear buzz, and it takes two different forms. On one key it lasts longer after harder strokes and breaks off each time the key’s vibration falls to the same level. The electronic gyil replays those recorded strokes, each split by filtering into layers, so the proportion of buzz to tone can be changed while playing. On this instrument, at least, the buzz is better described as a relation to the tone that varies from key to key than as a constant layer added to it.

Music Emotion Recognition with Joint MIDI and Audio Features

2026

master's thesis, advised by Dr. Juan Pablo Bello

Transformer · REMI · MERT · EMOPIA · PyTorch · 65.1% accuracy

Role
Sole author
Tools
Python, PyTorch, MidiTok, Hugging Face Transformers, scikit-learn
Context
M.M. thesis, Music Technology, New York University, 2026

Most music emotion recognition works from audio alone. A MIDI transcription carries different evidence: which notes are played, how many, how fast, how hard. This thesis asks whether a model that reads both does better than a model that reads either one.

It does, and the per-emotion results show why. On EMOPIA, a dataset of solo-piano clips labeled with the four quadrants of Russell’s valence–arousal model, the MIDI model beats the audio model on calm music (F1 0.62 against 0.45), and the audio model beats the MIDI model on tense and sad music. Each has a blind spot the other covers. The fused model has none: all four quadrants land between 0.63 and 0.67.

MIDI only55.0%
Audio only60.5%
Fusion65.1%
High arousalLow arousalNegative valencePositive valence

Q2 Tensenegative valence, high arousal

MIDI
0.63
Audio
0.72
Fusion
0.63

Q1 Happypositive valence, high arousal

MIDI
0.51
Audio
0.62
Fusion
0.67

Q3 Sadnegative valence, low arousal

MIDI
0.38
Audio
0.59
Fusion
0.67

Q4 Calmpositive valence, low arousal

MIDI
0.62
Audio
0.45
Fusion
0.64
Test accuracy (129 held-out clips) and F1-score per emotion quadrant. The fused model is the only one without a weak quadrant; on tense music it matches the MIDI model and trails audio.
Technical notes
  1. MIDI
  2. REMI tokensMidiTok · vocabulary 362 · up to 1,024 tokens
  3. Embedding + Transformer encoder2 layers · d 128 · 4 heads
  4. Mean pool128
  1. Audio, 24 kHz
  2. MERT-v1-95M, frozen768-d frame embeddings
  3. Linear 768→128 + Transformer encoder2 layers · d 128 · 4 heads
  4. Mean pool128
  1. Concatenate256
  2. Linear 128 · ReLU · dropout 0.2
  3. Q1 happy · Q2 tense · Q3 sad · Q4 calmsoftmax over 4 quadrants
Late fusion. Both encoders share hyperparameters and are trained jointly from scratch; MERT only supplies frozen features.
  • Data. The 845 EMOPIA clips that have both MIDI and audio (Hung et al., 2021), split by song with scikit-learn’s GroupShuffleSplit on the source video ID, so no song appears in both training and test: 584, 132 and 129 clips.
  • MIDI branch. REMI tokens from MidiTok with 32 velocity bins, 32 tempo bins over 40–250 BPM and chord detection: a 362-token vocabulary. Sequences are capped at 1,024 tokens, which keeps 71% of clips whole.
  • Audio branch. Frame-level embeddings from MERT-v1-95M at 24 kHz, 768 dimensions, kept frozen and projected to 128.
  • Encoders. The same Transformer encoder for both branches: 2 layers, model dimension 128, 4 heads, feed-forward 256, dropout 0.3, mean pooling.
  • Fusion. The two 128-dimensional summaries are concatenated and classified by Linear(256→128), ReLU, dropout 0.2 and Linear(128→4). In the fused model both encoders are trained jointly from scratch.
  • Training. Adam with learning rate and weight decay of 1×10⁻³, the rate halved every 10 epochs, 15 epochs. Light augmentation on the training set only: token masking and random crops for MIDI; Gaussian noise, time masking and feature dropout for audio.
  • Where it still fails. Most errors cross the valence line within one arousal level: happy clips called tense (12 of 40) and calm clips called sad (8 of 27). Arousal is easier to hear than valence, as the wider literature reports.
  • What fusion doesn’t fix. On tense music the fused model (0.63) trails the audio-only model (0.72). With 584 training clips, dataset size is the main limit on absolute accuracy.

How Temperature Affects the Sound of Pouring Water

2025

an acoustic study of the bubbles in a pour

Spectral analysis · Minnaert resonance · Psychoacoustics · Python · Listening test

Role
Sole author; experiment design, recording and analysis
Tools
Python (NumPy, SciPy, Matplotlib)
Context
Advanced Musical Acoustics (MPATE-GE 2036), New York University, with Prof. Ernesto Valenzuela, August 2025

Two recordings of water poured into the same glass. One is hot, one is cold, and they are matched in loudness. Which is which?

Pour A
Pour B
Which pour is the hot one?

Pour hot water and cold water into the same glass and most people can tell which is which by ear; Velasco and colleagues found that more than 90% of listeners could. This project asked what, physically, they are hearing.

A pour has three sound sources: the column of air above the rising water, the glass itself, and the bubbles the falling stream drives under the surface. Working through the physics of each, only the bubbles change much with temperature. So I built a setup that silences the other two and recorded the bubbles alone: hot water puts more of its energy below about 1 kHz, cold water more above it.

Water pouring from a dispenser into a glass that overflows into a basin.
The glass is kept full and overflowing, so there is no air column to resonate and the vessel's load never changes. What remains is the sound of bubbles.
Technical notes
  • Air column. The air above the water acts as a Helmholtz resonator. Its pitch rises as the glass fills, which is the rising tone near 1 kHz in the spectrograms below. Temperature changes the speed of sound only slightly, not enough to hear.
  • Vessel. The glass rings at a frequency set by its stiffness, density and geometry, and falls as water adds mass. None of these move noticeably between hot and cold water.
  • Bubbles. Each entrained bubble rings at its Minnaert frequency, inversely proportional to its radius:

fM = (1 / 2πr) √(3κP0 / ρ) ≈ 3.26 / r

With r in metres, a 1 mm bubble rings near 3.3 kHz and a 2 mm bubble near 1.6 kHz. Hot water forms larger bubbles, so its energy shifts down.

  • Measurement. In the averaged spectra of the isolated bubble recordings, 76% of the cold-water energy sits above 1 kHz against 64% for hot water. (Measured from the recordings used on this page.)
  • Limits. The setup isolates bubbles on purpose. Turbulence, surface tension and viscosity interact in ways the study did not model.
Two spectrograms from 10 Hz to 12 kHz over six seconds, the hot pour above and the cold pour below, each with a rising band near 1 kHz.
Spectrograms of a hot pour (top) and a cold pour (bottom), from the paper. The rising band near 1 kHz is the air column.