Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazibear/opal-sid
Hermit jsSID wrapper for opal.
https://github.com/fazibear/opal-sid
Last synced: 8 days ago
JSON representation
Hermit jsSID wrapper for opal.
- Host: GitHub
- URL: https://github.com/fazibear/opal-sid
- Owner: fazibear
- License: mit
- Created: 2016-04-01T22:15:58.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T10:25:27.000Z (over 6 years ago)
- Last Synced: 2024-12-19T04:24:08.689Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-opal - Opal Sid - Hermit jsSID wrapper for opal (Uncategorized / Uncategorized)
README
# opal-sid [![Gem Version](https://badge.fury.io/rb/opal-sid.svg)](http://badge.fury.io/rb/opal-sid) [![Code Climate](https://codeclimate.com/github/fazibear/opal-sid/badges/gpa.svg)](https://codeclimate.com/github/fazibear/opal-sid)
Hermit [jsSID](https://github.com/hermitsoft/jsSID) wrapper for opal.
## usage
### Server side
config.ru, Rakefile, Rails, Sinatra, etc.```ruby
require 'opal-sid'
```Gemfile
```ruby
gem 'opal-sid'
```### Browser side
```ruby
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
}
endsid.load_and_play("http://url", 0)
puts current_song
```## Thank you!
[![Become Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?u=6912974)