# Saylor Innovations Audio Bars Duration Calculator

> Saylor Innovations Audio Bars Duration Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates the total duration in seconds and minutes of a musical passage given a number of bars, beats per bar, and tempo in BPM

## Facts

- Endpoint: GET https://saylorinnovations.com/api/audio/bars?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-audio-bars-duration-calculator-012311cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8itaP9Ek9__YZ_g6QoZOK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-audio-bars-duration-calculator-012311cd
```

Example prompt: How long is 32 bars at 120 BPM in 4/4 time? Give me the duration in seconds and minutes.

## When to prefer this

Choose this endpoint when you need a precise, formula-based calculation of musical duration from bar count, meter, and tempo — especially useful in music production, film scoring, podcast editing, or any workflow where you need to convert musical structure (bars/beats) into wall-clock time without running a DAW or audio tool.

## Known failure modes

- Missing required query parameter (bars, beats_per_bar, or bpm) — likely 400 error
- Non-positive or zero values for any parameter — invalid input
- Non-numeric strings passed as parameters — parse error
- BPM set to extremely high or low values may produce nonsensical results
- Network or server unavailability returns non-200 status

## How this service works

Audio bars duration calculator from bars, beats per bar and BPM

## Output

Returns a JSON object with the original inputs (bars, beats_per_bar, bpm), computed total_beats, duration_seconds, duration_minutes, the formula used for the calculation, and a scope_note explaining what the result covers and excludes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bars",
      "beats_per_bar",
      "bpm"
     ],
     "properties": {
      "bpm": {
       "type": "string",
       "description": "required positive beats per minute (query)"
      },
      "bars": {
       "type": "string",
       "description": "required positive bar count (query)"
      },
      "beats_per_bar": {
       "type": "string",
       "description": "required positive beats per bar (query)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "bars",
      "beats_per_bar",
      "bpm",
      "total_beats",
      "duration_seconds",
      "scope_note"
     ],
     "properties": {
      "bpm": {
       "type": "number",
       "description": "Tempo in beats per minute"
      },
      "bars": {
       "type": "number"
      },
      "formula": {
       "type": "string",
       "description": "Formula used for the calculation"
      },
      "scope_note": {
       "type": "string",
       "description": "What this data covers and what it leaves out"
      },
      "total_beats": {
       "type": "number",
       "description": "Total beats"
      },
      "beats_per_bar": {
       "type": "number",
       "description": "Beats per bar"
      },
      "duration_minutes": {
       "type": "number",
       "description": "Duration, in minutes"
      },
      "duration_seconds": {
       "type": "number",
       "description": "Duration in seconds"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-audio-bars-duration-calculator-012311cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
