Questions tagged [nyquist]

Use this tag for questions related to the Lisp-based Nyquist programming language dedicated to sound processing. Avoid using this tag for questions related to the Nyquist-Shannon sampling theorem or Strecker–Nyquist stability criterion.

nyquist is a programming language based on Lisp and dedicated to sound synthesis, analysis, and processing. The Audacity sound editor embeds a Nyquist interpreter and can run plug-ins written in the Nyquist language as well as ad-hoc Nyquist commands.

Nyquist is also available as a stand-alone interpreter often named ny.

53 questions
1
vote
1 answer

How do I compute the determinant of a transfer function matrix without having to use "syms"?

I intend to compute the determinant of a transfer matrix and then subject to a nyquist analysis by making the nyquist plot but the problem is that the determinant command doesn't recognizes the transfer matrix. The code is shown below clc clear…
biswajit
  • 15
  • 7
1
vote
2 answers

Division by zero error when evaluating symbolic expression in MATLAB

clear all syms s w G = 1/((s)*(s+1)*(s+2)); %transfer function G_w = subs(G,s,j*w); W= [-100:0.01:100]; %[min_range:step size:max_range] nyq = eval(subs(G_w,w,W)); x = real(nyq) y = imag(nyq) plot(x,y) I can't seem to run this code and it…
Niam
  • 33
  • 1
  • 7
1
vote
3 answers

Sine wave generation using phase

I'm generating a sine wave using the following method - sampling rate = 22050; theta = 0; for (i = 0; i < N; i++) { theta = phase * 2 * PI; signal[i] = amplitude * sin(theta); phase = phase + frequency/sampling rate; } When I…
Naveen
  • 43
  • 3
1
vote
0 answers

voltage at physical layer for data transmission at STP and UTP cables

I want to make an electronically cryptography on physical layer in the network cables. consider a hard device which code (encrypt) the data electronically at the source system and decrypt it electronically again at the target system via changing the…
Arman
  • 73
  • 2
  • 7
1
vote
3 answers

Reducing a FFT spectrum range

I am currently running Python's Numpy fft on 44100Hz audio samples which gives me a working frequency range of 0Hz - 22050Hz (thanks Nyquist). Once I use fft on those time domain values, I have 128 points in my fft spectrum giving me 172Hz for each…
0
votes
1 answer

LISP/Nyquist opening a file and reading line-by-line

I'm struggling to open a file, and read each line until EOF. I'm using nyquist, which is based on XLISP, and lacks Common Lisp's with-open-file. My code is: (let ((in_file (open "/home/soodesune/testfile.csv" :if-does-not-exist nil))) (loop…
SooDesuNe
  • 9,880
  • 10
  • 57
  • 91
0
votes
1 answer

What does the spatial frequency domain look like after the Fourier transform of a real array?

I have an array with N purely real points representing a spatial function: [f_0, f_1, f_2, ... , f_{N-1}] The function values are spaced in with a distance dx. Therefore the Nyquist frequency is given by f_N = 1/(2*dx) I calculate the Fourier…
madde
  • 9
  • 2
0
votes
0 answers

How to draw a curve with given ordered points in Matplotlib instead of straight lines

How to draw a curve with given points using matplotlib - I am drawing a Nyquist plot so these are basically real and imaginary values of my characteristic equation at various points (omega or w = 0,oo etc.) . So the order is important here. Points -…
0
votes
1 answer

Why nyquist plots are not working in my jupyter notebook? (python)

I am trying to do the Nyquist plot of a function in python, in jupiter notebook. When i try to use the function control.nyquist_plot, used to generate the plot, pyton gives me an error in one of the libraries files. It draws only a part of the…
Roberto
  • 1
  • 2
0
votes
0 answers

make a Nyquist Plot using Magnitude and Phase with Python

Right now I have the data of Magnitude and Phase and I want to make a Nyquist Plot. I have searched in Internet how to convert this 2 Data to transfer function but unfortunately most of the website shows the way to calculate the Magnitude and Phase…
abd ert
  • 1
  • 3
0
votes
0 answers

Nyquist Retrieving the samples start times end times etc. into a text file

Nyquist plugin for Audacity that counts syllables: I have not been able to find how to get the samples info into a text file. They are in ny:all, I need to use the fall times of the (yin (yin s-in (hz-to-step 100) (Hz-to-step 1000) for timing…
0
votes
1 answer

sampling a signal above nyquist frequency in julia

I am trying to build a signal containing the frequencies 10 Hz and 1 Hz with amplitudes 10 and 1 respectively and simulate this signal by sampling above Nyquist frequency in Julia and this is my code using Plots T = 10 delta = 0.01 ts =…
loop
  • 7
  • 3
0
votes
0 answers

How to format nonlinear constraints of PID design in optimization for python scipy?

I am trying to tune PID controller to satisfy the robustness constraint which is defined by a circle in the Nyquist plot. The result of optimization is optimal PID constants (Kp,Ki,Kd), cost function is -Ki (we are searching for maximum integral…
0
votes
0 answers

Nyquist Plot using Python with certain parameters

I am trying to draw the Nyquist plot using python but I have no clue what all parameters are required by python to do plot that curve. Here is a glimpse of the parameters that I…
0
votes
1 answer

How to extract all the car's from the elements of a list-of-lists?

If I create several empty labels on an Audacity 2.4.2 audio track (by clicking at various points along the track, and pressing Ctrl-B after each click), the Nyquist Prompt evaluates the expression (cadar (aud-get-info "Labels")) ...to a list L…
kjo
  • 33,683
  • 52
  • 148
  • 265