<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>University on Matias Di Bernardo</title><link>https://dibernardo.netlify.app/tags/university/</link><description>Recent content in University on Matias Di Bernardo</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Matías Di Bernardo</copyright><lastBuildDate>Thu, 26 Jun 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://dibernardo.netlify.app/tags/university/index.xml" rel="self" type="application/rss+xml"/><item><title>Acoustic modal response optimization for small rooms with genetic algorithms</title><link>https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/</link><pubDate>Thu, 26 Jun 2025 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/port3.PNG" alt="Featured image of post Acoustic modal response optimization for small rooms with genetic algorithms" />&lt;p>This work was developed in the context of the course &lt;em>Instruments and Acoustic Measurements&lt;/em> at UNTREF Argentina.&lt;/p>
&lt;h3 id="introduction">&lt;strong>Introduction&lt;/strong>
&lt;/h3>&lt;p>Control rooms and critical listening environments often suffer from uneven low-frequency acoustic responses. These irregularities, caused by a clustered distribution of vibrational modes, produce “colorations” that hamper accurate sound evaluation. Traditionally, criteria such as those by Bonello, Bolt and Louden have been used to optimize the geometry of rectangular rooms and improve modal distribution. However, these methodologies do not consider the influence of complex boundaries nor the positions of source and listener.&lt;/p>
&lt;p>This work presents an open-source tool developed in &lt;strong>Python/FEniCS&lt;/strong> that addresses these limitations. The software uses geometric optimization by brute force over finite element models (FEM) to find room dimensions and contours that provide a more uniform modal distribution.&lt;/p>
&lt;h3 id="theoretical-framework-and-classical-criteria">&lt;strong>Theoretical Framework and Classical Criteria&lt;/strong>
&lt;/h3>&lt;p>Low-frequency behavior in an enclosure is dominated by standing waves, or normal modes, which are characterized by pressure nodes and antinodes. Axial, tangential and oblique modes — whose frequencies depend on the room dimensions — can produce coloration problems when they cluster.&lt;/p>
&lt;p>Classical design criteria, such as those of &lt;strong>Bolt&lt;/strong>, &lt;strong>Bonello&lt;/strong> and &lt;strong>Louden&lt;/strong>, focus on avoiding modal clustering and propose optimal geometric ratios for rectangular rooms. However, these approaches have a major limitation: they do not consider crucial factors such as the position of the sound source and the receiver, and they are restricted to simple geometries.&lt;/p>
&lt;h3 id="methodology-and-software-development">&lt;strong>Methodology and Software Development&lt;/strong>
&lt;/h3>&lt;p>The developed tool combines a two-stage optimization process.&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Initial Search:&lt;/strong> First, the software performs a rapid search on rectangular parallelepipeds using the classical modal superposition (MS) method to identify the most promising initial geometric proportions.&lt;/li>
&lt;li>&lt;strong>Refinement and Optimization:&lt;/strong> Then, it refines the search by generating random planar contours with enforced symmetry and applies the &lt;strong>Frequency-Domain Finite Element Method (FD-FEM)&lt;/strong> to evaluate the acoustic merit of complex geometries. This method is more accurate than modal superposition for non-rectangular geometries.&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/geom.PNG"
width="663"
height="353"
srcset="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/geom_hu10103050829635732771.PNG 480w, https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/geom_hu14036568945277152459.PNG 1024w"
loading="lazy"
alt="Geometry generator showing a valid geometry (left) and an INVALID one (right)"
class="gallery-image"
data-flex-grow="187"
data-flex-basis="450px"
>&lt;/p>
&lt;p>To quantify acoustic performance, a combined figure of merit is used: the &lt;strong>Mean Sound Field Deviation (MSFD)&lt;/strong>. This metric integrates two key parameters:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Magnitude Deviation (MD):&lt;/strong> Measures how flat the frequency response is at a specific position.&lt;/li>
&lt;li>&lt;strong>Spatial Deviation (SD):&lt;/strong> Measures the variation of magnitude across the listening area.&lt;/li>
&lt;/ul>
&lt;p>The tool includes a graphical user interface (GUI) in &lt;strong>PyQt5&lt;/strong> that allows the user to define dimensions, margins, and source/receiver positions, and to visualize results and optimized geometries.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/gui.PNG"
width="927"
height="911"
srcset="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/gui_hu10660350233230319476.PNG 480w, https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/gui_hu7665759294953434962.PNG 1024w"
loading="lazy"
alt="Screenshot of the program GUI"
class="gallery-image"
data-flex-grow="101"
data-flex-basis="244px"
>&lt;/p>
&lt;h3 id="results-and-conclusions">&lt;strong>Results and Conclusions&lt;/strong>
&lt;/h3>&lt;p>Case studies on three reference control-room volumes showed &lt;strong>MSFD improvements of up to 5 dB&lt;/strong> compared to the baseline design. The results demonstrate that:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Impact of Margins:&lt;/strong> As the available design space for optimization increases, better results are obtained, improving the overall response by up to 3 dB. This improvement is observed mainly in the Magnitude Deviation (MD).&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/margenes.PNG"
width="769"
height="521"
srcset="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/margenes_hu7235455855802676823.PNG 480w, https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/margenes_hu1596749676858920027.PNG 1024w"
loading="lazy"
alt="Optimization result varying the margins"
class="gallery-image"
data-flex-grow="147"
data-flex-basis="354px"
>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Complex Geometries:&lt;/strong> Increasing the number of walls in a complex geometry produces solutions superior to simple rectangular parallelepipeds, with a mean difference of 1.3 dB in the merit factor. The optimization process does not yield a single solution but a variety of geometries that present a minimum MSFD.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/complex.PNG"
width="1056"
height="484"
srcset="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/complex_hu17276317947581166062.PNG 480w, https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/complex_hu260113823065011408.PNG 1024w"
loading="lazy"
alt="Optimization result varying the number of walls to generate"
class="gallery-image"
data-flex-grow="218"
data-flex-basis="523px"
>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Comparison with Traditional Criteria:&lt;/strong> A complex optimized geometry outperformed rooms dimensioned according to classic criteria by Bolt, Louden and Cox. Although these criteria are effective and computationally free, the software’s ability to model complex geometries and consider the locations of sources and receivers provides a superior condition.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/compare.PNG"
width="882"
height="437"
srcset="https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/compare_hu6871012066806431324.PNG 480w, https://dibernardo.netlify.app/p/acoustic-modal-response-optimization-for-small-rooms-with-genetic-algorithms/compare_hu17032096468667991809.PNG 1024w"
loading="lazy"
alt="Comparison between classical literature results and our optimizers solution"
class="gallery-image"
data-flex-grow="201"
data-flex-basis="484px"
>&lt;/p>
&lt;p>The study concludes that the software is an effective tool for modal acoustic optimization. Future improvements are suggested, such as implementing more advanced optimization algorithms — for example, genetic algorithms — to reduce computation time and increase process efficiency.&lt;/p>
&lt;p>A detailed analysis of the development of this algorithm is available in the following &lt;a class="link" href="https://drive.google.com/file/d/1bFloyBC-lmMt_NCkeMwyjXit8-o1ZzsZ/view?usp=sharing" target="_blank" rel="noopener"
>paper&lt;/a>.&lt;/p></description></item><item><title>Acoustic measurement at Usina del Arte</title><link>https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/</link><pubDate>Fri, 09 May 2025 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/portadix.jpg" alt="Featured image of post Acoustic measurement at Usina del Arte" />&lt;h3 id="introduction">&lt;strong>Introduction&lt;/strong>
&lt;/h3>&lt;p>This measurement was part of the course &lt;em>Instruments and Acoustic Measurements&lt;/em> of the Sound Engineering program at UNTREF. The &lt;strong>acoustic parameters&lt;/strong> obtained from the impulse response are essential to evaluate the behavior of an enclosure. This report presents a comprehensive characterization of the main auditorium of the &lt;strong>Usina del Arte&lt;/strong>, a cultural center in Buenos Aires. The building, originally a 20th-century power plant with a distinctive Florentine-industrial style, was transformed with an acoustic design that sought a natural and balanced quality without the need for amplification. A decoupled structure (&lt;strong>box-in-box&lt;/strong>) was implemented for isolation and interior treatment with materials such as guatambú wood, diffusive surfaces, and a suspended acoustic reflector. The objective was a reverberation time of approximately &lt;strong>2 seconds&lt;/strong> and an even distribution of early lateral reflections for an enveloping sensation.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/vista_ext.PNG"
width="1134"
height="630"
srcset="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/vista_ext_hu376550853728715864.PNG 480w, https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/vista_ext_hu11205598148463235636.PNG 1024w"
loading="lazy"
alt="Exterior view of the Usina del Arte complex"
class="gallery-image"
data-flex-grow="180"
data-flex-basis="432px"
>&lt;/p>
&lt;h3 id="measurement">&lt;strong>Measurement&lt;/strong>
&lt;/h3>&lt;p>The characterization was carried out on June 9, 2025, during which a total of &lt;strong>162 impulse responses&lt;/strong> (monaural and binaural) were recorded. Data were captured from 27 microphone positions and 3 source positions. An on-site survey of the auditorium was also performed to analyze its constructional characteristics and a perceptual analysis was conducted.&lt;/p>
&lt;p>Prior to the measurements, a room model was created in &lt;strong>EASE 4.3&lt;/strong>, which estimated a volume of &lt;strong>15,700 m³&lt;/strong> and a Schroeder frequency of &lt;strong>22.1 Hz&lt;/strong>. Background noise was measured at eight positions to evaluate the isolation, confirming a signal-to-noise ratio greater than 40 dB. The microphone arrangement was based on the room’s symmetry to obtain a detailed mapping.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/mapeo_puntos.PNG"
width="946"
height="876"
srcset="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/mapeo_puntos_hu16757661932159290668.PNG 480w, https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/mapeo_puntos_hu16618579752656839347.PNG 1024w"
loading="lazy"
alt="Source and microphone positions (separated according to microphone type)"
class="gallery-image"
data-flex-grow="107"
data-flex-basis="259px"
>&lt;/p>
&lt;p>More images from the measurement process:&lt;/p>
&lt;div id="carousel0" class="carousel" duration="70000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 900px;">&lt;img src="https://dibernardo.netlify.app/images/usina/med1.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 900px;">&lt;img src="https://dibernardo.netlify.app/images/usina/med2.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 900px;">&lt;img src="https://dibernardo.netlify.app/images/usina/med3.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide4" style="min-width: calc(100%/1); padding-bottom: 900px;">&lt;img src="https://dibernardo.netlify.app/images/usina/med4.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide4">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;h3 id="processing">&lt;strong>Processing&lt;/strong>
&lt;/h3>&lt;p>Recordings were processed to obtain the impulse responses and various parameters were calculated following the &lt;strong>ISO 3382-1&lt;/strong> standard:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Reverberation time:&lt;/strong> $T_{20}$, $T_{30}$ and EDT.&lt;/li>
&lt;li>&lt;strong>Clarity:&lt;/strong> $C_{50}$ and $C_{80}$.&lt;/li>
&lt;li>&lt;strong>Strength (G):&lt;/strong> Difference in sound pressure level between the hall and an anechoic reference condition.&lt;/li>
&lt;li>&lt;strong>Lateral Fraction (LF):&lt;/strong> Proportion of sound energy perceived from the laterals.&lt;/li>
&lt;li>&lt;strong>Direct/reverberant ratio (D/R).&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Intelligibility:&lt;/strong> The &lt;strong>Speech Transmission Index (STI)&lt;/strong> and the Articulation Loss of Consonants (%Alcons) were calculated.&lt;/li>
&lt;li>&lt;strong>Stage support:&lt;/strong> $ST_{Early}$ and $ST_{Late}$, to assess acoustic conditions for musicians.&lt;/li>
&lt;/ul>
&lt;p>Various commercial software tools were used, such as the Aurora Acoustical Parameters plugin and the EASERA software, and additional parameters were computed with specific Python scripts.&lt;/p>
&lt;h3 id="results">&lt;strong>Results&lt;/strong>
&lt;/h3>&lt;p>The results show that the auditorium behaves adequately for a concert hall, but with areas for improvement:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Reverberation time:&lt;/strong> The global average was &lt;strong>1.92 s&lt;/strong>. However, notable variations were observed at low frequencies, where the floating stage acts as a resonator.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/rtres.PNG"
width="786"
height="509"
srcset="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/rtres_hu93740916745270815.PNG 480w, https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/rtres_hu4110432717716336813.PNG 1024w"
loading="lazy"
alt="T30 and EDT results by frequency."
class="gallery-image"
data-flex-grow="154"
data-flex-basis="370px"
>&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Clarity and Intelligibility:&lt;/strong> Clarity values for speech are below recommended thresholds, and intelligibility issues were identified in certain zones.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Sound Strength (G):&lt;/strong> The sound strength level shows a low variation considering the auditorium’s dimensions.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/Gfactor.PNG"
width="776"
height="597"
srcset="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/Gfactor_hu12495539726591375420.PNG 480w, https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/Gfactor_hu210762990484597037.PNG 1024w"
loading="lazy"
alt="Mapping of the G value in space."
class="gallery-image"
data-flex-grow="129"
data-flex-basis="311px"
>&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Lateral Fraction (LF):&lt;/strong> Values exceed recommendations, suggesting that most of the sound energy comes from the laterals. This may be related to the large number of diffusers.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Background Noise:&lt;/strong> The room presents a noise level higher than recommended for a symphonic venue (NC-35 vs. NC-20), likely due to the ventilation system.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/ruido.PNG"
width="1032"
height="476"
srcset="https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/ruido_hu16139815568609075014.PNG 480w, https://dibernardo.netlify.app/p/acoustic-measurement-at-usina-del-arte/ruido_hu4680391019551906221.PNG 1024w"
loading="lazy"
alt="Background noise measurement by frequency."
class="gallery-image"
data-flex-grow="216"
data-flex-basis="520px"
>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Sound Diffusion:&lt;/strong> Repetition of a single sequence of diffusers reduces their effectiveness, producing a lobed behavior instead of stochastic diffusion.&lt;/li>
&lt;/ul>
&lt;p>Key improvements are proposed, such as reducing background noise, optimizing sound diffusion with non-periodic sequences, and balancing the spectral response by correcting low-frequency absorption.&lt;/p>
&lt;h3 id="conclusions">&lt;strong>Conclusions&lt;/strong>
&lt;/h3>&lt;p>We were able to effectively characterize the auditorium and apply most of the theoretical topics covered in class to a practical experience. The full report of this work with all results and measurement details can be found in the following &lt;a class="link" href="https://drive.google.com/file/d/1nSmWFrk30IFAhzBs9R42ZR61uK_ARc8z/view?usp=sharing" target="_blank" rel="noopener"
>report&lt;/a>.&lt;/p></description></item><item><title>THD+N Meter</title><link>https://dibernardo.netlify.app/p/thd-n-meter/</link><pubDate>Tue, 26 Nov 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/thd-n-meter/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/port.jpeg" alt="Featured image of post THD+N Meter" />&lt;h1 id="thdn-meter">THD+N Meter
&lt;/h1>&lt;p>A THD+N meter measures the harmonic distortion of a device. In audio, this is crucial for assessing the quality of equipment. This project was developed as part of the subject &amp;ldquo;Instrumentos y Mediciones Electrónicas&amp;rdquo; at UNTREF. In this course, students design and develop various electronic instruments, and projects are carried forward by successive student groups. This particular project was already underway, and our focus was on developing a phase shifter to align two signals.&lt;/p>
&lt;h2 id="teory-of-thd-measurement">Teory of THD measurement
&lt;/h2>&lt;p>To measure the distortion of a system, a sinusoidal signal with minimal distortion is input to the device under test. The goal is to evaluate how much distortion the device adds to the signal. This is quantified by measuring the power of the original signal and the power of the signal after passing through the device, excluding the fundamental harmonic.&lt;/p>
&lt;p>A differential amplifier is used to subtract the device&amp;rsquo;s output signal from the reference signal, leaving only the higher-order harmonics.&lt;/p>
&lt;p>The THD+N is then calculated as a percentage using the following equation:&lt;/p>
$$
THD+N = \frac{V_{filt}}{V_{tot}} \cdot 100
$$&lt;p>Where:
$V_{filt}$ is the RMS value of the filtered signal (excluding the fundamental harmonic).
$V_{tot}$ is the RMS value of the original signal.&lt;/p>
&lt;h2 id="phase-shifter">Phase Shifter
&lt;/h2>&lt;p>To achieve effective cancellation in the differential section, precise phase and gain adjustments of the two signals are required. The gain adjustment had been successfully implemented by the previous group working on the project. However, achieving the necessary 360-degree phase rotation across the entire audible frequency range (20 Hz to 20 kHz) presented a challenge.&lt;/p>
&lt;p>To address this, we designed two all-pass filters in series and calculated the component values to achieve the desired phase rotation over the target frequency range.&lt;/p>
&lt;p>The design was modular to facilitate seamless integration with the previous stages.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd.PNG"
width="991"
height="597"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd_hu7854488014118793125.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/esquem_thd_hu5535924513728456883.PNG 1024w"
loading="lazy"
alt="Esquematic of the phase shifter desing for the meter"
class="gallery-image"
data-flex-grow="165"
data-flex-basis="398px"
>&lt;/p>
&lt;p>We tested the circuit on a protoboard before designing the PCB using &lt;em>Altium Designer&lt;/em>.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd.PNG"
width="757"
height="496"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd_hu3351495035239025609.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/pcb_thd_hu4551021193416416361.PNG 1024w"
loading="lazy"
alt="PCB design of the circuit"
class="gallery-image"
data-flex-grow="152"
data-flex-basis="366px"
>&lt;/p>
&lt;h2 id="the-device">The device
&lt;/h2>&lt;p>The device features several controls for adjusting phase and gain. Both the phase and gain adjustments include fine-tuning potentiometers to ensure maximum precision.&lt;/p>
&lt;div id="carousel0" class="carousel" duration="70000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd1.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd2.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 600px;">&lt;img src="https://dibernardo.netlify.app/images/thd/thd3.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;p>It is equipped with BNC inputs and outputs, allowing users to visualize the output on an oscilloscope and achieve maximum attenuation.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>This device was compared against a commercial THD meter (GW INSTEK GAD-201G), and the results were highly similar. The primary limitation was the base noise level of the measurement environment, which significantly restricted the lowest THD value we could measure.&lt;/p>
&lt;p>The specifications of the device are summarized in the following table (in Spanish):&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/thd-n-meter/specs_thd.PNG"
width="1192"
height="887"
srcset="https://dibernardo.netlify.app/p/thd-n-meter/specs_thd_hu7856985861425421171.PNG 480w, https://dibernardo.netlify.app/p/thd-n-meter/specs_thd_hu9340525222663809333.PNG 1024w"
loading="lazy"
alt="Technical specifications for the device"
class="gallery-image"
data-flex-grow="134"
data-flex-basis="322px"
>&lt;/p>
&lt;p>A detailed analysis of the device is available in this &lt;a class="link" href="https://drive.google.com/file/d/1b36O_s27LkEJAZ6-y5TcdTT5wKB1xdGk/view?usp=sharing" target="_blank" rel="noopener"
>final report&lt;/a> (written in spanish).&lt;/p></description></item><item><title>Building and design of a personal loudspeaker</title><link>https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/</link><pubDate>Wed, 20 Nov 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/front_bass.PNG" alt="Featured image of post Building and design of a personal loudspeaker" />&lt;h1 id="bassado-a-semi-portable-low-cost-home-speaker">&amp;ldquo;BassAdo&amp;rdquo;: A Semi-Portable Low-Cost Home Speaker
&lt;/h1>&lt;p>This project is part of the Electroacoustics II course at UNTREF within the Sound Engineering program. The task was to design a speaker system from scratch by applying the theory and concepts explained in class.
The project was developed over the entire semester, with various stages to complete and present in reports. The speaker is intended for use in large spaces, potentially outdoors, to play music in a social gathering setting. It was named BassAdo to blend the Argentine tradition of &amp;ldquo;asado&amp;rdquo; (a typical barbecue gathering) with the word &amp;ldquo;bass,&amp;rdquo; emphasizing the speaker’s low-frequency performance.&lt;/p>
&lt;h2 id="design">Design
&lt;/h2>&lt;p>The goal was to design an accessible home audio system that allowed exploration of topics discussed in the course. The design aimed to emphasize bass response, characteristic of commercial systems, prioritizing low-frequency bandwidth extension over minimal group delay and system time control.&lt;/p>
&lt;p>Regarding the transducers, the team had access to Yharo-brand units, which are classified as non-professional, consumer-grade, and suitable for automotive or home systems. The impedance response of the units was evaluated, and an 8” woofer was selected for low frequencies, along with two 4” units for mid/high frequencies.&lt;/p>
&lt;p>Measuring the Thiele-Small parameters of the speakers revealed a high &lt;em>Vas&lt;/em> (Equivalent Suspension Acoustic Volume), necessitating a large cabinet volume for proper control. To address this, and given the availability of two 8” woofers, the team opted for an isobaric speaker configuration, acoustically coupling the woofers to improve control and reduce cabinet size. Additionally, the cabinet was designed as vented to enhance low-frequency response.&lt;/p>
&lt;p>The Thiele-Small parameters were obtained using the software &lt;a class="link" href="https://www.roomeqwizard.com/" target="_blank" rel="noopener"
>REW&lt;/a>. With these parameters, simulations were performed in &lt;a class="link" href="https://www.tolvan.com/index.php?page=/basta/basta.php" target="_blank" rel="noopener"
>Basta!&lt;/a> to optimize the design for the desired response. A key focus was tuning the port’s resonance frequency to achieve strong low-frequency performance. The transducer had an &lt;em>fs&lt;/em> of 45 Hz, and the port was tuned to 40 Hz by adjusting the tube length and cabinet air volume.&lt;/p>
&lt;p>Based on these results, a 3D model of the cabinet was created using &lt;a class="link" href="https://www.solidworks.com/" target="_blank" rel="noopener"
>SolidWorks&lt;/a>, and the design was used to cut the materials for construction.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab.PNG"
width="422"
height="306"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab_hu4105664598446689879.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/dise%C3%B1o_gab_hu11734023399320749680.PNG 1024w"
loading="lazy"
alt="3D modeing of the loudspeaker box"
class="gallery-image"
data-flex-grow="137"
data-flex-basis="330px"
>&lt;/p>
&lt;p>Details of this process are documented in the following &lt;a class="link" href="https://drive.google.com/file/d/1uej1m6gwg99JoPEw5Jbu3cTq74ViIG58/view?usp=sharing" target="_blank" rel="noopener"
>design report&lt;/a>.&lt;/p>
&lt;h2 id="construction">Construction
&lt;/h2>&lt;p>The wood was cut according to the 3D model, and the cabinet was assembled.&lt;/p>
&lt;div id="carousel0" class="carousel" duration="700000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b1.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b2.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b3.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide4" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b4.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide5" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b5.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide6" style="min-width: calc(100%/1); padding-bottom: 700px;">&lt;img src="https://dibernardo.netlify.app/images/bassado/b6.jpeg" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide4">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide5">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide6">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;p>As shown in the images, rock wool was added as an acoustic absorber. Measurements revealed this was excessive (the port resonance was overly damped), so some rock wool was removed to achieve the desired result.&lt;/p>
&lt;h2 id="measurement-and-calibration">Measurement and Calibration
&lt;/h2>&lt;p>Frequency response and directivity measurements were conducted in the university’s laboratory using the following equipment:&lt;/p>
&lt;ul>
&lt;li>Powersoft M50Q amplifier&lt;/li>
&lt;li>Earthworks M50 microphone&lt;/li>
&lt;li>RME Fireface UCX audio interface&lt;/li>
&lt;li>OUTLINE ET250-3D turntable&lt;/li>
&lt;/ul>
&lt;p>Using this setup and the &lt;a class="link" href="https://artalabs.hr/" target="_blank" rel="noopener"
>Arta&lt;/a> software, the acoustic response of individual transducers was characterized (useful for crossover filter simulation). Vertical and horizontal directivity responses were also evaluated to determine the best orientation for use. Frequency response graphs for both transducers were generated.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar.PNG"
width="943"
height="584"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar_hu10205775189482527862.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/patron_polar_hu2898494236095029192.PNG 1024w"
loading="lazy"
alt="Polar response for the mid/high driver"
class="gallery-image"
data-flex-grow="161"
data-flex-basis="387px"
>&lt;/p>
&lt;p>All measurements and in-depth analysis are included in the following &lt;a class="link" href="https://drive.google.com/file/d/1dPwJAqadPM3Ja80anA1P1Ei3EP9M8w-q/view?usp=sharing" target="_blank" rel="noopener"
>measurement report&lt;/a>.&lt;/p>
&lt;h2 id="crossover-filter-design">Crossover Filter Design
&lt;/h2>&lt;p>Finally, the crossover filter stage was designed. Using the previous measurements, data were uploaded to &lt;a class="link" href="https://kimmosaunisto.net/" target="_blank" rel="noopener"
>VituixCad&lt;/a> to calculate the simulations. The goal of the crossover filter was to achieve a pleasant frequency response for music playback and to enhance low frequencies. Vertical polar response uniformity was also a priority.&lt;/p>
&lt;p>Since the power stage required an active supply, an active crossover filter with a Sallen-Key topology was implemented. The number of filters was defined based on space and cost, and adjustments were made in the software to achieve the desired response. For example, the low-frequency driver used the following configuration:&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce.PNG"
width="1221"
height="648"
srcset="https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce_hu13251352229816192527.PNG 480w, https://dibernardo.netlify.app/p/building-and-design-of-a-personal-loudspeaker/filtro_cruce_hu16925353032023854787.PNG 1024w"
loading="lazy"
alt="Crossover filter for the low frequency driver"
class="gallery-image"
data-flex-grow="188"
data-flex-basis="452px"
>&lt;/p>
&lt;p>Where:&lt;/p>
&lt;ul>
&lt;li>F1: High-pass fs=30 Hz | Q=0.67&lt;/li>
&lt;li>F2: Low-pass fs=480 Hz | Q=0.5&lt;/li>
&lt;li>F3: Notch filter at 220 Hz&lt;/li>
&lt;li>F4: Notch filter at 400 Hz&lt;/li>
&lt;/ul>
&lt;p>Before building the filter, the proposed configuration was tested with a digital filter to practically evaluate the system’s response.
Details of this section are provided in the following &lt;a class="link" href="https://drive.google.com/file/d/121wkPnp_QsODk99a2Jm44jfb-Xbl6ZKn/view?usp=sharing" target="_blank" rel="noopener"
>crossover filter report&lt;/a>.&lt;/p>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>This project allowed us to apply theoretical concepts in practice and gain a deeper understanding of the development and challenges involved in designing an electroacoustic system.&lt;/p></description></item><item><title>Automatic Workout Routine Generator</title><link>https://dibernardo.netlify.app/p/automatic-workout-routine-generator/</link><pubDate>Wed, 17 Apr 2024 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/automatic-workout-routine-generator/</guid><description>&lt;h1 id="automatic-workout-routine-generator">Automatic Workout Routine Generator
&lt;/h1>&lt;p>This project was the final project asignment for the Algoritmos y Programación II on UNTREF. The idea of the application is to function as a smart workout planification, where the user input certain criterias and the program establish the best workout routine to maximice the users preference. The program was written in the Go programming language.&lt;/p>
&lt;h2 id="data-management">Data Management
&lt;/h2>&lt;p>This course does not focues on databases, so we choose to use a CSV to simulate a database. This file contains all the information of the different routines and the differente attributes. This serve as a presistency file wheras all the logic is handle by the program.&lt;/p>
&lt;p>Different exercises are categorized by tematics. There are two entities on the program that are represented as structs in Go, this are the Exercise and the Routines.&lt;/p>
&lt;h3 id="exercise">Exercise
&lt;/h3>&lt;p>All the exercises have the following attributes:&lt;/p>
&lt;ul>
&lt;li>Name: Name of the exercise.&lt;/li>
&lt;li>Description: Detailed description of the exercise.&lt;/li>
&lt;li>Duration: Estimated duration of the exercise.&lt;/li>
&lt;li>Calories: Number of calories burned during the exercise.&lt;/li>
&lt;li>Type: Type of exercise (e.g., cardio, strength, flexibility).&lt;/li>
&lt;li>Muscle Group: Muscle group targeted by the exercise.&lt;/li>
&lt;li>Points: Points assigned to the exercise for each of its types.&lt;/li>
&lt;li>Difficulty: Difficulty level of the exercise.&lt;/li>
&lt;/ul>
&lt;h3 id="routines">Routines
&lt;/h3>&lt;p>All the routines are a collection of exercises. This are paresed as a linked list of exercise. Aside from this, the routins have the following attributes:&lt;/p>
&lt;ul>
&lt;li>Name: Name of the routine.&lt;/li>
&lt;li>Exercises: String that stores the IDs of the exercises in the routine, separated by commas.&lt;/li>
&lt;li>AvailableExercises: Linked list of the exercises available for creating the routine.&lt;/li>
&lt;/ul>
&lt;h2 id="algorithm">Algorithm
&lt;/h2>&lt;p>The idea is to maximice different parameters, for example, maximum calories burnt in the least ammount of time, or the minimum duration for this muscle group or type of exercise. To find the best solutions based on the existing data we propose a dynamic programming algorithm that searches for all the posiblities from the data and find the maximum or minimum according to the specifications of the user. The DP apprach uses memory to avoid recalculation combinantions that already were computed, with this optimization the algorithm is fast enough that can generate the routines in miliseconds (with the test dataset under evaluation).&lt;/p>
&lt;h2 id="user-interface">User Interface
&lt;/h2>&lt;p>At the moment, the programm is designed to be used form the terminal as a CLI application. The user can crear an exersice and a rutine, list the avaliable optionas, and generate a custom routine base on the specifications that he choose.&lt;/p>
&lt;p>This is the first iteration of the project and it is fully functional but we plan to create a custom GUI to be user friendly, but for this proposse it will be better to use a different framework and use this GO application as the backend for a web or app service.&lt;/p>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>With this project I solidify my knowledege on programming topics like data structurs and algorithms because we used the theory seen in class and applied it to a real case scenario. Also it help me to get used to the Go langeage and it became a leangauge that I really enjoy coding on it. The code for this project is avaliable on this &lt;a class="link" href="https://github.com/MatiasDiBernardo/Workout-routine-generator" target="_blank" rel="noopener"
>repository&lt;/a>.&lt;/p></description></item><item><title>Time Scale Modification Algorithms</title><link>https://dibernardo.netlify.app/p/time-scale-modification-algorithms/</link><pubDate>Sat, 11 Feb 2023 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/time-scale-modification-algorithms/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/time-scale-modification-algorithms/tsm.PNG" alt="Featured image of post Time Scale Modification Algorithms" />&lt;p>Time scale modifications algorithms are used to speed up or slow down the reproduction velocity of an audio. When you change the sample rate of an audio, the velocity changes but it also changes the pitch (when the audio is speed up it sounds highier pitch). There are different algorithms that change the velocity of the audio but mantain the pitch.&lt;/p>
&lt;p>The main reference for this study is the following article, where all the different algorithms are describe in detail.&lt;/p>
&lt;blockquote>
&lt;p>A Review of Time-Scale Modification of Music Signals.&lt;br>
— &lt;cite>Jonathan Driedger and Meinard Müller&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>&lt;/cite>&lt;/p>
&lt;/blockquote>
&lt;h2 id="algorithm-comparison">Algorithm comparison
&lt;/h2>&lt;p>There are two main algorithms, the &lt;em>Overlap-and-add&lt;/em> (OLA) and the &lt;em>Phase Vocoder&lt;/em> (PV). Both achieve good results under different signals and conditions. For this, a final implementation using &lt;em>Harmonic Percussion Separation&lt;/em> (HPS) combines both algorithms and achiving the best results.&lt;/p>
&lt;h3 id="ola">OLA
&lt;/h3>&lt;p>This method works on time domain and overlap sections of the audio (windows) and rearange it to achive a certain desire change on speed. This method works well for percussive signals, but it introduces artifacts when used with harmonic or tonal signals.&lt;/p>
&lt;h3 id="pv">PV
&lt;/h3>&lt;p>This method works on frequency domain, and it combines chunks of audio in the frequency domain to achieve the desire change in time. This uses the phase vocoder principle to propagate the phase between the windows, this grantice the continuity of when applied to harmonic signals. On the contrary, it does not work for percussive signals becouse the phase propagation process eliminate the transients in the signals.&lt;/p>
&lt;p>I created visualizations using &lt;em>Manim&lt;/em> to enhance my class presentation. The first video demonstrates how the PV algorithm aligns windows to ensure smooth transitions in the generated signal over time. To achieve this, a Gaussian window is applied, which maintains continuity and smoothness, even at the start and end of the sequence.&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe src="https://player.vimeo.com/video/1045495557" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="vimeo video" webkitallowfullscreen mozallowfullscreen allowfullscreen>&lt;/iframe>
&lt;/div>
&lt;p>The second video showcases the effects of applying the PV algorithm to a signal containing transients.&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe src="https://player.vimeo.com/video/1045495634" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="vimeo video" webkitallowfullscreen mozallowfullscreen allowfullscreen>&lt;/iframe>
&lt;/div>
&lt;p>As predicted by theory, the transients vanish because the PV algorithm disrupts the vertical phase alignment. While these examples utilize idealized signals, they effectively demonstrate the key strengths and limitations of the algorithm.&lt;/p>
&lt;h3 id="hps">HPS
&lt;/h3>&lt;p>To use both methods with their ideal signals, the HPS algorithms is used. This algorithm separete the signal into the harmonics and the percussive parts. It works by comparing the continuty of the signal in the STFT representation and using a filter to compare vertical versus horizontal presence on the spectrogram. With a threshold, a binary mask can be define over the spectrogram to separete the percussive parts from the harmoincs sections.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>We succesfully implement all the algorithms and compare them, verifying the theortical contents presented on the referenca article. In the process, we develope the toolkit to use this algorithms with the python programming language. All the code is avaliable on this &lt;a class="link" href="https://github.com/MatiasDiBernardo/TSM_Toolkit" target="_blank" rel="noopener"
>repo&lt;/a>&lt;/p>
&lt;h2 id="academic-presentation">Academic Presentation
&lt;/h2>&lt;p>The study was preseented with my classmates on the &lt;em>JAAS&lt;/em> (Jornadas de Acustica, Audio y Sonido). The main ideas and conclusions were preseneted on the conference. In the following repoert there is all the details and anlysis done for this proyect (in spanish).&lt;/p>
&lt;blockquote>
&lt;p>ALGORITMOS DE MODIFICACIÓN DE ESCALA TEMPORAL.&lt;br>
— &lt;cite>Matías Di Bernardo; Matías Vereertbruhggen; Sebastían Carro &lt;sup id="fnref:2">&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref">2&lt;/a>&lt;/sup>&lt;/cite>&lt;/p>
&lt;/blockquote>
&lt;div class="footnotes" role="doc-endnotes">
&lt;hr>
&lt;ol>
&lt;li id="fn:1">
&lt;p>A Review of Time-Scale Modification of Music Signal &lt;a class="link" href="https://www.researchgate.net/publication/295082364_A_Review_of_Time-Scale_Modification_of_Music_Signals" target="_blank" rel="noopener"
>paper&lt;/a>.&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;li id="fn:2">
&lt;p>JAAS 2023 - Algoritmos de Modificación de Escala Temporal &lt;a class="link" href="https://drive.google.com/file/d/12kPB3qBjczyx7X2XV3ZpBDo1GDO2u4qR/view?usp=sharing" target="_blank" rel="noopener"
>paper&lt;/a>.&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink">&amp;#x21a9;&amp;#xfe0e;&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;/div></description></item><item><title>Comparative analysis of time-frequency transformations</title><link>https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/</link><pubDate>Fri, 11 Nov 2022 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/fourier.jpg" alt="Featured image of post Comparative analysis of time-frequency transformations" />&lt;p>This research is conducted as part of the subject &lt;em>Metodología de la Investigación&lt;/em> at UNTREF. The article aims to compare the differences between three types of time-frequency transformations:&lt;/p>
&lt;ol>
&lt;li>Fourier Transform (FT)&lt;/li>
&lt;li>Wavelet Transform (WT)&lt;/li>
&lt;li>Huang-Hilbert Transform (HHT)&lt;/li>
&lt;/ol>
&lt;p>The objective of this work is to understand the differences between these types of transformations and deepen my knowledge of signal processing.&lt;/p>
&lt;h2 id="objective">Objective
&lt;/h2>&lt;p>The general objective of the research is to determine which spectral analysis tool achieves the highest accuracy in pitch detection tasks.&lt;/p>
&lt;p>To achieve this objective, the following specific objectives are proposed:&lt;/p>
&lt;ul>
&lt;li>Identify the parameters needed to represent the signal in the spectral domain for each case.&lt;/li>
&lt;li>Select an algorithm that identifies the pitch of the signal based on its spectral representation.&lt;/li>
&lt;li>Generate the data (audio signals) to be used for the comparison.&lt;/li>
&lt;li>Evaluate the generated data with the different analysis methods and apply statistical processes to validate the results.&lt;/li>
&lt;li>Establish a measure of accuracy for the pitch detection task.&lt;/li>
&lt;li>Compare the results of the different analyses and determine which method achieves the highest accuracy in pitch detection.&lt;/li>
&lt;/ul>
&lt;p>The pitch detection task was chosen because it is one of the main applications of these types of transformations.&lt;/p>
&lt;h2 id="algorithms">Algorithms
&lt;/h2>&lt;p>The theoretical analysis of all the transformations is performed in the continuous domain, but to conduct the experiments and comparisons, the discrete domain is used, enabling all calculations to be performed digitally.&lt;/p>
&lt;h3 id="fft">FFT
&lt;/h3>&lt;p>The FFT is an algorithm that optimizes the DFT (Discrete Fourier Transform). With this algorithm, the spectral representation of the signal is obtained according to Fourier analysis, which decomposes a complex signal into a sum of sines or cosines. The DFT is calculated using the formula:&lt;/p>
$$
X_k = \sum_{n=0}^{N-1} e^{-i\frac{2\pi}{N}kn} x_n
$$&lt;p>Where \( N \) is the number of signal samples, and \( k \) are natural numbers from \( 0 \) to \( N – 1 \).&lt;/p>
&lt;h3 id="wt">WT
&lt;/h3>&lt;p>The Wavelet Transform (WT) uses an oscillatory function (wavelet) and applies a convolution between the signal and the chosen wavelet function to determine whether that wave shape is present in the signal. The wavelet is stretched and scaled in frequency and amplitude, allowing a single wavelet function to recreate the entire spectrum of interest.&lt;/p>
&lt;p>In this research, the CDWT (Cyclic Discrete Wavelet Transform) will be used, the most common implementation when discretizing the WT. Conceptually, this transform extends Fourier analysis by projecting the signal onto a basis of wavelet functions instead of sines and cosines. It is calculated as follows:&lt;/p>
$$
Wf[n, a^j] = \sum_{m=0}^{N-1} f[m] \psi_j[m-n]
$$&lt;p>Where \( N \) is the number of signal samples, \( \psi \) is the wavelet function, and \( j \) represents the deformation of the wavelet according to the selected wavelet bank.&lt;/p>
&lt;h3 id="hht">HHT
&lt;/h3>&lt;p>Lastly, the Huang-Hilbert Transform (HHT) will be used for spectral representation. It employs a method called Empirical Mode Decomposition (EMD) to decompose the signal into subsignals that contain the relevant information of the original function.&lt;/p>
&lt;p>Like the previous analysis methods, the key part of the analysis is the decomposition of the signal into simpler signals. However, instead of sine or wavelet functions, EMD finds intrinsic mode functions (IMFs) that form the basis of our decomposition and are unique to each signal.&lt;/p>
&lt;p>The relationship between the IMFs and the frequency of the original signal is established with the equation:&lt;/p>
$$
z(t) = f(t) + i H\{ f(t) \}
$$&lt;p>Where \( f(t) \) is an IMF of the original signal, and \( H \) is the Hilbert Transform. This allows the IMF to be represented as a complex signal by projecting it onto the imaginary axis using the Hilbert Transform.&lt;/p>
&lt;p>Thus, the IMF is represented as a complex signal, and the amplitude and phase of each moment can be extracted to construct the spectral representation. Since a signal generally has multiple IMFs, this process is repeated for all of them, and the results are summed to obtain the complete spectrum.&lt;/p>
&lt;h2 id="procedure">Procedure
&lt;/h2>&lt;p>This research analyzes the relationship between types of spectral representation and accuracy in pitch detection.&lt;/p>
&lt;p>First, the parameters for the different transformations will be selected. Among the most critical parameters to determine is the number of samples for temporal windowing, as it determines the trade-off between temporal and frequency resolution.&lt;/p>
&lt;p>To ensure a fair comparison among the methods, data representing various cases of interest will be generated, including four types of signals:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Monophonic&lt;/strong>: Signals with a single note corresponding to \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Polyphonic&lt;/strong>: Signals with multiple notes where harmony determines \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Slow Transitions&lt;/strong>: Signals with gradual changes in \( F_0 \).&lt;/li>
&lt;li>&lt;strong>Fast Transitions&lt;/strong>: Signals with abrupt changes in \( F_0 \).&lt;/li>
&lt;/ul>
&lt;p>The real value \( V(t) \) will be compared to the result \( P(t) \) from each transform, integrating the difference over time to calculate the accuracy.&lt;/p>
&lt;h2 id="results">Results
&lt;/h2>&lt;p>At this stage, the task was to complete the research plan detailing the procedure and analysis methods. Dummy data was generated and statistically validated to simulate expected results.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res.PNG"
width="834"
height="550"
srcset="https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res_hu8387233291062647437.PNG 480w, https://dibernardo.netlify.app/p/comparative-analysis-of-time-frequency-transformations/res_hu2809804783985204141.PNG 1024w"
loading="lazy"
alt="Graph showing the precision of each transform according to the type of signal analyzed"
class="gallery-image"
data-flex-grow="151"
data-flex-basis="363px"
>&lt;/p>
&lt;p>The graph compares the precision achieved by the three transformations for different signal types. Based on the properties of the transforms, the Wavelet Transform (WT) is expected to outperform the Fourier Transform (FT), and the Huang-Hilbert Transform (HHT) is expected to achieve the highest precision overall.&lt;/p>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>In pitch detection tasks using spectral analysis, the Huang-Hilbert Transform (HHT) generally provides higher precision than the Fast Fourier Transform (FFT) and the Cyclic Discrete Wavelet Transform (CDWT).&lt;/p>
&lt;p>The significance of this precision gain depends on the type of signal being analyzed, with fast-transition signals benefiting the least from the transformation change, while polyphonic signals show the most significant improvement when using the HHT.&lt;/p>
&lt;p>This project allowed me to deepen my understanding of signal processing and grasp the foundations of why tools like the WT and HHT are used based on the characteristics of the signal being analyzed.&lt;/p>
&lt;p>All details of this work are available in the following &lt;a class="link" href="https://drive.google.com/file/d/1G5kasP3BzZPVuxrXArHM72pUVlkN9b2Q/view?usp=sharing" target="_blank" rel="noopener"
>report&lt;/a>.&lt;/p></description></item><item><title>Theather Acoustic Design</title><link>https://dibernardo.netlify.app/p/theather-acoustic-design/</link><pubDate>Wed, 22 Jun 2022 00:00:00 +0000</pubDate><guid>https://dibernardo.netlify.app/p/theather-acoustic-design/</guid><description>&lt;img src="https://dibernardo.netlify.app/p/theather-acoustic-design/front.PNG" alt="Featured image of post Theather Acoustic Design" />&lt;p>This project is the final assignment for the class &lt;em>Acoustics and Psychoacoustics II&lt;/em>, where we were tasked with redesigning an existing auditorium. The goal was to apply the theory covered in class to create an acoustically optimized auditorium. For our project, we chose to redesign the Royal Albert Hall in London. This was particularly challenging due to the auditorium&amp;rsquo;s vast dimensions, which make it difficult to ensure that sound reaches all spectators equally.&lt;/p>
&lt;h2 id="redesign-main-ideas">Redesign Main Ideas
&lt;/h2>&lt;p>The redesign aimed to preserve the original concept of the auditorium, including its large volume and extensive seating capacity, while introducing critical changes to improve its acoustics. Although the primary focus was on acoustic enhancement, the redesign also considered other essential factors, such as sightlines and appropriate seat distribution.&lt;/p>
&lt;p>Despite the intent to maintain the auditorium&amp;rsquo;s original dimensions, its volume proved too large to achieve an optimal reverberation time. To address this, the redesign introduced an intermediate ceiling to reduce the spherical ceiling&amp;rsquo;s volume, and the main seating area was reduced. These changes helped create a better reverberation time in the room, as illustrated in the cross-section below.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/theather-acoustic-design/cross_section.PNG"
width="1324"
height="506"
srcset="https://dibernardo.netlify.app/p/theather-acoustic-design/cross_section_hu8201639409724213049.PNG 480w, https://dibernardo.netlify.app/p/theather-acoustic-design/cross_section_hu5610852418196906417.PNG 1024w"
loading="lazy"
alt="Cross section of the auditorium redesign"
class="gallery-image"
data-flex-grow="261"
data-flex-basis="627px"
>&lt;/p>
&lt;h2 id="building-details-and-regulations">Building Details and Regulations
&lt;/h2>&lt;p>To ensure a feasible and functional redesign, the following key aspects were carefully considered:&lt;/p>
&lt;ul>
&lt;li>Seat distribution&lt;/li>
&lt;li>Corridor spacing&lt;/li>
&lt;li>Sightline optimization&lt;/li>
&lt;li>Stage comfort&lt;/li>
&lt;/ul>
&lt;h2 id="acoustic-treatment">Acoustic Treatment
&lt;/h2>&lt;p>Acoustic treatment was the most critical part of this study and focused on two main aspects: reflections and reverberation time.&lt;/p>
&lt;h3 id="reflections">Reflections
&lt;/h3>&lt;p>Analyzing reflections is essential for the audience&amp;rsquo;s acoustic experience. The original Royal Albert Hall features a spherical ceiling that centralizes reflections, creating undesirable acoustic effects. To mitigate this, the redesign incorporated an intermediate ceiling with a specific geometry designed to distribute reflections evenly across the audience.&lt;/p>
&lt;p>The staggered ceiling design ensures adequate reflections for all seating rows. In the main balcony, two reflections were specifically addressed to compensate for the lower sound pressure level (SPL) caused by the large distance from the stage, as shown in the image below.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/theather-acoustic-design/balcony_cel_ref.PNG"
width="1136"
height="462"
srcset="https://dibernardo.netlify.app/p/theather-acoustic-design/balcony_cel_ref_hu8173242411301837287.PNG 480w, https://dibernardo.netlify.app/p/theather-acoustic-design/balcony_cel_ref_hu890172879033338586.PNG 1024w"
loading="lazy"
alt="Balcony ceiling reflections"
class="gallery-image"
data-flex-grow="245"
data-flex-basis="590px"
>&lt;/p>
&lt;p>Lateral reflections were also optimized through adjustments to the stage geometry and the walls of the lateral balconies.&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/theather-acoustic-design/lateral_ref.PNG"
width="642"
height="521"
srcset="https://dibernardo.netlify.app/p/theather-acoustic-design/lateral_ref_hu2629534869006446785.PNG 480w, https://dibernardo.netlify.app/p/theather-acoustic-design/lateral_ref_hu11386676131120321573.PNG 1024w"
loading="lazy"
alt="Lateral reflections on the main audience"
class="gallery-image"
data-flex-grow="123"
data-flex-basis="295px"
>&lt;/p>
&lt;p>Additionally, the redesign sought to minimize the Initial Time Delay Gap (ITDG) across different audience locations.&lt;/p>
&lt;h3 id="materials-and-reverberation-time">Materials and Reverberation Time
&lt;/h3>&lt;p>The redesign adhered to recommendations from &lt;em>Acoustic Absorbers and Diffusers&lt;/em> to achieve a balance between absorption, diffusion, and specular reflections. Reflective materials were used for the ceiling and parts of the lateral balconies to ensure effective specular reflections. To lower the reverberation time (RT), materials with higher absorption coefficients were applied to other surfaces.&lt;/p>
&lt;p>Using the selected materials and the Sabine equation, we calculated the auditorium&amp;rsquo;s estimated RT. The resulting reverberation time for different frequencies is shown below:&lt;/p>
&lt;p>&lt;img src="https://dibernardo.netlify.app/p/theather-acoustic-design/rt.PNG"
width="848"
height="644"
srcset="https://dibernardo.netlify.app/p/theather-acoustic-design/rt_hu5951076229482181811.PNG 480w, https://dibernardo.netlify.app/p/theather-acoustic-design/rt_hu15811556200730072255.PNG 1024w"
loading="lazy"
alt="Reverberation time per frequency"
class="gallery-image"
data-flex-grow="131"
data-flex-basis="316px"
>&lt;/p>
&lt;p>The calculated mid-frequency RT is 2.51 seconds. While this is slightly above the recommended maximum of 2.4 seconds for optimal acoustics, it is acceptable given the auditorium&amp;rsquo;s large volume.&lt;/p>
&lt;h2 id="3d-modelling">3D Modelling
&lt;/h2>&lt;p>We rendered the redesigned auditorium using &lt;em>SketchUp&lt;/em> software. Below are some of the visualizations:&lt;/p>
&lt;div id="carousel0" class="carousel" duration="70000">
&lt;ul>
&lt;li id="c0_slide1" style="min-width: calc(100%/1); padding-bottom: 450px;">&lt;img src="https://dibernardo.netlify.app/images/royal/r1.PNG" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide2" style="min-width: calc(100%/1); padding-bottom: 450px;">&lt;img src="https://dibernardo.netlify.app/images/royal/r2.PNG" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide3" style="min-width: calc(100%/1); padding-bottom: 450px;">&lt;img src="https://dibernardo.netlify.app/images/royal/r3.PNG" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;li id="c0_slide4" style="min-width: calc(100%/1); padding-bottom: 450px;">&lt;img src="https://dibernardo.netlify.app/images/royal/r4.PNG" alt="" />&lt;div>&lt;div>&lt;/div>&lt;/div>&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>&lt;a href="#c0_slide1">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide2">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide3">&lt;/a>&lt;/li>
&lt;li>&lt;a href="#c0_slide4">&lt;/a>&lt;/li>
&lt;/ol>
&lt;div class="prev">&amp;lsaquo;&lt;/div>
&lt;div class="next">&amp;rsaquo;&lt;/div>
&lt;/div>
&lt;h2 id="conclusions">Conclusions
&lt;/h2>&lt;p>Redesigning the Royal Albert Hall to improve its acoustics while retaining its original essence presented significant challenges. The project required innovative solutions to address acoustic issues without compromising the hall&amp;rsquo;s iconic design. Although some changes were necessary, the final result demonstrates a thoughtful redesign that enhances acoustics while preserving the auditorium&amp;rsquo;s historical character. This project also deepened our understanding of acoustics and auditorium design principles.&lt;/p>
&lt;p>A detailed description of this project can be found in the following &lt;a class="link" href="https://drive.google.com/file/d/1CkX-t_gx2s_YlKbrjB-5IK_dmZIkpJrd/view?usp=sharing" target="_blank" rel="noopener"
>article&lt;/a>.&lt;/p></description></item></channel></rss>