GithubHelp home page GithubHelp logo

Comments (7)

bogerchan avatar bogerchan commented on July 28, 2024

Demo 里的录音情况只返回了 wave 波形数据,没有搞 fft ,有些效果是用 fft 数据接口的,在 Demo 里把 fft 的接口适配下就有数据。:)

from nier-visualizer.

Liebesgruppe avatar Liebesgruppe commented on July 28, 2024

@bogerchan 好的,感谢回复 :)

from nier-visualizer.

pys200603027 avatar pys200603027 commented on July 28, 2024

你好作者,感想提供这个库,关于录音情况没有动画的问题

//没有效果产生
ColumnarType1Renderer

我做了如下修改
NierVisualizerManager

fetchWaveData()?.apply {
                        val waveBuffer = mWaveBuffer ?: return@apply
                        if (size != waveBuffer.size) {
                            throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.")
                        }
                        System.arraycopy(this, 0, waveBuffer, 0, size)
                        Log.d("123","updateWaveData")
                        mRenderer.updateWaveData(waveBuffer)
                    }

但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值

请问我该如何处理?

from nier-visualizer.

pys200603027 avatar pys200603027 commented on July 28, 2024

补充

ColumnarType1Renderer 类型是
override fun getInputDataType() = IRenderer.DataType.WAVE

按照您上述的“描述Demo 里的录音情况只返回了 wave 波形数据”
ColumnarType1Renderer应该是可以做出动画效果的

from nier-visualizer.

bogerchan avatar bogerchan commented on July 28, 2024

你好作者,感想提供这个库,关于录音情况没有动画的问题

//没有效果产生
ColumnarType1Renderer

我做了如下修改
NierVisualizerManager

fetchWaveData()?.apply {
                        val waveBuffer = mWaveBuffer ?: return@apply
                        if (size != waveBuffer.size) {
                            throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.")
                        }
                        System.arraycopy(this, 0, waveBuffer, 0, size)
                        Log.d("123","updateWaveData")
                        mRenderer.updateWaveData(waveBuffer)
                    }

但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值

请问我该如何处理?

感谢老铁对该项目的支持,这个问题是个 Bug,我已经在 v0.1.3 版本上修复好啦,重新 Pull 下 master 分支应该就能看到修复后的代码,如有问题请继续与我联系,:D,具体修复代码:4d7bded

from nier-visualizer.

pys200603027 avatar pys200603027 commented on July 28, 2024

你好作者,感想提供这个库,关于录音情况没有动画的问题

//没有效果产生
ColumnarType1Renderer

我做了如下修改
NierVisualizerManager

fetchWaveData()?.apply {
                        val waveBuffer = mWaveBuffer ?: return@apply
                        if (size != waveBuffer.size) {
                            throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.")
                        }
                        System.arraycopy(this, 0, waveBuffer, 0, size)
                        Log.d("123","updateWaveData")
                        mRenderer.updateWaveData(waveBuffer)
                    }

但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值
请问我该如何处理?

感谢老铁对该项目的支持,这个问题是个 Bug,我已经在 v0.1.3 版本上修复好啦,重新 Pull 下 master 分支应该就能看到修复后的代码,如有问题请继续与我联系,:D,具体修复代码:4d7bded

太棒了,亲测有效,感想作者

from nier-visualizer.

bogerchan avatar bogerchan commented on July 28, 2024

客气。:D

from nier-visualizer.

Related Issues (20)

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.