Git Product home page Git Product logo

sigploti2s's Introduction

SigPlotI2S

Script to plot audio waves from I2S samples exported from sigrok/PulseView. This was created to provide visual aid when debugging I2S drivers.

Requirements

Usage

python SigPlotI2S.py [Options] <input file>

Required arguments:
  <input file>          Path to the input file

Options:
  -h, --help            Show help message
  -o <output file>, --output <output file>
                        Path to the output file (.png or .pdf). Save image into a file
                        instead of opening a pop-up.
  -d <datawidth>, --datawidth <datawidth>
                        Number of bits per sample (default: 16)
  -c <channels>, --channels <channels>
                        Number of channels (default: 2)
  -s, --swap-channels, --no-swap-channels
                        Swap left and right channels (default: False)

Example

In this example we will use a 44.1kHz, 16-bit, stereo WAV file containing a sine wave and, from the I2S data recorded, generate the resulting waveform of the output audio.

  1. Scan the I2S bus to be analysed;

1

  1. Add and configure I2S decoder;

2

  1. Export I2S annotation as sinewave.txt;

3

  1. Run SigPlotI2S to convert and plot the I2S samples;
python SigPlotI2S.py -d 16 -c 2 sinewave.txt
  1. Get the resulting waveform.

5

sigploti2s's People

Contributors

lucasssvaz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.