﻿# MusicNet window labels: notes at the midpoint are not every note heard in the crop

Reproduce the MusicNet midpoint note-classification target without replacing it with the union of events anywhere inside an input audio window.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-musicnet-midpoint-note-target-not-window-union/
Language: en

## Locate the target within the observation window

An audio crop contains a violin note that ends before the center and a piano note that starts near its end. A loader labels the crop with both pitches because both are audible somewhere inside it. That can be a legitimate tagging task, but it is different from predicting notes active at the midpoint. Define the target reference point separately from the context duration; a larger input window need not imply a broader temporal union of labels.

## Read the original prediction objective

The [MusicNet paper](https://arxiv.org/pdf/1611.09827) defines a multi-label note-prediction task whose target identifies notes present at the midpoint of the audio segment. Multiple simultaneous notes may be active there. Preserve that objective when comparing with the paper's experiment rather than converting it into a single dominant pitch or every pitch appearing anywhere in the window. Changing target construction can alter both apparent task difficulty and what a successful prediction actually establishes.

## Inspect the creator's loader behavior

The [author's PyTorch implementation](https://raw.githubusercontent.com/jthickstun/pytorch_musicnet/master/musicnet.py) retrieves active interval labels at the center of the sampled audio and builds a binary note vector. This provides an executable example of the target contract. Pin the implementation used, especially if modifying crop duration or augmentation. A transformed observation and its queried reference point must remain associated; copying a target from a differently located crop can preserve tensor shapes while corrupting the semantic pairing.

## Keep the label resource and selected task distinct

The [MusicNet dataset deposit](https://zenodo.org/records/5120004) describes note, instrument and metrical annotations and their score-alignment provenance. Those annotations can support tasks beyond the original midpoint pitch objective. An instrument-aware target or whole-window event union can be derived, provided it is declared as another construction. Do not infer that the presence of instrument information means a particular pitch-only loader predicts instrument identity, or that its multi-label vector contains every annotation field distributed with the corpus.

## Validate a crop across a note boundary

Choose a crop with a note ending before the midpoint and another starting after it. Inspect waveform context, original intervals and the actual target vector. Move the crop slightly and verify that target changes follow the chosen reference point rather than a cached window union. The [audio timestamp guide](/journal/data-guide-audio-resample-time-labels/) and [reproducible software stack guide](/journal/software-stack-reproducibility/) help record coordinate and implementation choices. State the supervision rule with results so that different window-labeling tasks are not compared as identical MusicNet experiments.
