måndag 1 januari 2018

Glockenspielervergnügenheit

This:

That's how new topics should be started. Not by a long technical explanation about what one is going to do. The video gives a good clue of the following project.
  • It includes a glockenspiel. Not necessarily in its original shape. It could have a circular frame so the mallet would reach all bars.
  • Two servos attached to one mallet.
  • An Arduino controlling the servos.
The final product could include two mallets and four servos in the middle of a half circular frame (a typical servo only reaches 180 degrees or even less) containing a chromatic scale of bars. Both mallets could reach any of the bars, except maybe the most extreme bars of the other mallet range. This could make it possible to play fast passages or two part harmonic music (parallel 3rds and 6ths, Bach's Inventions...), things one could play by hand using two mallets.

The video explained

The machine doesn't work very well, does it? The mallet weighs too much, it has a brass bead in one end. It would need a counter weight. The epoxy glue, which attached the servos to the base plate and to each other, hadn't reached its final hardness before I started testing. The servo kept a terrible noise because of the unbalanced mallet. When the program resets, the servo loses its power for a moment, which makes the mallet drop heavily, because the mallet is not balanced. The batteries got weak because of the heavy mallet. I had adjusted the original positions using fresh batteries, but at video making time, the weakness made a very sloppy movement of the mallet. The highest note is preceeded by a 4th interval jump, which worked well with fresh batteries, but in the video the interval jump was too slow and the mallet did the hit too early.

Next step

The glockenspiel seen in the video is a very nice orchestra glockenspiel. I'm not going to break it and rebuild it. But I'm going to improve some details:
  • Create a counter weight fro the mallet. It might slow down the hit stroke, but it will also minimize the sound of the servo, when the mallet is held up. And the power usage will drop. 
  • Create another mallet with its own two servos, which will reach the 2nd row of bars from the other side, to be able to play chromatic or 12 tone music and not only diatonic C major music.
  • Add a potentiometer and a button to the Arduino to help adjusting the right servo angles for each note. 
  • Test how the dynamics can be varied. Do we get a usable range from pianissimo to fortissimo just by varying the height of the mallet before strike? How many parameters are included in one strike, when one wants variation in the volume while remaining a good sound quality? Start height, end height, speed? First assumption is that end height can be constant, speed can be constant. Only start height needs to be varied, if we want dynamics. Varying the speed of the servo is anyhow difficult.
  • Create a midi file playing program, which includes reading notes in advance. A key down event (meaning starting a note) holds information of which key to be played, when, and with which velocity. This info must be read in advance. like immediately after the previous mallet strike. And the mallet has to be moved to the next note immediately after the previous stroke. Only after that we can wait for the next strike to happen.
  • Start planning the half circle glockenspiel reusing the bars from a cheaper glockenspiel.
  •  

To be continued...