lib/cli/notes.rb in coltrane-2.0.0 vs lib/cli/notes.rb in coltrane-2.1.0

- old
+ new

@@ -2,16 +2,15 @@ module Coltrane module Cli # Interfaces notes outputting functionality with the lib class Notes - def initialize(notes, on: 'text', desc: nil, flavor: 'notes') + def initialize(notes, desc: nil) @desc = desc || 'The notes you supplied:' - flavor = flavor.underscore.to_sym - on = on.to_sym notes = Coltrane::NoteSet.new(notes) - @representation = Representation.build(on, notes, flavor) + @representation = Representation.build(notes) render + # notes.each {|n| ColtraneSynth::Base.play(n, 0.1) } if Cli.config.sound end def render puts "\n" + [@desc, @representation.render].join("\n" * 2) end