Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Staccato Listening Demo

This repository is a listening-oriented research artifact, not the full development repository. It contains a compact demo for comparing three candidate MIDI staccato duration models on one isolated MidiCaps/Lakh target line.

Start Here

Open the static notebook-style report:

GitHub Pages serves docs/index.html, with relative audio paths pointing to the MP3 files under docs/audio/staccato_listening_grid_three_models/. The source notebook-style HTML is also kept at notebooks/staccato_listening_demo.html.

Models

The inter-onset interval is the time from one note attack to the next:

IOI_i = onset_{i+1} - onset_i

The demo compares:

  • A - 40% of IOI: d'_i = 0.4 * IOI_i
  • B - 120 ms absolute duration: d'_i = 120 ms
  • C - 40% of IOI, limited to 40-120 ms: d'_i = max(40 ms, min(0.4 * IOI_i, 120 ms))

All models preserve note onset and velocity. They only move note offsets.

Limitations

This demo assumes the selected target is a mostly monophonic line. For chordal or strongly polyphonic tracks, the next-onset safety rule may over-shorten simultaneous notes.

MP3s are included for listening. Rerunning the notebook requires the MidiCaps/Lakh source MIDI, a General MIDI soundfont, FluidSynth support through PrettyMIDI, and ffmpeg for MP3 conversion. Source MIDI files and the full dataset are not included here.

Code

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages