Sha256: 3ef23492e378cae31500cc99a030ec8cb2ae1f05ec8ff025bc80245afec1d14e
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
# text to midi example # require "opal-parser" t=text("ok") cc = circle({width: 33, height: 33, y: 69, x: 69, color: :yellow, atome_id: :the_cc}) ATOME.repeat 5, 0 do |evt| t.content(evt.abs) reader("./medias/rubies/text_read.rb") do |datas_get| datas=eval(datas_get) temperature= datas[:temperature] wind= datas[:wind] humidity= datas[:humidity] t.content( "temperature : #{temperature}, wind : #{wind}, humidity : #{humidity}") # cc.transmit({midi: {play: {note: "C3", channel: 15, velocity: 10}}}) ATOME.wait 2 do t.content(:stop) # cc.transmit({midi: {stop: {note: "C3", channel: 15, velocity: 100}}}) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atome-0.4.7.0 | vendor/assets/build/medias/rubies/examples/Old_examples/text_to_midi.rb |
atome-0.4.5.4 | vendor/assets/build/medias/rubies/examples/Old_examples/text_to_midi.rb |