# Music Note Generator API

> Music Note Generator is a musical note generator API that creates high-quality WAV audio files of musical notes with precise frequency generation, plus customizable duration on paid plans.

**Endpoint:** `GET https://api.apiverve.com/v1/musicnotegenerator`  
**Category:** Entertainment  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/musicnotegenerator

## Overview

Generates 16-bit WAV files with smooth ADSR envelopes and provides downloadable audio with automatic expiration handling.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/musicnotegenerator?note=C&octave=4&duration=1.0" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `note` | string | Yes | Musical note (A-G with optional # or b). One of: A, A#, Ab, B, Bb, C, C#, D, D#, Db, E, Eb, F, F#, G, G#, Gb |
| `octave` | integer | No | Octave number. default 4. range 0-8 |
| `duration` | number | No | Duration in seconds. default 1. range 0.1-10. Premium field |

## Response fields

- `note` — string · Musical note that was generated
- `octave` — number · Octave number used for generation
- `frequency` — number · Frequency in Hz of the generated note · (premium)
- `duration` — number · Duration in seconds of the audio file
- `audio` — object · The rendered tone, with its download URL and expiry
  - `audio.audioFile` — string
  - `audio.format` — string
  - `audio.downloadURL` — string
  - `audio.duration` — string · Duration in seconds of the audio file
  - `audio.sampleRate` — string
  - `audio.bitDepth` — string
  - `audio.expires` — number

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "note": "C",
    "octave": 4,
    "frequency": 261.63,
    "duration": 1,
    "audio": {
      "audioFile": "72510463-6388-4588-8e08-5714f20f9c67.wav",
      "format": ".wav",
      "downloadURL": "https://storage.googleapis.com/apiverve/APIData/musicnotegenerator/72510463-6388-4588-8e08-5714f20f9c67.wav?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1765925810&Signature=djWUb%2B8QmrAZLTEDiPAIB%2Bx7w7OYyJiClHTcPtkIvvtlKT01z%2FxJMMjUMvUHTx0aRpF94Oq5jdFKBqw2NPKOaEQPNIeF%2BukRt3cS5chrLI3ynvnLobkz4%2FrTGXW8r2BE42oWGMC1xjTJpdU5IMQjhEmWDMRPWzJo5sy6ZQAll5US9DtSVl7Tc2wyHCZRlxcTxlOLPCWv9SZ6Mn8i4kSXITWwp2FaR%2BEdJOi6bpRYkBBmWvnLlAiNFTm44v5QKm7dwXpAAyoidJ4%2Bo%2B2OErXHJ%2BTDMiLwFHZAc4Bt4slYTX5henGIt752fCoj2%2FOaLWSXp%2BnJNFkvKdKxVpDH40y%2FqA%3D%3D",
      "duration": "1.00s",
      "sampleRate": "44100Hz",
      "bitDepth": "16-bit",
      "expires": 1765925810991
    }
  }
}
```

## Use cases

- **Music Education** — Generate musical notes for educational applications and learning tools
- **Audio Synthesis** — Create synthesized musical tones for composition and experimentation
- **Game Development** — Generate musical notes for game sound effects and interactive audio
- **Audio Testing** — Generate reference tones for audio testing and calibration

## SDKs

- **npm** — `npm install @apiverve/musicnotegenerator` (https://www.npmjs.com/package/@apiverve/musicnotegenerator)
- **NuGet** — `dotnet add package APIVerve.API.MusicNoteGenerator` (https://www.nuget.org/packages/APIVerve.API.MusicNoteGenerator)
- **Source** — https://github.com/apiverve/musicnotegenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/musicnotegenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
