首页 \ 问答 \ 如何在C ++中使用fft生成音频频谱?(How to generate the audio spectrum using fft in C++? [closed])

如何在C ++中使用fft生成音频频谱?(How to generate the audio spectrum using fft in C++? [closed])

我想生成一个mp3音频文件的音频频谱(如该视频所示 )。 基本上这个问题需要计算音频信号的fft。 我如何在C / C ++中编程?

我已经看过一些开源库,如FFTW ,我真的不知道如何使用这些来解决我的问题。 任何帮助将不胜感激。 提前致谢!


I want to generate an audio spectrum (as seen in this video) of a mp3 audio file. Basically this problem requires calculating the fft of the audio signal. How do I program this in C/C++?

I've looked at a couple of open source libraries such as FFTW and I really don't know how to use these for my problem. Any help would be greatly appreciated. Thanks in advance!


原文:https://stackoverflow.com/questions/4675457
更新时间:2023-01-02 08:01

最满意答案

首先是安装samba包,装好以后用vi修改/etc/samba/smb.conf文件 跳到文件的最后一行插入以下内容

[public]

path = /xxx

public = yes

writeable = yes

其中path后面输入你想要共享的目录的绝对路径,然后创建samba用户

#adduser smb

#smbpasswd -a smb

输入两次密码后就完成了

最后启动samba的服务

#service smb start

然后你就可以在windows下面访问了用户名和密码是你刚才建立的那个smb用户

其他回答

1、安装samba包,注意最少3个包

2、创建smb账户

前提是你有个同名的普通账户。

比如,你有个普通账户:bob

那么,还要这样:

smbpasswd -a bob

这个账户才能登陆

3、启动服务就可以了

4、在win中使用这个账户访问,可读可写

上面说得是详细,但乱了点

简单点这样

#vi /etc/samba/smb.conf

添加以下内容:

[public]

comment = public folder

path = /home/public

write list = user

可以这个很简单的 把SAMBA的配置文件改改就好了

好像是去掉几个注视 修改一下权限 好久不玩了 记得不是很清楚了

相关问答

更多
  • 你要共享的文件夹为: /homes 首先创建这个文件夹 mkdir /homes/ chmod 777 /homes 备份并编辑smb.conf允许网络用户访问 sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf 搜寻这一行文字 ; security = user 用下面这几行取代 security = user username map = /etc/samba/smbusers 将下列 ...
  • 基本上,你有两个方法可选: VMWare自己可以把虚机中的硬盘映射到主机中的一个文件夹或网络文件夹,具体是在VM的设定里——Option——Shared Folder, 选择Always enabled,再Add就可以用向导来设置了。 然后,如果你的虚机和主机在一个局域网里,你可以在linux里面配置Samba服务器来和windows共享文件,配置很简单,查查相关文件就可以了
  • ava获取远程文件的方式在我的开发过程中使用过两种 1。通过http请求进行静态资源,首先确定文件的URL地址,然后通过URLConnection进行连接,然后通过读取连接中返回的InputStream,再通过文件输出流FileOutputStream进行存储(下载)。 2.通过FTP或SFTP进行远程文件的下载,具体实现有很多第三方的包,百度即可。
  • groupadd salers groupadd managers 建立用户 useradd -G salers -N mary 再把mary加入经理组 usermod -a -G mary managers 建立 salers 文件夹 mkdir -p /share/sale_data 改变用户 chown mary /share/sale_data 改变组 chgrp salers /share/sale_data 改变权限 chmod 2755 /share/sale_data 增加samba 用户 ...
  • linux 在 home 下为每一个用户创建他们自己的文件夹,然后编辑: passwd 文件,为他们指定这个文件夹,指定属主就是用户,权限为 777 。这样,每个人登录后都可以看见自己的文件夹,而其他人是看不到的。
  • 首先是安装samba包,装好以后用vi修改/etc/samba/smb.conf文件 跳到文件的最后一行插入以下内容 [public] path = /xxx public = yes writeable = yes 其中path后面输入你想要共享的目录的绝对路径,然后创建samba用户 #adduser smb #smbpasswd -a smb 输入两次密码后就完成了 最后启动samba的服务 #service smb start 然后你就可以在windows下面访问了用户名和密码是你刚才建立的那个sm ...
  • 1.首先要打开nfs和smb服务:   打开终端,root权限登陆,输入命令:setup   选择nfs和smb项,去掉iptables项(防火墙),按空格键可选择或去掉服务项   2.启动nfs和smb服务:   输入命令:   service nfs restart   service smb restart   3.建立或选择一个smb用户,这样就可以把一个linux下的用户目录共享给windows:   输入命令:   smbpasswd -a calvin   提示要求输入密码:New SMB p ...
  • Git适用于文件。 按照你描述它的方式,你将在你的Windows PC上运行git - 事实上文件实际上是通过网络访问而不是直接是git可能甚至不知道的东西。 只要这是访问该共享的唯一机器,它应该没问题。 但这并不是你应该如何使用git。 它有自己的机制来推动/拉动机器之间的变化; 因此,除非您正在运行一个有趣的无驱动设置,否则您应该考虑将工作目录存储在正在编辑它的机器上。 特别是如果有可能从linux机器上访问文件(混合版本控制访问多台机器之间的同一工作目录总是一个坏主意,更不用说多个操作系统之间。 Gi ...
  • 在linux samba配置(smb.conf)中有助于禁用机会锁(oplocks)。 使用OpLocks禁用客户端计算机上的测试程序获取更新内容而不进行缓存。 Figures out disabling opportunistic locks (oplocks) in linux samba configuration (smb.conf) helps. With OpLocks disabled test program on client machine gets updated content wi ...
  • 我终于找到了问题。 这不是来自Sublime Text。 搜索工作但非常慢。 这是由于samba共享性能,当我在一个大文件夹中搜索一个字符串。 samba进程消耗大量CPU并且远程服务器性能下降。 我将尝试另一种在linux和windows之间同步文件的方法。 I finally find the problem. This does not come from Sublime Text. The search works but is very very slow. This is due to samb ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)