Digital Signal Processing: Chord Construction and Digital Processing | Статья в журнале «Молодой ученый»

Отправьте статью сегодня! Журнал выйдет 8 марта, печатный экземпляр отправим 12 марта.

Опубликовать статью в журнале

Авторы: ,

Рубрика: Информационные технологии

Опубликовано в Молодой учёный №52 (551) декабрь 2024 г.

Дата публикации: 23.12.2024

Статья просмотрена: 8 раз

Библиографическое описание:

Потехин, В. А. Digital Signal Processing: Chord Construction and Digital Processing / В. А. Потехин, А. Ю. Есин. — Текст : непосредственный // Молодой ученый. — 2024. — № 52 (551). — С. 5-8. — URL: https://moluch.ru/archive/551/121060/ (дата обращения: 23.02.2025).



The work presents a method for synthesizing musical chords by summing sinusoidal signals. The process begins with the generation of individual sinusoids for selected musical notes based on their central frequencies and the defined sampling rate. These sinusoids are combined to form chords, normalized to maintain an amplitude range from -1 to 1, and visualized in the time domain. The proposed approach is demonstrated to replicate a musical excerpt. The method highlights the application of digital signal processing techniques in music synthesis and analysis.

Keywords: digital signal processing, music synthesis, chord construction, signal normalization, time-domain visualization.

In the digital world, signal processing and analysis have become an important part of our lives. Digital processing affects all life spheres, from crisp sound quality to analyzing various medical indicators [1]. Digital signal processing (DSP) is an important tool. It is a broad field of science where theory is actively used in practice bringing complex mathematical concepts into myriad practical applications [2].

DSP is a powerful technology that finds numerous practical applications across various industries [3]. It enables the transformation, analysis, and manipulation of digital signals, providing solution to real world problems, from audio processing to control system [4]. In this paper we focus on audio processing. We aim at simulating a chord. using Matlab Software. In order to achieve the goal some tasks have been solved:

Sinusoid Generation,namely:

– Central frequencies (Fc) and the sampling frequency (Fs) have been defined, and a time vector (t) has been constructed [5].

– Sinusoids for individual notes (A, C#, E) have been generated using the cosine function.

Chord Construction, namely:

– The generated sinusoids have been summed using the sum function to form a composite signal representing a chord.

– The resulting signal has been normalized to ensure its amplitude range was between -1 and 1.

Visualization and Playback

– The chord has been visualized in the time domain using plots.

– A sequence of chords has been created and played back using the sound function to produce a musical excerpt.

To start with, the creation of a chord is described by summing three sinusoidal oscillations. Every oscillation, in its turn, forms a part of the chord structure. Below, there is the distribution of frequencies across the octaves.

To construct chord A three notes are used:

  1. Note A, with the frequency of 440 Hz.
  2. Note C#, with the frequency of 554.365 Hz.
  3. Note E, with the frequency of 659.260 Hz.

To simplify we can round these frequencies to 440, 550, and 660 Hz, respectively.

We generate the single sinusoidal note A. We set its center frequency, Fc equals 440 Hz, and we specify the sampling frequency, Fs equals 8000 Hz. The sampling frequency is the inverse of the sampling period, which represents our time step. Thus,

Now, we can create our time vector t, where we specify the start time, the step size, and the end value (t=0:1/dt:0.1)

This represents the time interval from 0 to 0.1 seconds with the incremental step of

. It is demonstrated in Figure 1.

Fig. 1. Time sampling

Then, we can create our sinusoid by using the cosine function to generate a cosine signal. In the parentheses, we specify

We multiply the vector t by the scalar values π and Fc. As a result, the output vector x also becomes a row vector containing 801 samples, similar to the vector t. We can see it in Figure 2.

Fig. 2. 801 samples of row vector

The cosine function starts at its maximum value, so the amplitude of the function ranges from -1 to +1. In order to confirm it, we visualize it using the command plot(t,x). Figure 3 shows cosine function with amplitude ranges from -1 to +1.

Fig. 3. Cosine function

Indeed, we observe the cosine wave oscillating between -1 and 1. At this stage, we listen to our signal by using the command sound (x, Fs), where we pass our vector x and the sampling frequency Fs as arguments.

Next, we need to create additional sinusoids by defining a vector of center frequencies as Fc= [440,550,660]. This gives us a column vector. Why is it important? We do not change the syntax for generating the sinusoid, we still write x = cos(2 * pi * fc * t). However, in this case, we do not simply multiply the scalar values by the vector. Instead, we multiply the scalar values 2π by both the column vector Fc and the row vector t. The result of the multiplication is the 3×801 matrix, where each row represents a separate sinusoid. By visualizing the matrix in figure 4, we can see three distinct sinusoidal waves.

Fig. 4. Three distinct sinusoidal waves

To listen to the chord we need to summarize the three sinusoids together. We can use the built-in sum function, which adds the values across the rows of the matrix. After summing we obtain the row vector. The matrix before and after the addition is shown in figures 5 and 6.

Before:

Fig. 5. Matrix before addition

After:

Fig. 6. Matrix after addition

Now, we need to normalize the resulting vector so that its amplitude range is between -1 and 1. We can verify this by inspecting the variable in the Workspace, ensuring that the maximum value returns to 1.Figure 7 shows signal normalization

Fig. 7. Signal normalization

Next, we visualize it using the plot command. This shows the sum of the three sinusoids in the time domain, which represents how the chord A appears. Figure 8 shows sum of the three sinusoids

Fig. 8.Sum of the three sinusoids

Using our knowledge of the chord construction, we can play various musical melodies. Below, there is a sample MATLAB code that creates a sequence of chords, inspired by a musical excerpt from Playboi Carti — Location.

Fig. 9. MATLAB code for musical excerpt

In conclusion, we have demonstrated a systematic approach to synthesizing musical chords using sinusoidal signals. By generating sinusoids based on the central frequencies of notes, summing them to from chords, and normalizing the resulting signal, we archived a clear and reproducible method for creating harmonic structures. Visualization of the chords in the time domain and playback of a chord sequence illustrate the effectiveness of the approach in replicating musical excerpts. This method provides a foundation for further exploration in digital music synthesis of signal processing in musical contexts.

References:

  1. Upadhyay R. K. Digital Signal Processing: From Theory to Practical Applications // Journal of Propulsion Technology. — 2023. — Vol. 44, № 4.
  2. Lai E. Practical digital signal processing //. Elsevier. 2003.
  3. Rao K. D., Swamy M. N. Digital signal processing. Theory and practices // Springer. 2018
  4. Karl, J. H. An introduction to digital signal processing // Elsevier. 2012
  5. Proakis, J. G. Digital signal processing: principles, algorithms an applications // 4/E. Pearson Education India. 2007
Основные термины (генерируются автоматически): DSP, MATLAB.


Ключевые слова

digital signal processing, music synthesis, chord construction, signal normalization, time-domain visualization

Похожие статьи

Logo detection in images with a complex background using the contour information of images

Text detection has gotten a great attention as highly active application-oriented research area in computer vision, artificial intelligence, and image processing. In this article, we implement the algorithm for text logo detection in images with a c...

End-to-end encryption systems: problems of the information protection

This paper investigates some methods of cryptographic protection of information during its transmission over insecure channels. Our work reveals the principle of encryption using a decentralized key distribution as a way to transform the processed in...

The mode of integration methods for improving accurate delivery

The methodology is a complex integrated logical and rational order of the business performance that reduces complication and disruption. It represents only the details necessary it should be included. The methodology is successfully widely used to re...

Improving communicative competence of students using game technologies

The article discusses the role of game technologies in active participation of students in the educational process and improving their communicative competence. It also deals with the gaming technologies that can be used in teaching a foreign languag...

Implementation of innovative techniques in foreign language teaching

The given article deals with the implementation of innovative techniques in teaching foreign languages. The method called “online grammar games”, a wide range of interactive techniques are studied. The effectiveness of integrating the video material ...

Improving the quality of images obtained from CCTV cameras using matrix and frequency filters

Video surveillance has gotten a great attention as highly active application-oriented research area in computer vision, artificial intelligence, and image processing. In this article, improving the quality of images obtained from surveillance camera...

Component composition of intercultural communication models

The article examines the component composition of various models of intercultural communication and analyzes their effectiveness. The models of intercultural communication by E. Hull and R. Lewis are considered. At the end of the article the author's...

Modeling the process of teaching a foreign language utterance using multimedia

The article reflects the main stages of modeling teaching utterance in multimedia context as a process of forming a speech action image. The properties of the information space are considered as the basis for image modeling, interactive components —...

Crypto labels reader ready for future blockchain technology

The article examines crypto labels reader for blockchain technology is poised as the future of digital transactions, infusing trust, efficiency and transparency into supply chains. But blockchains alone cannot ensure the authenticity of physical good...

Multimedia technologies in the process of teaching foreign languages

The article is devoted to the role of multimedia technologies in the teaching of foreign languages. The authors of the article consider them as a means of motivating students. It is noted that multimedia technologies help to develop communicative com...

Похожие статьи

Logo detection in images with a complex background using the contour information of images

Text detection has gotten a great attention as highly active application-oriented research area in computer vision, artificial intelligence, and image processing. In this article, we implement the algorithm for text logo detection in images with a c...

End-to-end encryption systems: problems of the information protection

This paper investigates some methods of cryptographic protection of information during its transmission over insecure channels. Our work reveals the principle of encryption using a decentralized key distribution as a way to transform the processed in...

The mode of integration methods for improving accurate delivery

The methodology is a complex integrated logical and rational order of the business performance that reduces complication and disruption. It represents only the details necessary it should be included. The methodology is successfully widely used to re...

Improving communicative competence of students using game technologies

The article discusses the role of game technologies in active participation of students in the educational process and improving their communicative competence. It also deals with the gaming technologies that can be used in teaching a foreign languag...

Implementation of innovative techniques in foreign language teaching

The given article deals with the implementation of innovative techniques in teaching foreign languages. The method called “online grammar games”, a wide range of interactive techniques are studied. The effectiveness of integrating the video material ...

Improving the quality of images obtained from CCTV cameras using matrix and frequency filters

Video surveillance has gotten a great attention as highly active application-oriented research area in computer vision, artificial intelligence, and image processing. In this article, improving the quality of images obtained from surveillance camera...

Component composition of intercultural communication models

The article examines the component composition of various models of intercultural communication and analyzes their effectiveness. The models of intercultural communication by E. Hull and R. Lewis are considered. At the end of the article the author's...

Modeling the process of teaching a foreign language utterance using multimedia

The article reflects the main stages of modeling teaching utterance in multimedia context as a process of forming a speech action image. The properties of the information space are considered as the basis for image modeling, interactive components —...

Crypto labels reader ready for future blockchain technology

The article examines crypto labels reader for blockchain technology is poised as the future of digital transactions, infusing trust, efficiency and transparency into supply chains. But blockchains alone cannot ensure the authenticity of physical good...

Multimedia technologies in the process of teaching foreign languages

The article is devoted to the role of multimedia technologies in the teaching of foreign languages. The authors of the article consider them as a means of motivating students. It is noted that multimedia technologies help to develop communicative com...

Задать вопрос