midicn 中文

Controlling Melody

Humming gives contour, MIDI gives notes, and an audio reference lends its style along with the tune.

1 min read0 characters条目Generation and EditingUpdated 2026-10-31

melodyhummingMIDI conditioningcontour

Three inputs, three outcomes

Hum a phrase and the returned melody is often close but wrong: an interval off by a semitone, the ending turning the wrong way. The trouble is not pitch accuracy. Humming passes a contour, not notes. A text description passes a mood and not even a contour. MIDI passes pitch, duration and velocity, which gives the most control and also invites the model to smooth everything out.

Why MIDI conditioning holds better

Symbolic input breaks the melody into discrete events with explicit pitch and length, so the model does not have to guess from a spectrum. The cost is regularisation: pushed syncopations return to the grid, ornaments merge into the main note, a decaying long note becomes a fixed velocity. With MIDI, keeping the rhythmic spelling matters more than keeping the timbre; confirm the note count and bar lines first, then listen for expression.

Comparing the methods

InputWhat it locksUsual failureCheck
Hummed, single line, no accompanimentContour, phrase length, accent placementSemitones flattened, attacks vaguePlay each interval on a piano
A single MIDI linePitch, duration, registerSyncopation straightened, ornaments lostCount notes per bar, mark changes
A finished excerpt as referenceTimbre, character, arrangement densityThe tune itself is borrowed, rights unclearTake two bars, change three things
Described directionMood, rising or fallingRandom landing, runaway rangeName the first note, the top note, the cadence

An audio reference is the most misused input: it locks what something sounds like, not which notes are played. To keep your own melody, do not feed a whole chorus. To borrow a character, take two bars, change the ending and the rhythm, then describe the direction in words.

Limits of humming and audio references

Humming is good for starting and poor for signing off. Pitch drift, breath and slides all push the model toward a reading that is not in the score. An audio reference also drags in the arrangement texture and the reverb, so what comes back is a new song that resembles that one rather than your melody. Once the melody identifies the track, check it against the score before delivery: which bar the theme first appears in, and whether the two choruses really state the same tune.

Listen in the library

Twelfth Street RagC10:37《第十二街拉格》,切分主题反复出现,听两次的落点是否一致(C1)DetailsNocturne No. 12 in G major, Op. 37 No. 2C15:35肖邦夜曲 Op.37 No.2,装饰音与句尾最能看出旋律有没有被改顺(C1)DetailsChaconne in G minorC112:15维塔利《恰空》,低音循环不变,主题靠变奏推进,适合核对保留了多少(C1)DetailsChaconne in G major, HWV 435C17:51亨德尔《G 大调恰空》,大调固定低音,与维塔利对照主题变形(C1)Details

All tracks from midicn-lib — inline badge is the license tier (C1 commercial / C2 non-commercial / C3 study only).

Along the same line

Sources

  • William Russo, Composing Music(Prentice-Hall)与 Hindemith, The Craft of Musical Composition 中关于旋律轮廓与句读的章节。
  • 音频与符号两类旋律条件的差异,依据公开模型文档。