{"id":426,"date":"2016-02-11T21:25:07","date_gmt":"2016-02-12T04:25:07","guid":{"rendered":"https:\/\/supermediocre.org\/?p=426"},"modified":"2016-07-12T19:14:24","modified_gmt":"2016-07-13T01:14:24","slug":"44-bars","status":"publish","type":"post","link":"https:\/\/supermediocre.org\/index.php\/2016\/02\/11\/44-bars\/","title":{"rendered":"A Bit More Math&#8230;"},"content":{"rendered":"<p>In the previous posts, I\u00a0described the basic construction and tuning of a maple xylophone bar and promised that we would get into the woodworking next. However, we&#8217;ve got to do a bit more math first. Sorry for another bait-n-switch&#8230;.<\/p>\n<h1>Rosewood Properties<\/h1>\n<p>As you may recall, the computer code that computes the bar shape requires the bulk modulus, shear modulus, and density to be specified. Apparently I am incapable of learning a lesson and again turned to the internet to provide these numbers. Like many of my previous attempts, I came up empty handed. Considering that all great Xylophones and Marimbas are made of one material &#8211; Honduras Rosewood &#8211; you might think that someone would have posted the material properties on the internet. If they did, Google and I couldn&#8217;t find it. This left me determined to compute them myself.<\/p>\n<p>I did find a range of values for Young&#8217;s modulus (aka the bulk modulus) in a p<a href=\"http:\/\/www.fupress.com\/Archivio\/pdf%5C4502.pdf\" target=\"_blank\">aper by\u00a0Br\u00e9maud, et al<\/a>. Figure 3a of the paper provided Young&#8217;s modulus values for \u00a0Honduras Rosewood (latin name Dalbergia Stevensonii) that span the range of 17-26 GPa. I am not sure why the range varied so much. Perhaps it is just natural variation in the wood? As an interesting aside, figure 3b of that same paper clearly shows that Honduras Rosewood has the lowest damping coefficient of all of the species evaluated, which the paper suggests is perhaps the most important quality for\u00a0wood used to construct idiophones- this wood really is special.<\/p>\n<p>But the Zhao paper (and a few others that I found) came to the rescue.\u00a0Appendix B of that paper, &#8220;Calculations for the Mechanical Properties,&#8221; provided a formula for calculating Young&#8217;s modulus from the fundamental frequency\u00a0of a prismatic beam constructed from the material. My first job was to whack a Rosewood bar of known dimension and measure its fundamental. I had a couple of rosewood &#8220;test bars&#8221; that I cut to mess around with, and the longest one was 13-5\/64 inches long. Here is the spectrum of that bar.<\/p>\n<figure id=\"attachment_435\" aria-describedby=\"caption-attachment-435\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/test_bar1_spectrum.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-435\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/test_bar1_spectrum-300x225.png\" alt=\"Spectrum of my longest rosewood test bar.\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/test_bar1_spectrum-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/test_bar1_spectrum.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-435\" class=\"wp-caption-text\">Spectrum of my longest rosewood test bar<\/figcaption><\/figure>\n<p>And here is the sound file for your listening pleasure.<\/p>\n<!--[if lt IE 9]><script>document.createElement('audio');<\/script><![endif]-->\n<audio class=\"wp-audio-shortcode\" id=\"audio-426-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/wav\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Testbar_01.wav?_=1\" \/><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Testbar_01.wav\">https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Testbar_01.wav<\/a><\/audio>\n<p>From the spectrum, you\u00a0can see\u00a0that\u00a0the fundamental was at about 957 Hz. You can check out the Zhao paper for the details of the equation, but here is the Matlab code to compute the modulus. (Note that the Zhao paper had an error in equation for E where beta_n should have been the constant beta_n*l)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">inch2m=0.0254; %Conversion constant\r\n\r\n%Compute the young's modulus from bar #1\r\nb=1.501*inch2m; %width\r\nh=0.880*inch2m; %height\r\nL=(13+15\/64)*inch2m; %Length\r\n\r\nf1=957; %Measured frequency of fundamental\r\nrho = 1082; %Density from measurement of volume and mass (see above)\r\n\r\nA=b*h; %Cross sectional area\r\nI=b*h^3\/12; %Moment of inertial\r\n\r\nE=4*pi^2*rho*A*L^4\/I * (f1^2\/4.73^4) %4.73 is a constant given by Zhao\r\n%E = 2.396974370897572e+10<\/pre>\n<p>The modulus calculated for this bar was 23.9 GPa. I had a second bar that had a length of 9-27\/64 inches and a fundamental frequency of 1867 Hz. The calculated modulus for this bar was 23.6 GPa &#8211; pretty close to the first number.<\/p>\n<p>Zhao also gave a formula for the calculation of the shear modulus, G, but the torsional frequencies of the bar must be known. It was not clear to me that I could adequately &#8220;ring these up&#8221; and measure them, so getting the shear modulus using that approach seemed off the table. I decided to take a different tact.<\/p>\n<p>My approach\u00a0was to do a parametric sweep of the shear modulus using the Timoshenko code to compute the fundamental and first two overtones for a prismatic beam. My idea was that if I had the bulk modulus and density right (density was easy, I just weighed and measured the bar and divided the numbers,) then the only free variable was shear modulus. If I adjusted it until I made the Timoshenko-predicted frequencies match the measured frequencies, then I must have the right value for the shear modulus; right? Here are the results from that sweep for the long and short test bars.<\/p>\n<figure id=\"attachment_439\" aria-describedby=\"caption-attachment-439\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_long_bar.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-439\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_long_bar-300x225.png\" alt=\"Shear modulus sweep for my long test bar.\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_long_bar-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_long_bar.png 673w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-439\" class=\"wp-caption-text\">Shear modulus sweep for my long test bar.<\/figcaption><\/figure>\n<figure id=\"attachment_438\" aria-describedby=\"caption-attachment-438\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_short_bar.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-438\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_short_bar-300x225.png\" alt=\"Shear modulus sweep for my short test bar.\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_short_bar-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/G_sweep_short_bar.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-438\" class=\"wp-caption-text\">Shear modulus sweep for my short test bar<\/figcaption><\/figure>\n<p>The red lines on the plots correspond to the measure modal frequencies based on my spectral measurements. This analysis was not entirely satisfying because the no value of G yielded the fundamental frequency &#8211; the prediction was always a bit lower than the measured value- however, inspection of the\u00a0second and third partials suggested that a reasonable\u00a0value for\u00a0the shear modulus might be around 4 GPa.<\/p>\n<p>For what it&#8217;s worth, I did find a published shear modulus value of 19 GPa for Padauk, a similar wood. This suggests my chosen value of 4 GPa might be too low, but I wasn&#8217;t sure what else to do &#8211; high values resulted in a very poor match for the overtones in the plots above. For what it&#8217;s worth, I computed\u00a0some bar profiles with different values of G, and they didn&#8217;t vary a lot. So perhaps at the end of the day it&#8217;s not a big deal, since I knew I was going to have to &#8220;hand tune&#8221; the bars after roughly cutting to the computed shape anyway. Right or wrong, I forged on with my value of G=4 GPa.<\/p>\n<h1>Summary of Computed Results<\/h1>\n<p>With the Rosewood material properties estimated, I was able to run the minimizer\/Timoshenko code to compute the bar profiles for each of my 44 rosewood bars. As I mentioned in a previous post, the minimizer is sensitive to the initial starting condition, so I seeded my first and longest bar, F4, with the cubic coefficients from the maple bar and watched the minimizer converge. For the rest of the bars, I initialized the minimizer by seeding it with the coefficients from the previous bar, working my way from longest to shortest. In this manor, I was able to leap-frog through the bars and ensure that the minimizer converged.<\/p>\n<p>Here are some summary results from the computed bar runs.\u00a0First,\u00a0here are the\u00a0fundamental frequencies as calculated by the Timoshenko and Euler methods for each of the bars.<\/p>\n<figure id=\"attachment_445\" aria-describedby=\"caption-attachment-445\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Fund_all_bars.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-445\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Fund_all_bars-300x225.png\" alt=\"Computed fundamental frequency for all bars via two different methods.\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Fund_all_bars-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/Fund_all_bars.png 644w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-445\" class=\"wp-caption-text\">Computed fundamental frequency for all bars via two different methods<\/figcaption><\/figure>\n<p>In every case, the code was able to perfectly converge to the desired fundamental frequency. The\u00a0plot shows\u00a0the results for the two methods. As previously noted, the Timoshenko method is generally more accurate, especially for the short bars.<\/p>\n<p>Here are the ratios for the second and third\u00a0overtones:<\/p>\n<figure id=\"attachment_446\" aria-describedby=\"caption-attachment-446\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/r12_all_bars.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-446\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/r12_all_bars-300x225.png\" alt=\"Computed ratios for the first two overtones.\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/r12_all_bars-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/r12_all_bars.png 644w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-446\" class=\"wp-caption-text\">Computed ratios for the first two overtones<\/figcaption><\/figure>\n<p>I found it interesting that the code can\u2019t converge on the 2nd overtone for the short bars. No big deal because the overtones decay so rapidly for the shorter bars, it is doubtful that this effect can be heard. Indeed, when I was tuning the shorter bars, my spectral measurements were not able to measure the overtones.<\/p>\n<h1>The Templates Please<\/h1>\n<p>The computer run for each bar produces three\u00a0<em>standard<\/em> plots. The first is the bar profile plot. An example for bar 10 is shown here.<\/p>\n<figure id=\"attachment_448\" aria-describedby=\"caption-attachment-448\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_profile_10.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-448\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_profile_10-300x225.png\" alt=\"Profile plot for bar #10\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_profile_10-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_profile_10.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-448\" class=\"wp-caption-text\">Profile plot for bar #10<\/figcaption><\/figure>\n<p>You&#8217;ve see plots like this before. The top figure has a 1:1 aspect ratio and gives an idea of the actual physical profile of the bar. The bottom figure has a arbitrary aspect ratio to better visualize the shape\u00a0of the undercut. Also included on the figure are the coefficients for the cubic function that describes the profile curve. I followed Dr Entwistle&#8217;s definition for the cubic coefficients where<\/p>\n<p style=\"padding-left: 30px;\">y=a1*x^3 + a2*x^2 + a3;<\/p>\n<p>In this equation, x is the longitudinal length down the bar where x=0 is the bar center. The variable y denotes the bar thickness corresponding to each value of x. Notice that when x=0, the equation reduces to y=a3, which is the thickness at the center. Also, notice that there is no linear term with x (i.e., no coefficient that multiples x). Setting the linear coefficient to zero forces the cubic function to have zero a slope at x=0. This forces symmetry about the bar middle.<\/p>\n<p>Note that there is nothing magical about using a cubic to represent the bar shape. Indeed, if I were going to build another xylophone, I might mess around with other functional forms to see if I could satisfy additional constraints, like forcing the third partial ratio to be 6.0, or to maximize sustain or volume. However, the cubic is a good compromise in that does a respectable job of providing shapes that mimic what I had seen on other xylophones while keeping the degrees of freedom low (i.e., just 3 coefficients).<\/p>\n<p>The second standard plot that I\u00a0compute is the tuning curve, which we have discussed at length. For completeness, here is the tuning curve for my #10 bar.<\/p>\n<figure id=\"attachment_447\" aria-describedby=\"caption-attachment-447\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/tuning_curve_10.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-447\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/tuning_curve_10-300x225.png\" alt=\"Tuning curve for bar #10\" width=\"300\" height=\"225\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/tuning_curve_10-300x225.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/tuning_curve_10.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-447\" class=\"wp-caption-text\">Tuning curve for bar #10<\/figcaption><\/figure>\n<p>Finally, as described in the maple bar fabrication discussion, I create a full-size paper template for each bar. Here is the template for bar #10:<\/p>\n<figure id=\"attachment_449\" aria-describedby=\"caption-attachment-449\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_template_101.png\" rel=\"lightbox[426]\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-449\" src=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_template_101-300x20.png\" alt=\"Template for bar #10\" width=\"300\" height=\"20\" srcset=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_template_101-300x20.png 300w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_template_101-1024x70.png 1024w, https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/bar_template_101.png 1561w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-449\" class=\"wp-caption-text\">Template for bar #10<\/figcaption><\/figure>\n<p>A couple of notes about the annotations on this template are in order. The two vertical red lines mark the node locations as computed by the Euler code provided by Dr Entwistle. These are where the holes will be drilled. The vertical blue lines, marked f1, f2 and f3 denote fiducials on the bar corresponding to the tuning curve peaks.\u00a0The f1 mark denotes the location where the fundamental is most affected by wood removal. Similarly, f2 marks the location where wood removal most dramatically changes the second partial, and f3 corresponds to the most sensitive region for\u00a0the third partial.<\/p>\n<p>All of these are useful plots, so I have zipped up the three curves for each of the 44 bars into a single file for you to download&#8230;I am just that kind of a guy \ud83d\ude42<\/p>\n<p>Here is the zip file:\u00a0<a href=\"https:\/\/supermediocre.org\/wp-content\/uploads\/2016\/02\/standard_plots_for_all_44_bars.zip\">standard_plots_for_all_44_bars<\/a><\/p>\n<p>Note that each of the files is a PDF, including the bar templates. The\u00a0templates&#8217; PDF files have been created so that they should print full-size. I made these to print on 8.5 x 14 inch paper, which was the largest size that my printer would handle. I am not sure how they will print on a smaller page size, but in any case, you should be able to scale these based on the bar sizes that I provided in the Excel file in the previous post.<\/p>\n<p>In the next post we will actually start cutting Rosewood. (I know, you&#8217;ve heard that before. But you didn&#8217;t think you could build a xylophone without math, did you?)<\/p>\n<p>&nbsp;<\/p>\n<h1>References<\/h1>\n<p>Iris Br\u00e9maud, Pierre Cabrolier, Kazuya Minato, Jean G\u00e9rard, Bernard Thibaut. Vibrational properties of tropical woods with historical uses in musical instruments. Joseph Gril.<i>International Conference of COST Action IE0601 Wood Science for the Preservation of Cultural Heritage<\/i>, Nov 2008, Braga, Portugal. pp.17-23, 2010. <a href=\"https:\/\/hal.archives-ouvertes.fr\/hal-00808403\" target=\"_blank\">&lt;hal-00808403&gt;<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous posts, I\u00a0described the basic construction and tuning of a maple xylophone bar and promised that we would get into the woodworking next. However, we&#8217;ve got to do a bit more math first. Sorry for another bait-n-switch&#8230;. Rosewood Properties As you may recall, the computer code that computes the bar shape requires the &hellip; <a href=\"https:\/\/supermediocre.org\/index.php\/2016\/02\/11\/44-bars\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">A Bit More Math&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[10,9,3],"class_list":["post-426","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-xylophone","tag-concert-grade","tag-rosewood","tag-xylophone"],"_links":{"self":[{"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/posts\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":20,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/posts\/426\/revisions\/955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/media\/443"}],"wp:attachment":[{"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/supermediocre.org\/index.php\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}