GithubHelp home page GithubHelp logo

ryanpunwasi / semitone-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 316 KB

An API that serves musical notes in five different octaves

Home Page: https://semitone-api.onrender.com/

JavaScript 61.63% EJS 38.37%
music notes octave scales theory chords note octaves semitone

semitone-api's Introduction

🎺 Semitone API

About

Semitone API is a REST API that serves a total of sixty musical notes in five different octaves from the Western diatonic scale. This includes the notes A through G, as well as their accidentals.

Responses are in JSON format. Each note is represented as an object with the following properties:

  • id - a unique id
  • octave_id - the octave, which ranges from 1-5
  • letter - the letter notation, which ranges from A-G
  • accidental - the accidental, which can be flat, sharp, or natural
  • src - the source, which is a hyperlink to the audio of the note

Guide

How To Use

Making your first REST API call is easy and can be done from your browser.

REST calls are made up of:

  • Base URL. Example https://semitone-api.onrender.com
  • Endpoint. Example /notes

List of Endpoints

Exceptions

Requests for the notes C flat (C♭) and B sharp (B♯) will result in a 404: Not Found. This is because these notes belong to an octave that is different from the octave specified in the request. For example, the request /notes/3/C/flat is requesting a note from the third octave. However, C flat in octave 3 is equivalent to B sharp in octave 2.

If the accidental for a note is not specified, the natural variation will be returned. For example, a request to the endpoint /notes/3/C will return C natural.

semitone-api's People

Contributors

ryanpunwasi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.