technologies to detect mallet-hits including the dynamic
StefanL38
Posts: 2,292
Hi Everybody,
I have some kind of a dream that is spinning in my head for a long time.
What I would like to do is using something similar to a xylophone to play music.
The special thing about it is to detect the hit of the mallet electronically including how "fast" or "hard" the hit is.
As data how loud a classical xylophone or metallophone would respond to the hit.
I want to use this to create different kinds of sound via MIDI. So the device gets a hit on a certain xylophone-bar
and then the µC (Propeller-Chip) creates a MIDI-signal with the according frequency and volume.
But I have no idea what kind of technology could be used as the detector that can also detect the effort that is inside
the hit of the mallet at low cost.
Of course some kind of piezo-detectors etc. could be used but I guess they are too expensive.
The main goal behind all of this is to create a musical instrument that can be played as easy as a real xylophone with
two mallets but can create any kind of sound through the electronic detection of the hits.
In E-pianos two switches which turn on at different points when the piano-key is on its way down
deliver info about the volume but on xylophone-bars a move of 10mm through a hit by mallets
would be bad of you want to play fast.
Does somebody know the technology used in electronic drum-kits?
I like developing with electronics but in this case my main goal is making the music.
So if somebody knows of devices that can be bought of the shelf at a price of around $50
I would not have to develop it myself.
best regards
Stefan
I have some kind of a dream that is spinning in my head for a long time.
What I would like to do is using something similar to a xylophone to play music.
The special thing about it is to detect the hit of the mallet electronically including how "fast" or "hard" the hit is.
As data how loud a classical xylophone or metallophone would respond to the hit.
I want to use this to create different kinds of sound via MIDI. So the device gets a hit on a certain xylophone-bar
and then the µC (Propeller-Chip) creates a MIDI-signal with the according frequency and volume.
But I have no idea what kind of technology could be used as the detector that can also detect the effort that is inside
the hit of the mallet at low cost.
Of course some kind of piezo-detectors etc. could be used but I guess they are too expensive.
The main goal behind all of this is to create a musical instrument that can be played as easy as a real xylophone with
two mallets but can create any kind of sound through the electronic detection of the hits.
In E-pianos two switches which turn on at different points when the piano-key is on its way down
deliver info about the volume but on xylophone-bars a move of 10mm through a hit by mallets
would be bad of you want to play fast.
Does somebody know the technology used in electronic drum-kits?
I like developing with electronics but in this case my main goal is making the music.
So if somebody knows of devices that can be bought of the shelf at a price of around $50
I would not have to develop it myself.
best regards
Stefan
Comments
You need to damp them with a resistor, then they will produce lower or higher voltage peaks depending on the force/speed you hit them.
There are ready made 'Trigger to MIDI' converters, for example the MegaDrum as Kit or ready made.
Andy
Hi Ariba,
thank you for answering.
Wow 0,27€ that's really cheap.
If I understand right, the faster the hit, the higher the impact on the sensor the higher the voltage-output?
Did anybody develop circuitry to measure the voltage
on these piezo sensors with a propeller-chip?
Guess I have to crawl the OBEX for objects and the internet for circuitry.
best regards
Stefan
http://www.digikey.com/en/articles/techzone/2011/dec/fundamentals-of-piezoelectric-shock-and-vibration-sensors
Maybe you don't need an ADC. With some voltage offset it should be possible to get the hit speed as a number of high pulses, of which you need to count the overall high time:
For sure this totally theoretical and untested, I don't even know how much voltage the sensor you buy will produce. The Poti should allow to adjust the sensitivity a bit.
Andy
But you are right it is pin intensive one chromatic octave means 15 pins.
hm - maybe if shiftregisters are fast enough...
I will do some calculations how fast shiftregisters can be.
From a very rough estimation I would say shiftregisters are fast enough as long as you don't want to play 1/32 at 160 bpms.
best regards
Stefan
The program also includes a circuit like the one Ariba posted above, a zero-crossing detector. Frequency yes, amplitude no.
https://www.sparkfun.com/products/9376
thank you very much for your demo-code
I did some googling about DIY drum-kits. Some of them use piezos. I understand the isolation-problem. With drum-Kits every pad could have its own stand = pretty good isolation. On something constructed in a xylophone-stile mechanical isolation is somehow challenging.
maybe I have to give it a try how big the effect of "crosstalk" is.
@T Chap: thank you very much for your idea to use force resitive sensors. Good option too.
Thow the sensor costs more than a piezo-sensor.
I have another idea how the mallet-hits could be detected: two light-barriers.
The time between switching the two should be proportional to the strength of the hit of the mallet.
Now as it goes into details of realisation I can see it is always the same. Pretty much development work has to be done.
best regards
Stefan
I am not sure yet if you are speaking about using a real instrument like a xylo and recording the midi for later triggering of midi? Or is this for live performance triggering of midi with the xylo making sound along with the midi source? Or if this is just a midi trigger ONLY device, ie the mallet hitting some pads that do not actually make sounds. It would make a big difference on design if it were just a trigger that did not make sound. I have thought about the two light solution before as well, using two detectors and one or two LEDs depending on the arrangement. On a trigger pad fake bar. The bar could have some travel up and down as it could sit on springs and allow maybe .25" travel, enough to allow a two LED switching scheme.
For a scheme where you want the actual xylo to produce sound AND the midi source to produce sound at the same time, the latency can be a creative annoyance. Whereas, if the device is trigger only and you are only paying attention to the midi sound, you can perform with "anticipation" on the midi trigger pads to get the feel right meaning you learn to play with latency compensation, important on percussive devices much more so on other sounds.
Same as always (and I have prayed for it by others users: give an overview of what you are planning.
I plan a device with fake-xylophone-bars that just creates midi-events.
1 octave 16 chromatic tones maybe 25. If I have to decide between very accurate high dynamic but expensivier and "still enough for amateurs" but cheaper I decide for the cheaper path.
Thow the latency should stay below 50 milliseconds. (don't want that android 0,3 seconds latency)
Hm not sure which way to go. For the next weeks I have not very much time on really testing and developing.
Just a little bit of time for some thoughts about pro and cons.
Thank you so much so far for your comments and suggestions. If you enjoy answering
you are welcome.
best regards
Stefan
Sounds like the simplest/best idea so far. May need to be a 3 axis unit to correct for the angle and rotation of the mallet, or perhaps the angle/rotation could be used for some effect.
A xylopiano with round inductive pads instead of bars? Put magnets in the mallets and the accelerometers may not even be needed.