Where did you get all the things following the matrix.scan() call? This is considerably different to the code that is given on that web site for a multiplexer. Assuming you are using shielded cable the shield should be connected to ground. ![]() But what I did notice is that you have the tip of your extension lead connected to ground and the shield connected to the signal. In your diagram in post #8 you have not got this resistor. The signals going into the multiplexer are very high impedance and this will reduce the signal severely. That is very wrong, it will reduce the signal you get drastically. This code seems to be setting up what addresses to use on the multiplexer after you have called mux.scan() which I suspect is a call to scan all the multiplexer addresses.Ĭan you post a link to the libraries you have used, although not hairless.Īnd the multiplexer with connect the 4.7k resistor to the GND. TCRT5000, hihatControl(byte sens, byte thre, byte scanStart, byte scanEnd, byte pedalSens) ndNoteOn(KICK, kick.velocity, 10) //(note, velocity, channel) ndNoteOn(SNARE, snare.velocity * 2, 10) //(note, velocity, channel) ndNoteOn(SNARE, snare.velocity, 10) //(note, velocity, channel) ndNoteOn(TOM1, tom01.velocity, 10) //(note, velocity, channel) ndNoteOn(TOM2, tom02.velocity, 10) //(note, velocity, channel) ndNoteOn(TOM3, tom03.velocity, 10) //(note, velocity, channel) ndNoteOn(TOM4, tom04.velocity, 10) //(note, velocity, channel) ndNoteOn(FTOM, ftom.velocity, 10) //(note, velocity, channel) ndControlChange(4, hihatPedal.pedalCC, 10) sending state of pedal with controll change ndNoteOn(HIHAT_PEDAL, hihatPedal.velocity, 10) //(note, velocity, channel) ndNoteOn(HIHAT, hihat.velocity, 10) //(note, velocity, channel) ndNoteOn(CRASH, crash.velocity, 10) //(note, velocity, channel) ndNoteOn(RIDE, ride.velocity, 10) //(note, velocity, channel) ndNoteOn(CYM2, cym02.velocity, 10) //(note, velocity, channel) ndNoteOn(CYM1, cym01.velocity, 10) //(note, velocity, channel) dualPiezo(byte sens, byte thre, byte scan, byte mask, byte rimSens, byte rimThre) Snare.dualPiezoMUX(SNARE, SNARE, SNARE, SNARE, SNARE, SNARE) Kick.singlePiezoMUX(KICK, KICK, KICK, KICK) Tom01.singlePiezoMUX(TOM1, TOM1, TOM1, TOM1) Tom02.singlePiezoMUX(TOM2, TOM2, TOM2, TOM2) Tom03.singlePiezoMUX(TOM3, TOM3, TOM3, TOM3) Tom04.singlePiezoMUX(TOM4, TOM4, TOM4, TOM4) Hihat.HHMUX(HIHAT, HIHAT, HIHAT, HIHAT) įtom.singlePiezoMUX(FTOM, FTOM, FTOM, FTOM) ![]() TCRT5000, hihatPedal(byte sens, byte thre, byte scanStart, byte scanEnd, byte pedalSens) HihatPedal.hihatControlMUX(HIHAT_PEDAL, HIHAT_PEDAL, HIHAT_PEDAL, HIHAT_PEDAL, HIHAT_PEDAL) cymbal3zone(byte sens, byte thre, byte scan, byte mask, byte edgeThre, byte cupThre) Ĭrash.cymbal3zoneMUX(CRASH, CRASH, CRASH, CRASH, CRASH, CRASH) Ride.cymbal3zoneMUX(RIDE, RIDE, RIDE, RIDE, RIDE, RIDE) cymbal1-0, cymbal2-1, ride-2, ride_edge-3, ride_bell-4, crash-5, crash_edge-6, crash_bell-7, hihat pedal-8, hihatopen-9, hihatclose-10 By changing the number in this array set sensitivity, threshold and so on. ![]() Make 16 single piezo pads with a multiplexer 74HC4067. Can't maximum the window of hairless midi.so I slide right and left to view.īoth baud rate of serial port of code and hairless were setting "384000".
0 Comments
Leave a Reply. |