What is a pattern?

In the OpenAL documentation, it looks if Sample is a single floating point value, for example let say 1.94422

It is right? Or is the pattern an array of many values? What do they say about programming when they say "Pattern"? Is this the smallest possible piece of audio?

I imagine that an uncompressed audio file looks like a giant array with millions of floating point values, where each value is a point in the graph that forms the sound wave. So, every little dot is a pattern?

+3
source share
4 answers

That's right. The pattern is a value .

When you convert an analog signal to your digital representation, you convert a continuous function into discrete and quantized.

This means that you have a grid of vertical and horizontal lines, and all possible values ​​lie at the intersection of the lines. The gap between the vertical lines is the distance between two consecutive patterns, the gap between the horizontal ones is the minimum differences that you can imagine.

In each vertical line, you have a pattern that (in linear coding) is equal to n-times k, where k is quantum , the minimum link difference is higher.

+5
source

, , . ?

, . - , - . (, . .

+2

:

/ .

, . , , (EG: /), .

+1

In an audio program, the term “sample” really refers to a single measured value. However, among sound engineers and producers, the term “sample” usually refers to the entire piece of sound taken (or taken) from a famous song or film or other original sound source.

+1
source

Source: https://habr.com/ru/post/1744005/


All Articles