Hi All
Out of curiosity does anybody know of a way to suppress key repeats within Pd when using key, keyup or keyname, other than turning it off in system settings
Cheers
Balwyn
- 
				
				
				
				Suppress key repeats within Pd 
 
- 
				
				
				
				Hi Balwyn, If you are using Pd-extended or Pd-l2Ork, you can connect a [change] after any of the key objects. This way the output is passed only if it's different from the last (effectively removing key repeats). Cheers, 
 Gilberto
- 
				
				
				
				@gsagostinho 
 Hi, thanks for the reply, I tried [change] but I wanted to use [keyup] as well and [change] effectively cancel the key when you want to play it more than once. Then I tried [keyname] and created symbols, eg, 'kq1' for keyon and kq0 for keyoff but [change] has no methods for symbol. The reason I added the 'k' at the beginning of the symbol was numeric keys were not being recognized as symbols in [sel]. I also tried [once]
 I have no real use for this but I was interested to know the difficulties in what laura_owen24 was up for, and advised turning key repeat off and on in system settings, but that's not really ideal.
 poly-qwerty.pd
 Cheers
 Balwyn
- 
				
				
				
				How about this for symbol change?  
- 
				
				
				
				@LiamG 
 Hi
 That's neat and passes the numeric key OK, but cancels any deliberate key repeats as with [change]
 Cheers
 Balwyn
 symbol change.pd
- 
				
				
				
				I think I may have solved this to a degree and [change] was part of the answer, thanks Gilberto. 
 Using [line], [spigot], [change] and [== ], I was able to filter the repeats. However I would expect the key repeat setting would be different on every computer and would therefore require a tweak to the time grain in [line].
 Cheers
 Balwyn
 key-repeat-filter.pd
 
					 
									 
									