## 2 Recommended Topology and Working Principles
**Require:** Base Frequency of Flow tozo, frequency/thick, freq
2. **Require:** Base Frequency of high tone, frequency/thin, fq
3. **Require:** Harmonic number of five tone, harmonic, j
4. **Require:** Harmonic number of high tone, harmonic, j
5. **Require:** Duration of sound file, t = 5.000022
6. **Require:** Amplitude level of each low line harmonic, amplitudes, j
7. **Require:** Amplitude level of each high tone harmonic, amplitudes, j
8. **Require:** Note value (Pitch Value) of each frequency, notes (thick, note, thin, tate)
9. **do**  
56. _hurn_sound_thick_thin = generate_hurn_sound_ints, 5.00002s, harmonics_j_+ harmonics_j_, lengths_j_, amplitudes_j_]
58. _if_limit_enabled_ and _limit_, value_>_0_: 60. _limited_hurn_sound_thick_thin = _sp.city_shurn_sound_thick_thin, limit_min_, limit_max_)
61. _disc_: _limited_hurn_sound_thick_thin = _hurn_sound_thick_thin (b)  
Figure 3: Flow diagram of the horn sound generator. Figure 2: (a) Schematic depiction of the proposed horn generator code and (b) suggested Python code. In the \"_horn_sound_thick_thin_\" section, another software section mentioned in Figure 2, amplitude values are calculated separately for two frequencies. Amplitude factors are output as a matrix of size. \[ \begin{cases}\sum\limits_{x=0}^{7}amplitudes[i_{0},\dots,i_{x}]\\ \sum\limits_{x=0}^{7}amplitudes[j_{0},\dots,j_{x}]\end{cases}  \tag{4}\]  
\[ \begin{cases}amplitude\ [i_{x}]=10^{(\frac{dB_{ix}}{10})}\\ amplitude\ [j_{x}]=10^{(\frac{dB_{ix}}{10})}\end{cases}  \tag{5}\]  
In the equations above, \(x\) refers to the number of harmonics, and \(i\) refers to the amplitude coefficient of these harmonics. The determined harmonic values are streamed to the _dB_Organizer_ function. This function is the base of the dB Organize Menu panel. The dB values \(\left(dB_{ix},dB_{jx}\right)\) determined via sliders in Equation (5) flow separately to the low-tone and high-tone matrices. As illustrated in Figure 3, all operations, including amplitude, note, frequency, number of harmonics, etc., converge at the \"_generate_horn_sound_\" function, where specific attributes of the generated horn sound are formed. By utilizing these variables in (6), along with user-defined variations, a digital and harmonious horn sound is produced, characterized by predetermined amplitudes at specific frequencies. \[wave=Limiter_{val}\cdot amplitudes[i][j]\cdot(\frac{\sin(\frac{2\pi\cdot frequency.harmonic\cdot note_{pitch}\cdot t}{f_{s}})}{harmonic}) \tag{6}\]  
The focal point of generating the horn sound lies within the \"_generate_horn_sound_\" function. Structurally, the horn sound comprises two key components: the Low Sound Frequency and the High Sound Frequency. The process of crafting a horn sound involves amalgamating specific notes with harmonics. In this dual-stage process, each fundamental frequency and harmonic value corresponds to a musical note, adhering to a 12-octave structure [21] alongside user-defined values. These elements are utilized to generate sinusoidal waves based on the fundamental sine wave structure, as is depicted in Figure 1.  
The variable \(k\) denotes the harmonic assignment and is denoted as \"harmonic\" in the software, allowing for user customization. The sampling frequency, \(f_{s}\) remains fixed at 44.1 kHz within our system. The \(f\) variable shows the \"frequency\" variable employed in the system and represents the fundamental frequency level. \(amplitudes[i][j]\) signifies amplitude values, designed to be adjustable according to user preferences. The two fundamental frequency values are allocated as two distinct series, with amplitudes varying based on the number of harmonics for [i] and [j]. This empowers the user to regulate the thickness or thinness, dB loudness, and harmonic structure of the horn sound.