æè¿KAOSS DJã§éãã§ã¦ï¼ãã®ãMIDIã¤ãã³ããåãåãã¨ããã¾ã§ã§ããã®ã§ï¼ããã¡ãã£ã¨ç¥çãªãã¨ããã£ã¦ã¿ãï¼ ãã§ã¼ãã¼ã«å¿ãã¦å§ãåºã ã¯ãã¹ãã§ã¼ãã¼ã®å¤ã«å¿ãã¦æåãåºãã¦ã¿ãï¼UniMIDIã§ã¤ãã³ããåãåã£ã¦ï¼182çªã®ã¨ãã ãå¤ãè¦ã¦ãªããããï¼182çªã¯ã¯ãã¹ãã§ã¼ãã®æä½ã§ï¼3çªç®ã«ãã§ã¼ãã¼ã®ä½ç½®ãå ¥ã£ã¦ãï¼ require 'bundler' Bundler.require input = UniMIDI::Input.first.open loop { events = input.gets events.each{|event| data = event[:data] next unless data[0] == 182 size = data[2] / 127.0 * 30 puts 'å§' * size } } sketch-midi/ane.r
{{#tags}}- {{label}}
{{/tags}}