Git Product home page Git Product logo

frequency's Introduction

Frequency

simple frequency analyzer for linux 程序整体的设计比较简单,如下图所示,由三个组成部分,其中箭头所指是数据的流动方向。 SampleProducer负责对声音进行采集的模块,采集到的数据交给SoundTransformer进行处理,处理完成的数据最终交给FrequencyDisplay进行显示。 程序中SampleProducer使用了gstreamer(http://gstreamer.freedesktop.org/)对音频数据进行采集, 因此不必再通过最原始的alsa库获取声音,gstreamer抽象出的管道和插件的概念很符合视音频数据的流的特征, 其api使用起来也很方便。SoundTransformer主要实现了快速傅立叶转换功能,将模拟数据转换为可以显示的离散型数据。 FrequencyDisplay使用了gdk的2d矢量绘图库cairo(http://cairographics.org/)进行绘图。 在实现中为auidosrc注册了一个回调函数,每当有新的数据生成就调用transformer的进行转换, 同时在FrequencyDisplay中注册了一个定时器,每隔一定时间进行重新绘图,动态显示声音的变化。

image

frequency's People

Contributors

casualfish avatar

Stargazers

 avatar  avatar

Watchers

 avatar

frequency's Issues

关于应用场景

大佬,这个项目的应用场景是什么?是音频频谱分析吗 类似音乐软件上的频谱跳动?

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.