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
6
votes
1 answer

How do I generate this tick sound in JavaScript?

On a.bestmetronome.com, they have a metronome that generates ticks based on noise. However, I couldn't figure out how the "ticks" are generated. Although I was able to work out the "tick" generator out of Audacity: ;; Metronome tick by Steve…
El Ectric
  • 152
  • 1
  • 3
  • 15
3
votes
2 answers

Removing characters from a string in Nyquist

How can I remove a certain character from a string in Nyquist (which is very similar to xlisp) and have the result returned? I want to count how many "A" there are in a string like "ABBAAAABBBAABAAAB". (Yes, there are only 'A's and 'B's in the…
David Costa
  • 1,738
  • 18
  • 33
3
votes
2 answers

Wrong Nyquist plot using python control package

I am trying to use python to plot a Nyquist plot. However, I can't get it right. This is the code I am using: import control import matplotlib.pyplot as plt #Creating a transfer function G s = control.TransferFunction.s K0 = 10 T = 10 G = K0 /…
3
votes
2 answers

Effect of sampling rate of a signal on its Fourier Transform

I am running some experiments on MATLAB, and I have noticed that, keeping the period fixed, increasing the sampling rate of a sine signal causes the different shifted waveforms in the Fourier transform to become more distinct. They get further…
user3744893
  • 31
  • 1
  • 2
2
votes
2 answers

Reconstruction of Digital Signal using the sinc Function

I am trying to reconstruct the signal cos(2*pi*300e6) at the sampling frequency 800e6 using the sinc function in MATLAB. When I type in the following code, I'm instead getting something very noisy--not what I am looking for. What am I doing wrong?…
2
votes
0 answers

How to find a recurring pattern into a list of numbers?

I need a way to find pattern in list of values. In particular every second I get a value in a range (ex. 1-3), and I want to find recurring pattern from this value list. If i plot this values into an x,y system i'd get something like a…
RamsesXVII
  • 295
  • 2
  • 11
2
votes
0 answers

How can I delete silence from the middle of .wav files in Audacity but not the edges?

I am trying to delete silence from an audio file using Audacity. There is a Nyquist plugin called Trim Silence which deletes silence from the start and end of a file, but not the middle. I would like to invert this, and delete silence from…
Ollyver
  • 359
  • 2
  • 14
2
votes
1 answer

MATLAB - Input frequencies for Butterworth filter design

I'm having difficulty in calculating the Butterworth coefficients with the 'buttord' and 'butter' functions. My objective is to filter out noise from a time series I constructed. The time series has a red noise component and a sinuosoid signal with…
janon128
  • 177
  • 1
  • 3
  • 13
1
vote
1 answer

PWM square wave decimator process in nyquist (audacity)

I am trying to create a PWM effect such that a square-wave is modulated with PWM to approximate the input selection in Audacity. One could use this to hear what their favorite music would sound like in PC (or Apple ][) Squeaker Fidelity LOL :-)…
Brian Jack
  • 468
  • 4
  • 11
1
vote
0 answers

Why is MatLab giving such a weirdly scaled Nyquist plot?

I wrote this code: s = tf('s'); P = (s+35)/(s*(s+3.5)*(s+3500)); nyquist(P) which resulted in this very weirdly scaled plot: which, if I zoom WAY in, looks like this: There's clearly something weird going on with the scaling, as it made the…
1
vote
0 answers

Nyquist stability of a dataset

I'm trying to find the stability of a dataset of (re, img) points I get from a circuit simulation in SPICE. In the end I would like to have a script that starting from a set of points gives you the stability of a system according to Nyquist criteria…
ClaudioC
  • 11
  • 2
1
vote
0 answers

Octave: Problems with adding two datas together to create a new stem graph

Apologies if my title is vague but I created a sine wave combined from 2 previous sampling wave graphs (Nyquist frequencies). I also tried to create a stem graph with the intent of the output looking like the sine wave was getting discretely…
Thanos
  • 386
  • 2
  • 13
1
vote
1 answer

What's the difference between Nyquist rate and Nyquist frequency?

I have a homework question that asks for the Nyquist rate AND the Nyquist frequency of a signal. I thought the two were synonymous? I tried to read their definitions but it just looks like the same thing worded differently.
Merna George
  • 19
  • 1
  • 4
1
vote
1 answer

How to extract the envelope from a sound file?

I need to extract the sound wave envelope from a set of audio files in a batch job on a headless Linux host. I think this can be achieved using the Nyquist programming language, a variant of Lisp notably embedded in audacity, and dedicated to sound…
Sylvain Leroux
  • 50,096
  • 7
  • 103
  • 125
1
vote
1 answer

How is the type sf_count_t in sndfile.h defined in libsndfile?

I am trying to work with Nyquist (a music programming platform, see: https://www.cs.cmu.edu/~music/nyquist/ or https://www.audacityteam.org/about/nyquist/) as a standalone program and it utilizes libsndfile (a library for reading and writing sound,…
1
2 3 4