Sha256: 8e84b589620fcbcc4cf56df0856dc9fc856fe99ff2b605495273b4bcf3b02152
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
require 'music-transcription' require 'yaml' include Music::Transcription include Pitches include Articulations score = Score.new( Meter.new(4,"1/4".to_r), 120, program: Program.new([0...8.0]), parts: { "bass" => Part.new( Dynamics::MF, notes: [ # 0.0 Note::quarter([Eb2]), Note::quarter, Note::quarter([Bb2]), Note::quarter, Note::quarter([Eb2]), Note::eighth, Note::eighth([B2]), Note::quarter([Bb2]), Note::quarter([Ab2]), # 2.0 Note::quarter([Eb2]), Note::quarter, Note::quarter([Bb2]), Note::quarter, Note::quarter([Eb2]), Note::eighth, Note::eighth([B2]), Note::quarter([Bb2]), Note::quarter([Ab2]), # 4.0 Note::quarter([Bb2]), Note::eighth, Note::eighth([F3], articulation: SLUR), Note::half([F3]), Note::quarter([Bb2]), Note::eighth, Note::eighth([F3], articulation: SLUR), Note::half([F3]), # 6.0 Note::quarter([B2]), Note::eighth, Note::eighth([Gb3], articulation: SLUR), Note::half([Gb3]), Note::quarter([B2]), Note::eighth, Note::eighth([Gb3], articulation: SLUR), Note::half([Gb3]), #8.0 ] ) } ) File.open("missed_connection.yml", "w") do |file| file.write score.to_yaml end
Version data entries
4 entries across 4 versions & 1 rubygems