• Stars
    star
    17
  • Rank 1,257,181 (Top 25 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A crystal shard for doing music related stuff

medley

A mixture of music related methods.

Installation

Install locally

or add as a dependecy to your project

dependencies:
  medley:
    github: jwoertink/medley
    branch: master

Usage

require "medley"

# Play with a note
note = Medley::Note.new("G")
puts note.halfstep_up # => "G#"
puts note.wholestep_up # => "A"
puts note.sharp? #=> false
puts note.natural? #=> true
puts note.next_root #=> "A"
puts note.halfstep_down #=> "Gb"
puts note.name #=> "G"

other_note = Medley::Note.new("G#")
other_note.root_matches?(note) #=> true

# Play with a scale
scale = Medley::Scale.new("Cmaj")
scale.notes #=> ["C", "D", "E", "F", "G", "A", "B", "C"]

# Get the flats or sharps from a key of a scale
scale = Medley::Scale.new("Bbmaj")
scale.key.flats #=> ["Bb", "Eb"]

# Learn note patterns from a scale
scale = Medley::Scale.new("Cmaj")
scale.pattern(1, 6, 4, 5) #=> ["C", "A", "F", "G"]

Development

  • crystal spec

Contributing

  1. Fork it ( https://github.com/jwoertink/medley/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • jwoertink Jeremy Woertink - creator, maintainer

More Repositories

1

fez

A Kemal application generator
Crystal
51
star
2

kave

Kemal API Version Extension
Crystal
31
star
3

sitemapper

Sitemap generator for Crystal apps
Crystal
24
star
4

crono

2D Video Game framework
Crystal
17
star
5

crystal_orm_test

Benchmark different ORMs for crystal and postgres
Crystal
16
star
6

dopewars

Ruby port of the Dopewars / Drugwars game
Ruby
15
star
7

lucky-cluster

Boot multiple lucky processes
Crystal
13
star
8

psst

Send encrypted string between ruby and crystal
Ruby
11
star
9

webrtc-demo

How to get started with WebRTC
JavaScript
9
star
10

Waves

JRuby + jMonkeyEngine 3D fun
Ruby
9
star
11

pcotm

Phone Case of the Monster
Ruby
5
star
12

bootcamp

Defunct project
Ruby
5
star
13

guard-kemal

A Kemal guard watcher plugin
Ruby
5
star
14

maze_craze

jMonkeyEngine & JRuby dynamic maze game
Ruby
5
star
15

node-chat-demo

Learning NodeJS through the node-chat application
JavaScript
4
star
16

ruby-in-water

Example app with a mock sinatra and really fast connection
Ruby
3
star
17

Pathbox

Path(http://www.path.com/) style box from iPhone app
JavaScript
3
star
18

transfer-util

This is a yahoo store web scraper, and RTML transfer util
Ruby
3
star
19

jko_api

api versioning gem for rails
Ruby
3
star
20

vite_lucky

Crystal
3
star
21

nacha

A Crystal shard for parsing and generating Nacha (ACH) files
Crystal
2
star
22

JustTheTip

jQuery Tool Tip Plug-in
JavaScript
2
star
23

omgwtfmmo

game tutorial
JavaScript
2
star
24

tourets

A Rails gem for using RETS
Ruby
2
star
25

gosu-example

Simple Gosu Example
Ruby
2
star
26

JustSlide

jQuery content slider
JavaScript
2
star
27

jmonkeyengine-ruby

A ruby gem for easily including JME3 into your project
Ruby
2
star
28

rw_depot_store

Depot Store for RubyWeekend
Ruby
2
star
29

ruby-encryptor

a fun little encryption app built in ruby
Ruby
1
star
30

blackjack_example

Ruby
1
star
31

rw_depot_theme

Default theme for the RubyWeekend Depot App
Ruby
1
star
32

jqxmaslights

jQuery Christmas lights for a container element
JavaScript
1
star
33

crono-samples

Sample games written using Crono
Crystal
1
star
34

woert.ink

My personal site
Crystal
1
star
35

rspec-interactions-test

Trying to test this bug.
Ruby
1
star
36

kemal-session-client-engine

Kemal session for client side storage
Crystal
1
star
37

JustCopy

jQuery clipboard copy
JavaScript
1
star
38

pirates-ios

A Pirate game based on the Udemy Course Challenge
Objective-C
1
star
39

shellac

HTTP Cache server
Elixir
1
star
40

recursinator

Traverse a directory to do stuff in Ruby or Crystal
Crystal
1
star
41

tictacnode

tic tac toe game written in nodeJS
JavaScript
1
star
42

rails-upgrade-tracker

make upgrading rails a little easier
Ruby
1
star
43

rr10-team-208

Repository for the RailsRumble 2010 Team 208
Ruby
1
star
44

enom-ruby

Ruby wrapper for the Enom reseller API
Ruby
1
star
45

godaddy-api.cr

Simple Godaddy API for crystal
Crystal
1
star
46

json_fields

A Rails add-on to create a simple UI for json fields
Ruby
1
star
47

lucky-basic-auth

HTTP Basic auth shard for Lucky
Crystal
1
star
48

memory-js

JavaScript
1
star
49

bsky

A BlueSky social API for Crystal
Crystal
1
star
50

blocked-numbers

A list of phone number from robo calls to block
Ruby
1
star