Sha256: a140db175455180ac23961eb4a0908a25a7aadbc4896796d8f48089b92d389a3
Contents?: true
Size: 815 Bytes
Versions: 18
Compression:
Stored size: 815 Bytes
Contents
require 'music-transcription' require 'yaml' include Music::Transcription arrangement = Arrangement.new( :score => TempoScore.new( :program => Program.new( :segments => [0...1.0] ), :tempo_profile => profile(tempo(120)), :parts => { 1 => Part.new( :loudness_profile => profile(0.5), :notes => [ note(0.125, [ interval(C3) ] ), note(0.125, [ interval(D3) ] ), note(0.25, [ interval(C3) ] ), note(0.50, [ interval(C3), interval(E3) ] ), ] ) } ), :instrument_configs => { 1 => InstrumentConfig.new( :plugin_name => 'synth_instr_3', :initial_settings => ["blend", "short attack", "long decay"] ), } ) File.open("instrument_test.yml", "w") do |file| file.write arrangement.to_yaml end
Version data entries
18 entries across 18 versions & 1 rubygems