Sha256: b8d1c66b5662c9b0566794b7efc49f2f5f73c6ac729688d4ac4fb01b5194e780

Contents?: true

Size: 1 KB

Versions: 18

Compression:

Stored size: 1 KB

Contents

require 'music-transcription'
require 'yaml'

include Music::Transcription

arrangement = Arrangement.new(
  :score => TempoScore.new(
    :program => Program.new(
      :segments => [0...4.0]
    ),
    :tempo_profile => profile(tempo(120)),
    :parts => {
      1 => Part.new(
        :notes => [
          note(0.25, [ interval(C3) ]),
          note(0.25, [ interval(D3) ]),
          note(0.25, [ interval(E3) ]),
          note(0.25, [ interval(F3) ]),
          note(0.25, [ interval(E3) ]),
          note(0.25, [ interval(D3) ]),
          note(0.5, [ interval(C3) ]),
          note(0.25, [ interval(C3, slur(D3)) ]),
          note(0.25, [ interval(D3, slur(E3)) ]),
          note(0.25, [ interval(E3, slur(F3)) ]),
          note(0.25, [ interval(F3, slur(E3)) ]),
          note(0.25, [ interval(E3, slur(D3)) ]),
          note(0.25, [ interval(D3, slur(C3)) ]),
          note(0.5, [ interval(C3) ]),
        ]
      )
    }
  )
)

File.open("slur_test.yml", "w") do |file|
  file.write arrangement.to_yaml
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
music-transcription-0.6.3 samples/arrangements/make_slur_test.rb
music-transcription-0.6.2 samples/arrangements/make_slur_test.rb
music-transcription-0.6.1 samples/arrangements/make_slur_test.rb
music-transcription-0.6.0 samples/arrangements/make_slur_test.rb
music-transcription-0.5.11 samples/arrangements/make_slur_test.rb
music-transcription-0.5.10 samples/arrangements/make_slur_test.rb
music-transcription-0.5.9 samples/arrangements/make_slur_test.rb
music-transcription-0.5.8 samples/arrangements/make_slur_test.rb
music-transcription-0.5.7 samples/arrangements/make_slur_test.rb
music-transcription-0.5.6 samples/arrangements/make_slur_test.rb
music-transcription-0.5.5 samples/arrangements/make_slur_test.rb
music-transcription-0.5.3 samples/arrangements/make_slur_test.rb
music-transcription-0.5.2 samples/arrangements/make_slur_test.rb
music-transcription-0.4.3 samples/arrangements/make_slur_test.rb
music-transcription-0.4.2 samples/arrangements/make_slur_test.rb
music-transcription-0.4.1 samples/arrangements/make_slur_test.rb
music-transcription-0.4.0 samples/arrangements/make_slur_test.rb
music-transcription-0.3.0 samples/arrangements/make_slur_test.rb