Skip to content

fazibear/opal-sid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages