SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1909.06654 · 2019

musicnn: Pre-trained convolutional neural networks for music audio tagging

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1909.06654.json · badge: /api/ran/1909.06654.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jordipons/sklearn-audio-transfer-learning canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
jordipons/musicnn-training canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
jordipons/musicnn canonical (classifier label)
classifier basis: census
0 ran · 1 no recorded run
FunctionStatusWhere it lives
evaluation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jordipons/musicnn-training/src/evaluate.py
code served (permissive licence) · get_code("778f3293c69fd511")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from unittest.mock import MagicMock

# Create a mock TensorFlow session and variables
mock_sess = MagicMock()

# Mock the session.run method to return predictions and cost
# pred shape: (batch_size, output_dim)
# cost: scalar
def mock_run(fetch, feed_dict):
    if isinstance(fetch, list):
        # Return [normalized_y, cost]
        batch_size = feed_dict[mock_x].shape[0]
        pred = np.random.randn(batch_size, 3).astype(np.float32)
        cost = np.float32(0.5)
        return [pred, cost]
    return None

mock_sess.run = mock_run

# Create mock TensorFlow placeholders/variables
mock_x = MagicMock()
mock_y = MagicMock()
mock_is_train = MagicMock()
mock_normalized_y = MagicMock()
mock_cost = MagicMock()

# tf_vars list: [sess, normalized_y, cost, x, y_, is_train]
tf_vars = [mock_sess, mock_normalized_y, mock_cost, mock_x, mock_y, mock_is_train]

# Create batch_dispatcher (list of batches)
batch_dispatcher = [
    {
        'X': np.random.randn(2, 4).astype(np.float32),
        'Y': np.random.randn(2, 3).astype(np.float32),
        'ID': np.array([0, 1])
    },
    {
        'X': np.random.randn(2, 4).astype(np.float32),
        'Y': np.random.randn(2, 3).astype(np.float32),
        'ID': np.array([2, 3])
    }
]

# Initial values for array_cost, pred_array, id_array
array_cost = []
pred_array = None
id_array = None

ARGS = {
    'batch_dispatcher': batch_dispatcher,
    'tf_vars': tf_vars,
    'array_cost': array_cost,
    'pred_array': pred_array,
    'id_array': id_array
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
frame Ran
ran; our contract draft was wrong, not the code
jordipons/sklearn-audio-transfer-learning/src/mel_features.py
code served (permissive licence) · get_code("b65573125c5eb0f4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (4, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct a simple 1D array with 10 samples
data_1d = np.arange(10, dtype=np.float32)

# Construct a 2D array with shape (10, 3) - 10 samples, 3 features
data_2d = np.arange(30, dtype=np.float32).reshape(10, 3)

# Use the 2D array as the test case
data = data_2d

# Window length of 4 samples
window_length = 4

# Hop length of 2 samples (overlapping frames)
hop_length = 2

ARGS = {
    "data": data,
    "window_length": window_length,
    "hop_length": hop_length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 4, 3) — shape (4, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
label2onehot Ran
ran on a synthesized input
jordipons/sklearn-audio-transfer-learning/src/utils.py
code served (permissive licence) · get_code("42224733871bc34b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# label2onehot takes two parameters:
# 1. label: a class label (integer index)
# 2. num_classes: the total number of classes

ARGS = {
    "label": 2,
    "num_classes": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_path2gt Ran
ran on a synthesized input
jordipons/sklearn-audio-transfer-learning/src/utils.py
code served (permissive licence) · get_code("95cc337c24169baa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with sample audio paths
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write('/data/blues/song1.wav\n')
temp_file.write('/data/classical/song2.wav\n')
temp_file.write('/data/country/song3.wav\n')
temp_file.write('/data/disco/song4.wav\n')
temp_file.write('/data/hiphop/song5.wav\n')
temp_file.close()

# Create config dictionary
config = {
    'dataset': 'GTZAN',
    'num_classes_dataset': 10
}

# Define ARGS
ARGS = {
    'paths_file': temp_file.name,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
path2gt_datasets Ran
ran on a synthesized input
jordipons/sklearn-audio-transfer-learning/src/utils.py
code served (permissive licence) · get_code("9326fd31392bd1e8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    'path': 'music/blues/song_001.wav',
    'dataset': 'GTZAN'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
periodic_hann Ran
ran, honoured the contract we drafted
jordipons/sklearn-audio-transfer-learning/src/mel_features.py
code served (permissive licence) · get_code("29345538d55235c3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (512,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "window_length": 512
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (512,) — shape (512,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stft_magnitude Ran
ran; our contract draft was wrong, not the code
jordipons/sklearn-audio-transfer-learning/src/mel_features.py
code served (permissive licence) · get_code("bcec5b9bde143277")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (7, 257) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple 1D audio signal
np.random.seed(0)
signal = np.random.randn(1024).astype(np.float32)

# Define STFT parameters
fft_length = 512
hop_length = 128
window_length = 256

ARGS = {
    "signal": signal,
    "fft_length": fft_length,
    "hop_length": hop_length,
    "window_length": window_length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (7, 257) — shape (7, 257) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
frontend Not yet run
unverified (harvested, no recorded run)
jordipons/musicnn/musicnn/models.py
code served (permissive licence) · get_code("f5aea5c30a013beb")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
frame 6 other papers
3 dated earlier, 3 later
1609.09430 (2016-09)
CNN Architectures for Large-Scale Audio Classification
1803.02353 (2018-03)
Multi-level Attention Model for Weakly Supervised Audio Classification
1903.00765 (2019-03)
Weakly Labelled AudioSet Tagging with Attention Neural Networks
and 3 more not named here
periodic_hann 6 other papers
3 dated earlier, 3 later
1609.09430 (2016-09)
CNN Architectures for Large-Scale Audio Classification
1803.02353 (2018-03)
Multi-level Attention Model for Weakly Supervised Audio Classification
1903.00765 (2019-03)
Weakly Labelled AudioSet Tagging with Attention Neural Networks
and 3 more not named here
stft_magnitude 6 other papers
3 dated earlier, 3 later
1609.09430 (2016-09)
CNN Architectures for Large-Scale Audio Classification
1803.02353 (2018-03)
Multi-level Attention Model for Weakly Supervised Audio Classification
1903.00765 (2019-03)
Weakly Labelled AudioSet Tagging with Attention Neural Networks
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Pronounced as "musician", the musicnn library contains a set of pre-trained musically motivated convolutional neural networks for music audio tagging: https://github.com/jordipons/musicnn. This repository also includes some pre-trained vgg-like baselines. These models can be used as out-of-the-box music audio taggers, as music feature extractors, or as pre-trained models for transfer learning. We also provide the code to train the aforementioned models: https://github.com/jordipons/musicnn-training. This framework also allows implementing novel models. For example, a musically motivated convolutional neural network with an attention-based output layer (instead of the temporal pooling layer) can achieve state-of-the-art results for music audio tagging: 90.77 ROC-AUC / 38.61 PR-AUC on the MagnaTagATune dataset --- and 88.81 ROC-AUC / 31.51 PR-AUC on the Million Song Dataset.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1909.06654")
get_code_for_paper("1909.06654")
have("1909.06654")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1909.06654.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1909.06654.svg)](https://syntology.ai/paper/1909.06654)

Connect an agent — have() is free.