You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							27 lines
						
					
					
						
							510 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							510 B
						
					
					
				
								
							 | 
						|
								import oscP5.*;
							 | 
						|
								import netP5.*;
							 | 
						|
								
							 | 
						|
								OscP5 oscP5;
							 | 
						|
								
							 | 
						|
								void setup() {
							 | 
						|
								  size(400,400);
							 | 
						|
								  frameRate(25);
							 | 
						|
								  oscP5 = new OscP5(this,7000);
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								void draw() {
							 | 
						|
								  background(0);  
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								void oscEvent(OscMessage theOscMessage) {
							 | 
						|
								  print("### Pattern: "+theOscMessage.addrPattern());
							 | 
						|
								  print(" TypeTag:"+theOscMessage.typetag());
							 | 
						|
								  if(theOscMessage.checkTypetag("i")){
							 | 
						|
								    print(" Value: "+theOscMessage.get(0).intValue());
							 | 
						|
								  }
							 | 
						|
								  if(theOscMessage.checkTypetag("s")){
							 | 
						|
								    print(" Value: "+theOscMessage.get(0));
							 | 
						|
								  }
							 | 
						|
								  println();
							 | 
						|
								}
							 |