Hermit jsSID wrapper for opal.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
opal
.codeclimate.yml
.gitignore
Gemfile
LICENSE.md
README.md
Rakefile
opal-sid.gemspec

README.md

opal-sid Gem Version Code Climate

Hermit jsSID wrapper for opal.

usage

Server side

config.ru, Rakefile, Rails, Sinatra, etc.

require 'opal-sid'

Gemfile

gem 'opal-sid'

Browser side

require 'sid'

current_song = {}
sid = SID.new
sid.on_load do |x|
  @current_song = {
    title: sid.title,
    author: sid.author,
    info: sid.info,
    tunes: sid.tunes
  }
end

sid.load_and_play("http://url", 0)

puts current_song