mirror of
				https://github.com/onyx-and-iris/voicemeeter-rb.git
				synced 2025-11-04 06:01:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			246 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			246 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
module Voicemeeter
 | 
						|
  class Midi
 | 
						|
    attr_accessor :cache, :current, :channel
 | 
						|
 | 
						|
    def initialize
 | 
						|
      @cache = Hash.new
 | 
						|
    end
 | 
						|
 | 
						|
    def get(key)
 | 
						|
      cache[key]
 | 
						|
    end
 | 
						|
 | 
						|
    def set(key, velocity)
 | 
						|
      cache[key] = velocity
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |