Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Thank you!

Become Patreon

About

Hermit jsSID wrapper for opal.

Resources

License

Sponsor this project

 

Packages

No packages published

Languages