SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1910.06711 · 2019

MelGAN: Generative Adversarial Networks for Conditional Waveform Synthesis

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 4 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/1910.06711.json · badge: /api/ran/1910.06711.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
descriptinc/melgan-neurips canonical (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
rosinality/melgan-pytorch reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
seungwonpark/melgan reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
yanggeng1995/GAN-TTS reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
calc_padding Ran
ran, violated the contract we drafted
rosinality/melgan-pytorch/melgan.py
code served (permissive licence) · get_code("f1f581545c4a0ab0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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.

ARGS = {
    'kernel_size': 3,
    'stride': 1,
    'dilation': 1
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — 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
dynamic_range_compression Ran
ran; our contract draft was wrong, not the code
seungwonpark/melgan/utils/audio_processing.py
code served (permissive licence) · get_code("83e2c862f7374ac7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) 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

torch.manual_seed(0)

# Create a small tensor with positive values for dynamic range compression
# This simulates magnitude spectrogram or similar audio processing data
x = torch.rand(2, 4) * 10  # Random values between 0 and 10

# C is compression factor (default 1)
C = 1

# clip_val is minimum clipping value (default 1e-05)
clip_val = 1e-05

ARGS = {
    'x': x,
    'C': C,
    'clip_val': clip_val
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
files_to_list Ran
ran on a synthesized input
descriptinc/melgan-neurips/mel2wav/dataset.py
code served (permissive licence) · get_code("6e8184ff4faf3139")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 some filenames
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8', suffix='.txt')
temp_file.write("file1.txt\n")
temp_file.write("file2.txt\n")
temp_file.write("file3.txt\n")
temp_file.close()

ARGS = {
    "filename": temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
griffin_lim Ran
ran; our contract draft was wrong, not the code
seungwonpark/melgan/utils/audio_processing.py
code served (permissive licence) · get_code("9f9ec26d4cdfdf7d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 11) 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
import numpy as np

torch.manual_seed(0)

class STFT:
    def __init__(self):
        pass
    
    def transform(self, signal):
        # Returns (magnitudes, angles)
        # signal shape: (batch, time)
        batch_size = signal.size(0)
        time_len = signal.size(1)
        # Return magnitudes and angles with shape (batch, freq, time_frames)
        freq_bins = 5
        time_frames = 7
        magnitudes = torch.abs(torch.randn(batch_size, freq_bins, time_frames))
        angles = torch.randn(batch_size, freq_bins, time_frames)
        return magnitudes, angles
    
    def inverse(self, magnitudes, angles):
        # magnitudes shape: (batch, freq, time_frames)
        # angles shape: (batch, freq, time_frames)
        # Returns signal with shape (batch, 1, time)
        batch_size = magnitudes.size(0)
        time_len = 11
        signal = torch.randn(batch_size, 1, time_len)
        return signal

stft_fn = STFT()

# Create magnitudes tensor with shape (batch=2, freq=5, time_frames=7)
magnitudes = torch.abs(torch.randn(2, 5, 7))

ARGS = {
    'magnitudes': magnitudes,
    'stft_fn': stft_fn,
    'n_iters': 3
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 11) — shape (2, 11) 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
wnconv1d Ran
ran; our contract draft was wrong, not the code
rosinality/melgan-pytorch/melgan.py
code served (permissive licence) · get_code("adbaa42086223bfc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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 torch
from torch import nn
from torch.nn.utils import weight_norm

torch.manual_seed(0)

# The function wnconv1d takes the following parameters:
# in_channel, out_channel, kernel_size, stride=1, dilation=1, groups=1, act='postact'

# Define distinct values for each parameter
in_channel = 8
out_channel = 16
kernel_size = 3
stride = 1
dilation = 1
groups = 1
act = 'postact'

ARGS = {
    'in_channel': in_channel,
    'out_channel': out_channel,
    'kernel_size': kernel_size,
    'stride': stride,
    'dilation': dilation,
    'groups': groups,
    'act': act
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not 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
wnconvtranspose1d Ran
ran; our contract draft was wrong, not the code
rosinality/melgan-pytorch/melgan.py
code served (permissive licence) · get_code("d7b8ead7dfdd315e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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 torch
from torch import nn

torch.manual_seed(0)

ARGS = {
    'in_channel': 8,
    'out_channel': 16,
    'kernel_size': 3,
    'stride': 2,
    'dilation': 1,
    'act': 'postact'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not 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
load_checkpoint Not yet run
unverified (harvested, no recorded run)
yanggeng1995/GAN-TTS/generate.py
pointer only (licence: NONE) · get_code("f443ef0155d2d898")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yanggeng1995/GAN-TTS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 4 later) and 3 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
griffin_lim 14 other papers
5 dated earlier, 9 later
1803.09017 (2018-03)
Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis
1811.02122 (2018-11)
Robust and fine-grained prosody control of end-to-end speech synthesis
1812.04342 (2018-12)
Learning latent representations for style control and transfer in end-to-end speech synthesis
and 11 more not named here
dynamic_range_compression 13 other papers
6 dated earlier, 7 later
1803.09017 (2018-03)
Style Tokens: Unsupervised Style Modeling, Control and Transfer in End-to-End Speech Synthesis
1811.02122 (2018-11)
Robust and fine-grained prosody control of end-to-end speech synthesis
1812.04342 (2018-12)
Learning latent representations for style control and transfer in end-to-end speech synthesis
and 10 more not named here
files_to_list 5 other papers
2 dated earlier, 3 later
1702.07825 (2017-02)
Deep Voice: Real-time Neural Text-to-Speech
1811.00002 (2018-11)
WaveGlow: A Flow-based Generative Network for Speech Synthesis
1912.01219 (2019-12)
WaveFlow: A Compact Flow-based Model for Raw Audio
and 2 more not named here
load_checkpoint 3 other papers
1 dated earlier, 1 the same month, 1 later
1909.11646 (2019-09)
High Fidelity Speech Synthesis with Adversarial Networks
1910.11480 (2019-10)
Parallel WaveGAN: A fast waveform generation model based on generative adversarial networks with multi-resolution spectrogram
2005.05106 (2020-05)
Multi-band MelGAN: Faster Waveform Generation for High-Quality Text-to-Speech

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

Previous works (Donahue et al., 2018a; Engel et al., 2019a) have found that generating coherent raw audio waveforms with GANs is challenging. In this paper, we show that it is possible to train GANs reliably to generate high quality coherent waveforms by introducing a set of architectural changes and simple training techniques. Subjective evaluation metric (Mean Opinion Score, or MOS) shows the effectiveness of the proposed approach for high quality mel-spectrogram inversion. To establish the generality of the proposed techniques, we show qualitative results of our model in speech synthesis, music domain translation and unconditional music synthesis. We evaluate the various components of the model through ablation studies and suggest a set of guidelines to design general purpose discriminators and generators for conditional sequence synthesis tasks. Our model is non-autoregressive, fully convolutional, with significantly fewer parameters than competing models and generalizes to unseen speakers for mel-spectrogram inversion. Our pytorch implementation runs at more than 100x faster than realtime on GTX 1080Ti GPU and more than 2x faster than real-time on CPU, without any hardware specific optimization tricks.

For agents

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

get_harvested_code_for_paper("1910.06711")
get_code_for_paper("1910.06711")
have("1910.06711")

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

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

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

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

Connect an agent — have() is free.