Hi Dave, On Fri, 12 Mar 2010, Dave Allan wrote:
>> * Implement some variable that maintains state >> (e.g. an enum with OPEN and CLOSED). We'll >> call it pedal_state. The variable needs to >> be accessible to the MidiInput class. > > It'd need to be 128 steps to support continuous hihat control, I think. IIRC, the OP said the foot-pedal sends only 0 and 127... that's why I suggested a boolean-like enum. Are there hi-hat controllers that send 128 steps? >> * When Hydrogen gets a MIDI Note On for Notes >> 42 (Closed Hi-Hat), or 46 (Open Hi-Hat), it >> needs to re-direct them both based on the >> current value of pedal_state. (Redirect >> to #42 if CLOSED, #46 if OPEN.) > > This raises an interesting question: what note do most brains generate > when the pedal is half open? I would expect open hihat with the actual > sound played by the sampler depending on the hihat state as determined > by the CC messages, but we should make this behavior somewhat > configurable unless we know that all brains behave the same way. I'm not sure what other sampler/synths are doing. To get similar sort of behavior from Hydrogen, you would probably need to implement sort of a 2D-layered instrument (select sample based on velocity and a 0.0-1.0 controller value). The controller value can be mapped to anything (like CC#4). Currently Hydrogen only has 1D-layered instruments (select sample based on velocity). -gabriel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Hydrogen-devel mailing list Hydrogen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hydrogen-devel