-
Posts
2,711 -
Joined
-
Last visited
Contact Methods
- Website URL
Profile Information
-
Gender
Male
Recent Profile Visitors
13,862 profile views
-
opmo started following Auto Harmonizer Function , Converting MIDI or MusicXML to OMN , FFT functions : Code change? and 7 others
-
Great news We would need to end up with DEF-SCORE, same as we do with the MIDI to Score function: MusicXML to Score.
-
opmo reacted to a post in a topic: FFT functions : Code change?
-
Only function name change
-
Stephane Boussuge reacted to a post in a topic: Opusmodus 3.0.28933 Update
-
ver. 3.0.28933 New functions: Probability->Distribution BETA-DISTRIBUTION The function returns a list of values generated from the Beta distribution using the given alpha and beta parameters. The Beta distribution is a continuous probability distribution defined on the interval [0, 1]. It is commonly used to model random variables that have values between zero and one, such as proportions, probabilities, or parameters that are constrained to a specific range. BILATERAL-EXPONENTIAL The bilateral exponential distribution is a probability distribution that models random variables with values in a symmetric interval around zero. It is often used to describe quantities that exhibit both positive and negative values, such as the differences between two related measurements or errors in scientific experiments. The function returns a list of values generated from the bilateral exponential distribution using the given lower limits a and upper limits b. CAUCHY-DISTRIBUTION The Cauchy distribution is a probability distribution that is characterized by its symmetric bell-shaped curve. The function returns a list of values generated from the Cauchy distribution using the given location parameters x0 and scale parameters gamma. It is also known as the Cauchy-Lorentz distribution and is named after mathematicians Augustin Cauchy and Hendrik Lorentz. Applications of the Cauchy distribution include modeling extreme events, analyzing data with outliers, and in physics, where it arises naturally in certain physical phenomena, such as quantum mechanics and resonant systems. GAUSSIAN-DISTRIBUTION The function returns a list of pairs (x, y), where x and y are random numbers generated from a Gaussian distribution with the given means and standard deviations. The Gaussian distribution, also known as the normal distribution or bell curve, is one of the most widely used probability distributions in statistics. It is named after mathematician Carl Friedrich Gauss. WEIBULL-DISTRIBUTION The Weibull distribution is a probability distribution that is commonly used to model the failure times or lifetimes of various types of systems or phenomena. It was introduced by Wallodi Weibull, a Swedish engineer and mathematician. The function returns a list of values generated from the Weibull distribution using the given scale parameters lambda and shape parameters k. Mathematics->Interpolation SEGMENT-INTERPOLATION This function interpolates over segments defined by time, value, and an exponent using either linear or cosine interpolation. It creates a segment for each time point with the corresponding value and exponent. It then generates a sequence of points, for each of which it determines the appropriate segment. For a point, it finds the two segments it falls between and applies the appropriate interpolation based on the exponent of the first segment. If there is no subsequent segment, the function simply returns the value of the first segment. If the point falls exactly on the time of a segment, no interpolation is necessary and the function directly returns the corresponding value. Best wishes, Janusz
-
erka reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
I quickly change the names of the 2 new functions: FTT-W -> FTTW FTT-H -> FTTH I too added few more options into the FFTW function: coefficients and scale-factor Please make change to your code if you are already played with the FFT functions. Best wishes, Janusz
-
opmo reacted to a post in a topic: FFTH / length
-
Pli reacted to a post in a topic: Opusmodus 3.0.28930 Update
-
Deb76 reacted to a post in a topic: Opusmodus 3.0.28930 Update
-
Stephane Boussuge reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
New gen-brownian-motion - update 3.0.28929
-
Stephane Boussuge reacted to a post in a topic: Opusmodus 3.0.28930 Update
-
New function: FFTH, FFTW Brownian motion functions are rewritten. If you used them before please check the documents. Improvement to probability functions. FFTH num-of-harmonics step-resolution points &key type quantize coeff ambitus The function FFTH calculates the Fast Fourier Transform (FFT) of a given list of points. The FFT is a mathematical algorithm that transforms a function of time (a signal) into a function of frequency. In the context of digital signal processing, the FFT algorithm is used to identify the frequencies present in a discrete signal. The computation involves the following steps: Initialization: Arrays for amplitude, phase, harmonics-matrix, and fftx are initialized. Coefficient calculation: The function then calculates coefficients for the FFT, looping over the input data points. This is done using a complex number, where amplitude corresponds to the real part and phase to the imaginary part. FFT curve computation: After the coefficients have been calculated, the function uses them to calculate the FFT curve by looping over a set of x-values and summing up the contributions from each coefficient. Transformation of the results based on the type of output specified: If type is 'integer, the function rounds the FFT output to the nearest integer. If it's 'pitch, it converts the FFT output to pitches, quantizes them, and limits them to the specified ambitus. If no type is specified, the raw data points of the FFT curve are returned. Examples: (ffth 8 0.05 '(44 52 22 68 6 22 9 73 28 68)) (ffth 8 0.05 '(44 52 22 68 6 22 9 73 28 68) :type 'pitch :ambitus '(c3 c5)) (ffth 3 0.05 '(44 52 22 68 6 22 9 73 28 68) :type 'pitch :coeff 1.0 :ambitus '(c3 c5)) (ffth 8 0.05 '(44 52 22 68 6 22 9 73 28 68) :type 'pitch :ambitus '(c3 c5) :quantize 1/4) FFTW data &key window normalize coefficients scale-factor phase This function performs a Fast Fourier Transform (FFT) on the input data. The FFT is a widely-used algorithm for computing the Discrete Fourier Transform, which decomposes a sequence of numbers into components of different frequencies. If a windowing function is provided via the window keyword parameter, this function is used to create a "window" that is applied to the input data before performing the FFT. Windowing can help to reduce "leakage" and "picket fence" effects (artifacts caused by the finite length of the input data). If the normalize keyword parameter is true (the default), the FFT results are normalized by dividing each component by the length of the input data. This makes the results independent of the length of the input data and can make them easier to interpret. The coefficient parameter in the FFTW function serves to modify the amplitude of the output data. Each output value of the FFT is multiplied by this coefficient, effectively scaling the amplitude of the frequency components. The implementation of this FFT function is recursive, meaning it repeatedly breaks down the problem into smaller parts until it reaches a base case where the FFT can be computed directly. This makes it efficient for large datasets. Note that this function requires the length of the input data to be a power of 2. If the length of the input data is not a power of 2, it is padded with zeros up to the next power of 2. This is because the FFT algorithm is most efficient when the length of the input data is a power of 2. If you only care about the magnitudes of the frequency components, you can take the absolute value of each number in the result: (setf data '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) If you also care about the phase information, you can use the phase option to extract the phase of each number: (fftw data :phase t) Examples: In this example, a Blackman-Harris window is applied to the input data: (fftw data :window 'blackman-harris-window) No normalization is performed: (fftw data :window 'blackman-harris-window :normalize nil) Compute FFT with Gaussian window: (fftw data :window 'gaussian-window) Compute FFT with Ultraspherical window: (fftw data :window 'ultraspherical-window) Examples with all available window functions: (fftw data :window 'bartlett-hann-window) (fftw data :window 'bartlett-window) (fftw data :window 'blackman-harris-window) (fftw data :window 'blackman-nuttall-window) (fftw data :window 'blackman-window) (fftw data :window 'bohman-window) (fftw data :window 'cauchy-window) (fftw data :window 'connes-window) (fftw data :window 'cosine-window) (fftw data :window 'exponential-window) (fftw data :window 'flat-top-window) (fftw data :window 'gaussian-window) (fftw data :window 'hamming-window) (fftw data :window 'hann-poisson-window) (fftw data :window 'hanning-window) (fftw data :window 'kaiser-window) (fftw data :window 'nuttall-window) (fftw data :window 'parzen-window) (fftw data :window 'planck-taper-window) (fftw data :window 'rectangular-window) (fftw data :window 'riemann-window) (fftw data :window 'triangular-window) (fftw data :window 'tukey-window) (fftw data :window 'ultraspherical-window) (fftw data :window 'welch-window) Best wishes, Janusz
-
JimmyTheSaint reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
AM reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
erka reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
I will add to the function reflect - ensures the simulated motion stays between the lower and upper limits by reflecting it at those limits.
-
opmo reacted to a post in a topic: gen-brownian-motion inside lower and upper limit
-
-
JulioHerrlein reacted to a post in a topic: merge several rhythms into one
-
do you mean: (vector-round 0.0 6.0 (gen-brownian-motion 128))
-
opmo reacted to a post in a topic: merge several rhythms into one
-
The new function UNIFY-RHYTHMS will solve your problem - 3.0.28916 Examples: (setf l1 '(q e e 3q 3q 3q -e. s)) (setf l2 '(e e e. s -e e s -s s -s)) (list l1 l2) ; select and press cmd-2 (unify-rhythms l1 l2) (setf r1 (rhythm-series 6 5 3/8 :length '(q. e. e s 3q))) (setf r2 (rhythm-series 6 4 1/2 :length '(q. e. e s 3q))) (setf r3 (rhythm-series 6 3 1/2 :length '(q. e. e s 3q))) (list r1 r2 r3) ; select and press cmd-2 Now we merge all three voices to form a single entity: (unify-rhythms r1 r2 r3)
-
Well spotted. It is a bug for sure.
-
Do you mean LOOP. Please give me an example of the input and the output.
-
opmo reacted to a post in a topic: Auto Harmonizer Function
-
opmo reacted to a post in a topic: Auto Harmonizer Function
-
It is not very complex to do that but at the moment I don't have the time to do that, maybe in the future.
-
opmo reacted to a post in a topic: Auto Harmonizer Function
-
The ver.3.0 in an upgrade. You need a new Licence Key for it.