mirror of
				https://github.com/onyx-and-iris/voicemeeter-rb.git
				synced 2025-11-03 21:51:47 +00:00 
			
		
		
		
	reformat main, apply examples
This commit is contained in:
		
							parent
							
								
									c9c2b906c5
								
							
						
					
					
						commit
						2a191dccb8
					
				
							
								
								
									
										26
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								README.md
									
									
									
									
									
								
							@ -40,9 +40,7 @@ require "voicemeeter"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Main
 | 
					class Main
 | 
				
			||||||
  def run
 | 
					  def run
 | 
				
			||||||
    Voicemeeter::Remote
 | 
					    Voicemeeter::Remote.new(:banana).run do |vm|
 | 
				
			||||||
      .new(:banana)
 | 
					 | 
				
			||||||
      .run do |vm|
 | 
					 | 
				
			||||||
      vm.strip[0].label = "podmic"
 | 
					      vm.strip[0].label = "podmic"
 | 
				
			||||||
      vm.strip[0].mute = true
 | 
					      vm.strip[0].mute = true
 | 
				
			||||||
      puts "strip 0 #{vm.strip[0].label} mute was set to #{vm.strip[0].mute}"
 | 
					      puts "strip 0 #{vm.strip[0].label} mute was set to #{vm.strip[0].mute}"
 | 
				
			||||||
@ -612,24 +610,10 @@ get may return nil if no value for requested key in midi cache
 | 
				
			|||||||
```ruby
 | 
					```ruby
 | 
				
			||||||
vm.apply(
 | 
					vm.apply(
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    "strip-0" => {
 | 
					    "strip-0" => {mute: true, gain: 3.2, A1: true},
 | 
				
			||||||
      mute: true,
 | 
					    "bus-3" => {gain: -3.2, eq: {on: true}},
 | 
				
			||||||
      gain: 3.2,
 | 
					    "button-39" => {stateonly: true},
 | 
				
			||||||
      A1: true
 | 
					    "vban-outstream-3" => {on: true, bit: 24}
 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "bus-3" => {
 | 
					 | 
				
			||||||
      gain: -3.2,
 | 
					 | 
				
			||||||
      eq: {
 | 
					 | 
				
			||||||
        on: true
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "button-39" => {
 | 
					 | 
				
			||||||
      stateonly: true
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "vban-outstream-3" => {
 | 
					 | 
				
			||||||
      on: true,
 | 
					 | 
				
			||||||
      bit: 24
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								main.rb
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.rb
									
									
									
									
									
								
							@ -2,9 +2,7 @@ require "voicemeeter"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Main
 | 
					class Main
 | 
				
			||||||
  def run
 | 
					  def run
 | 
				
			||||||
    Voicemeeter::Remote
 | 
					    Voicemeeter::Remote.new(:banana).run do |vm|
 | 
				
			||||||
      .new(:banana)
 | 
					 | 
				
			||||||
      .run do |vm|
 | 
					 | 
				
			||||||
      vm.strip[0].label = "podmic"
 | 
					      vm.strip[0].label = "podmic"
 | 
				
			||||||
      vm.strip[0].mute = true
 | 
					      vm.strip[0].mute = true
 | 
				
			||||||
      puts "strip 0 #{vm.strip[0].label} mute was set to #{vm.strip[0].mute}"
 | 
					      puts "strip 0 #{vm.strip[0].label} mute was set to #{vm.strip[0].mute}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user