How To Install siggen on Ubuntu 18.04

In this tutorial we learn how to install siggen on Ubuntu 18.04. siggen is Waveform generation tools

Introduction

In this tutorial we learn how to install siggen on Ubuntu 18.04.

What is siggen

siggen is:

a set of tools for imitating a laboratory Signal Generator, generating audio signals out of Linux’s /dev/dsp audio device. There is support for mono and/or stereo and 8 or 16 bit samples. The tools include:

  • soundinfo: display some of the programming capabilities of the sound system support for the mixer device /dev/mixer and the DSP device. Also shows some of the ioctl calls in action.

  • signalgen: a command line signal generator where details are specified from the command line for generating sine, cos, square, triangle, sawtooth, pulse, noise waves. Frequency, sample rate, relative amplitude etc. can be specified through command line options. The signal is played continuously until the program is stopped. There are options to save the basic raw digital samples raw to file or to a WAVE format file.

  • swgen: a command line sweep generator. Both the sweeping and swept waveforms can be specified, along with the sweeping frequency and the swept frequency range. Otherwise similar to sgen above.

  • siggen: an Ncurses screen based Signal Generator for two separate channels. On stereo audio cards the two channels are played on separate outputs. On mono cards the two channels are digitally mixed onto the one output. Type of waveform, frequency, amplitude, sample rate etc are specified/changed via a screen menu. It plays continuously. Changes to parameters take effect nearly immediately.

  • sweepgen: an Ncurses screen based Sweep generator (see swgen and siggen above).

  • tones: a command line program to generate several successive tones of varying frequency, and optional differing waveforms, durations and intensities. The sequence of tones can be either played once, or repetitively or the samples can be written to a file in raw or WAV format. This could make the basis of an auto-dialer for tone phones.

  • smix: a simple command line program for getting and setting the mixer settings.

  • fsynth: an Ncurses based fourier synthesis realtime generator.

There are three methods to install siggen on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install siggen Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install siggen using apt-get by running the following command:

sudo apt-get -y install siggen

Install siggen Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install siggen using apt by running the following command:

sudo apt -y install siggen

Install siggen Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install siggen using aptitude by running the following command:

sudo aptitude -y install siggen

How To Uninstall siggen on Ubuntu 18.04

To uninstall only the siggen package we can use the following command:

sudo apt-get remove siggen

Uninstall siggen And Its Dependencies

To uninstall siggen and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove siggen

Remove siggen Configurations and Data

To remove siggen configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge siggen

Remove siggen configuration, data, and all of its dependencies

We can use the following command to remove siggen configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge siggen

References

Summary

In this tutorial we learn how to install siggen package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.