Giter Club home page Giter Club logo

Comments (1)

bwl21 avatar bwl21 commented on August 20, 2024

HI,

what exactly do you want to achieve? What kind of project do you have in mind?

To answer your question so far. There is a core-API for abc2svg. See http://moinejf.free.fr/js/interface-1.xhtml

In addition to this there is an API to get a JSON representation. Zupfnoter is implemented in opal/Ruby. You can see the connection to this API in https://github.com/bwl21/zupfnoter/blob/master/30_sources/SRC_Zupfnoter/src/opal-abc2svg.rb

There are callbacks whcih allow to inject IDs based on the the ABC-Model to the generated SVG. By this you can connect and highlight particular notes.

Furtheron you can get a JSON representation of the abc2svg model enhanced by the midi pitch.

    def _callback_get_abcmodel(tsfirst, voice_tb, music_types, info)

      json_model = ""
      %x{
          abcmidi = new AbcMIDI();
          abcmidi.add(#{tsfirst}, #{voice_tb}[0].key);
          to_json = new AbcJSON();
          #{json_model} =  to_json.gen_json(#{tsfirst}, #{voice_tb}, #{music_types}, #{info});
      }

      @abc_model = JSON.parse(json_model)

      if $log.loglevel == "debug"
        $log.debug(@abc_model.to_json)
      end
      @abc_model
    end

Hope that helps. I close this issue. Please send a personal email if you have questions. I will be glad to help.

B.

from zupfnoter.

Related Issues (20)

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.