我正在研究C#4.0/WPF实时频谱分析仪(作为另一个项目的基础).我使用NAudio last版本在声卡上获得实时音频输出,使用WPFSoundVisualizationLib(http://wpfsvl.codeplex.com/)进行频谱分析仪WPF控制.有了这个神奇的工具,工作几乎完成,但它不能正常工作:-(
我有一个功能谱,但信息不是权利,我不明白问题的来源......(我将我的Spectrum与Equalify进行比较,Spotify的频谱/均衡器,我没有相同的行为)
这是我的主要课程:
using System;
using System.Windows;
using WPFSoundVisualizationLib;
namespace MySpectrumAnalyser
{
public partial class MainWindow : Window
{
private RealTimePlayback _playback;
private bool _record;
public MainWindow()
{
InitializeComponent();
this.Topmost = true;
this.Closing += MainWindow_Closing;
this.spectrum.FFTComplexity = FFTDataSize.FFT2048;
this.spectrum.RefreshInterval = 60;
}
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (this._record)
{
this._playback.Stop();
}
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
if (this._playback == null)
{
this._playback = new RealTimePlayback();
this.spectrum.RegisterSoundPlayer(this._playback);
}
if (!this._record)
{
this._playback.Start();
this.Dispatcher.Invoke(new Action(delegate …Run Code Online (Sandbox Code Playgroud) TFS 2015 Update 2带来了Git LFS支持,但是当我尝试将它与Brian Keller VS2015ALM虚拟机(升级到Update 2)一起使用时,我遇到了以下异常:
git-lfs/1.2.0 (GitHub; windows amd64; go 1.6.1; git 386c5d8)
git version 2.8.1.windows.1
$ git-lfs.exe smudge -- Image1.jpg
Error downloading object: Image1.jpg (968bda1e0a17e295e265311f93bc4e631e171
d776d51c6d7a43b52185c82631a)
Your user name must be of the form DOMAIN\user. It is currently brian%!(EXTRA st
ring=string)
goroutine 1 [running]:
github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/lfs/errors.go:566 +0x87
github.com/github/git-lfs/commands.logPanicToWriter(0x1a42c0, 0xc082020020, 0x1b
54a0, 0xc0823ae1a0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:195
+0xf87
github.com/github/git-lfs/commands.logPanic(0x1b54a0, 0xc0823ae1a0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:159
+0x419
github.com/github/git-lfs/commands.handlePanic(0x1b54a0, 0xc0823ae1a0, 0x0, 0x0)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:134
+0x55
github.com/github/git-lfs/commands.LoggedError(0x1b54a0, 0xc0823ae1a0, 0xa25980,
0x21, 0xc082029c88, 0x2, 0x2)
C:/Users/techn/go/src/github.com/github/git-lfs/commands/commands.go:84 …Run Code Online (Sandbox Code Playgroud) 从这个“test.json”文件:
{
"key1": "abc",
"key2": "def",
"key3": "ghi"
}
Run Code Online (Sandbox Code Playgroud)
我可以使用以下命令更新“key2”值:
jq '.key2="123"' test.json
Run Code Online (Sandbox Code Playgroud)
但是,有没有办法使用不区分大小写的密钥过滤器并使此命令有效:
jq '.KeY2="123"' test.json
Run Code Online (Sandbox Code Playgroud)
而且...如果在 JSON 文件中找不到密钥,则什么也不做。默认行为是附加搜索到的键。