GithubHelp home page GithubHelp logo

tmcgilchrist / piano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icicle-lang/piano-ambiata

0.0 2.0 0.0 47 KB

A library for lookup of times for entities in a chord descriptor.

License: BSD 3-Clause "New" or "Revised" License

Haskell 77.52% C 16.59% Objective-C 0.35% Shell 5.53%

piano's Introduction

Piano

a musical instrument in which hammers, operated from a keyboard of ivories, strike its cast of strings

Overview

This library provides parsing of ivory chord descriptor files and functionality to lookup the times associated with an entity.

Chord Descriptor Format

Unsorted, pipe-separated, entity and inclusive date.

<entity>|<inclusive date>

For example:

E+0072|2016-07-25
E+8680|2016-02-29
E+3787|2016-07-18
E+0190|2016-03-14
E+0022|2016-05-10

API

This library is primarily designed to be consumed from C using the following API:

//
// Lookup an entity in the chord descriptor.
//
// If the entity is found, its array of chord times are returned, sorted oldest
// to newest. The times returned are an exclusive bound on the scope of the
// chord query for the entity requested.
//
// Times are in seconds since 1600-03-01 (ivory epoch).
//
// If the entity is not found, the |out_count| will be set to 0.
//
error_t piano_lookup (
    piano_t *piano
  , size_t entity_size
  , const char *entity
  , int64_t *out_count
  , int64_t *out_times
  );

piano's People

Contributors

jacobstanley avatar

Watchers

James Cloos avatar  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.