Sha256: b7907789a3af87bf0cb69c570b2410f52e078241abe9d2b2b878056d85175fd5

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require 'rspec'
require 'music-transcription'

include Music::Transcription
include Pitches
include Meters

class Samples
  SAMPLE_PART = Part.new(
    Dynamics::P,
    notes: [
      Note::Quarter.new([ C1, D1 ]),
      Note::Quarter.new([ C2, D2 ]),
      Note::Whole.new([ C3, D3 ])
    ],
    dynamic_changes: {1.0 => Change::Immediate.new(Dynamics::MP)}
  )
end

RSpec::Matchers.define :be_valid do
  match do |obj|
    obj.valid?
  end
end

RSpec::Matchers.define :be_invalid do
  match do |obj|
    obj.invalid?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
music-transcription-0.7.3 spec/spec_helper.rb
music-transcription-0.7.2 spec/spec_helper.rb