Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
strokeanalysis:stroke_analysis [2013/02/03 15:06] – deva | strokeanalysis:stroke_analysis [2013/02/21 12:35] (current) – deva | ||
---|---|---|---|
Line 4: | Line 4: | ||
Two types of analysis are performed: | Two types of analysis are performed: | ||
* A single hard kick drum stroke. | * A single hard kick drum stroke. | ||
- | * A series of strokes at high tempo. | + | * A series of strokes at relatively |
These two types of strokes are the result of very different playing styles and should cover the most basic uses of the kick drum in metal music. | These two types of strokes are the result of very different playing styles and should cover the most basic uses of the kick drum in metal music. | ||
- | The experiment was performed on an Axis Longboard pedal only, but should for good measure be performed on other types of pedals too. | + | The experiment was performed on an Axis Longboard pedal only, but should for good measure be performed on other types of pedals too sometime in the future... |
- | A movie was made with 200fps | + | A movie was recorded |
{{: | {{: | ||
{{: | {{: | ||
{{: | {{: | ||
{{: | {{: | ||
- | Note the white dots on the center-of-axis as well on the mallet. These were added in order to be able to identify | + | Note the white dots on the center-of-axis as well on the mallet. These were added in order to be able to identify |
- | + | ====Meaurements==== | |
- | < | + | ===Single stroke=== |
- | Single stroke: | + | ^ Position ^ Vector |
- | Pos[ | + | | 0 | (-255, |
- | Pos[ | + | | 1 | (-247, |
- | Pos[ | + | | 2 | (-235, |
- | Pos[ | + | | 3 | (-210, |
- | Pos[ | + | | 4 | (-176, |
- | Pos[ | + | | 5 | (-134, |
- | Pos[ | + | | 6 | (-74, |
- | Pos[ | + | | 7 | (-6, |
- | Pos[ | + | | 8 | (73, |
- | Pos[ | + | | 9 | (146, |
- | Pos[ 10]: | + | | 10 | (232, |
- | Pos[ 11]: | + | | 11 | (240, |
- | Pos[ 12]: | + | | 12 | (229, |
- | </ | + | |
A plot of the angle velocities reveal a rather ' | A plot of the angle velocities reveal a rather ' | ||
{{: | {{: | ||
- | < | + | ===Stroke sequence=== |
- | Stroke sequence: | + | ^ Position ^ Vector |
- | Pos[ | + | | 0 |
- | Pos[ | + | | 1 |
- | Pos[ | + | | 2 |
- | Pos[ | + | | 3 |
- | Pos[ | + | | 4 |
- | Pos[ | + | | 5 |
- | Pos[ | + | | 6 |
- | Pos[ | + | | 7 |
- | Pos[ | + | | 8 |
- | Pos[ | + | | 9 |
- | Pos[ 10]: | + | | 10 | ( 232,451) | 507.17 | 60.333194 | 10.303839 |
- | Pos[ 11]: | + | | 11 | ( 240,446) | 506.47 | 61.396774 | 1.063580 |
- | Pos[ 12]: | + | | 12 | ( 229,452) | 506.70 | 59.979810 | -1.416964 |
- | Pos[ 13]: ( 198, 468) len: 508.16px | + | |
- | Pos[ 14]: ( 216, 464) len: 511.81px | + | |
- | Pos[ 15]: ( 210, 467) len: 512.04px | + | |
- | </ | + | |
The graph of these angle velocities show a picture rather more ' | The graph of these angle velocities show a picture rather more ' | ||
{{: | {{: | ||
- | ====Conclusion===== | + | ====Evaluation===== |
- | The maximum angle velocity was found in the single stroke and was 2061 degrees per second. | + | ===Samplerate=== |
+ | The maximum angle velocity was found in the single stroke and was 2266.84 | ||
That the maximum angle velocity should be found in the stroke type is not surprising since a single stroke is the result of the hardest foot impact on the pedal.\\ | That the maximum angle velocity should be found in the stroke type is not surprising since a single stroke is the result of the hardest foot impact on the pedal.\\ | ||
- | If we assume the target latency to be at most 1ms and we assume that the software is responding in the area of microseconds we can estimate the target ADC resolution.\\ | + | If we assume the target latency to be at most 1ms and we assume that the software is responding in the area of microseconds |
- | Lets start by pointing out that since the video framerate was 200fps | + | Lets start by pointing out that since the video framerate was 220fps |
+ | |||
+ | The single stroke took 11 frames in total which is 50ms and during this time the mallet moved 61.4 degrees, resulting in a minimum resolution of 1.23 samplings per millisecond. | ||
+ | |||
+ | However, if we look at the diff in the last two velocities before the impact it was 10.3 degrees in 4.55ms it is evident that the minimum resolution should be higher, namely 2.26 samplings per millisecond. | ||
+ | |||
+ | Ergo: **A sampling of approximately 2kHz should be sufficient.** | ||
+ | |||
+ | //However// ... the result of this mechanism is the playing of a sample at probably 44.1kHz or 48kHz and in order to avoid phasing problems when mixing with the analogue drum sound it should be considered to make the ADC samplerate 44.1kHz or 48kHz as well. | ||
+ | |||
+ | ===Bit precision=== | ||
+ | When considering bit precision it is the lowest angle velocity upon impact that are the worst case scenario. | ||
+ | If we therefore look at the stroke sequence we can observe a 2.03 degrees between the last two frames, giving 0.446 degrees in the last millisecond. | ||
+ | If we divide the entire 84 degree interval into 0.446 degree segments the result is a minimum of 188 steps. | ||
+ | |||
+ | Ergo: **A bit precision of 8 should be sufficient.** | ||
+ | |||
+ | //However// ... since we cannot assume that we will work within the entirety of the bit span of the ADC it should be noted that the 8 bit precision is the //used// number of bits for the mallet swing and a substantial amount of headroom should be added in order to match different spring types and initial tensions. | ||
+ | How much ' | ||
- | The single stroke took 11 frames in total which is 55ms and duriong | + | ====Conclusion==== |
+ | Since this experiment has not been performed by the fastest or hardest hitting drummer in the world, or the most latency sensitive one for that matter, we should increase both samplerate and bit precision | ||
- | However, if we look at the diff in the last two velocities before the impact was 10.3 degrees in 5ms it is evident that the minimum resolution should | + | If say the drummer hits twice as hard (double |
- | Earlier studies performed with a shaft encoder showed that approximately 600 sampling points during the 61.4 degrees | + | Samplerate: 2 * 2.03 degrees in 4.55ms = **8kHz |
+ | A very slow stroke is the worst case scenario when considering the bit precision since we need more steps in the final steps of the swing. | ||
+ | If say the angle velocity is half of the measured one and the drummer is sensitive to latencies above 0.5ms the number of needed steps will go up by factor of 4: | ||
+ | Bit precision: 188 * 4 steps = **10 bit precision** + headroom.\\ |