Git Product home page Git Product logo

Comments (4)

edekhayser avatar edekhayser commented on August 16, 2024

I should have elaborated more: is it possible to determine how close it is from the next note, as in "how far is this note between an A and an Ab?"

from tuningfork.

comyar avatar comyar commented on August 16, 2024

Hmm interesting idea...you can't currently, at least not directly. I could add it in explicitly or publicly expose the frequency table which would allow users to discover that info. I'll look into this over the weekend, it should be an easy addition.

from tuningfork.

edekhayser avatar edekhayser commented on August 16, 2024

Okay great! If you don't get a chance to look into it, I'll try hacking something together using the frequency table. I imagine it would involve finding the difference between two adjacent values, and finding how it relates to the actual frequency.

from tuningfork.

comyar avatar comyar commented on August 16, 2024

Yup, exactly. What I was thinking of doing was maybe returning an immutable Note object which was really a node in a linked list that would have methods like Note.adjacent or Note.step or something like that so you could basically traverse the frequency table (which is now actually a linked list) given any note; I may or may not actually do that, but it's an idea...the benefit would be you could do O(1) adjacent look-ups for any note.

from tuningfork.

Related Issues (14)

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.