- ピーク値とRMS値が表示できる。
- ピークホールド時間の設定や、RMS値を集計する区間の長さの設定、メーター値の減少速度を設定する仕組みはない。
- 2種類の表示モードがあるが、どちらも信号のピーク値とRMS値(二乗平均平方根。区間の平均エネルギーを表す。ピーク値と異なり、実際の音量感に近い値になる。)の両方が表示される。
- トラックのボリュームコントロールのところに表示されている通常のレベルメーターの他に、大きく見やすいBit Meterと呼ばれるレベルメーターが用意されている。 - 表示される内容はどちらも同じ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms724429(v=vs.85).aspx | |
#include <vector> | |
#include <cstdio> | |
#include <windows.h> | |
std::wstring GetFullVersionString() | |
{ | |
struct LANGCODEPAGE { | |
WORD wLang; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. /コマンドで検索 | |
2. Shift-vやCtrl-vで検索 | |
3. :コマンドに移行して、:'<,'>s/の状態で | |
4. Ctrl-r /を入力して直前の検索キーワードを入力 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lldb) settings show target.process.thread.step-avoid-regexp | |
target.process.thread.step-avoid-regexp (regex) = ^std:: | |
(lldb) settings set target.process.thread.step-avoid-regexp "" | |
http://stackoverflow.com/questions/19413181/step-into-stl-sources-in-xcode-5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.codeproject.com/Articles/9600/Windows-SetThreadLocale-and-CRT-setlocale | |
// 0x0411 -> "japanese_Japan.932" | |
// 0x041E -> "Thai_Thailand.874" | |
// 0x0808 -> "Chinese (Simplified)_China.936" | |
std::string make_locale_id_string(LCID locale_id) | |
{ | |
std::string ret; | |
std::array<char, 128> buf; | |
buf.fill(0); |
OSXでのURLスキームはLaunch Servicesという仕組みによって実装されている。
アプリケーション作成時にInfo.plistに適切にCFBundleURLTypesのデータを設定しておけば、アプリケーションをインストール(アプリケーションを"アプリケーション"ディレクトリにコピー)した時にLaunch Servicesがそれを検知し、Info.plistからURLスキームの設定を読み込んで、専用のデータベース("Launch Services Database")に設定を保持する。
なので、アプリケーションのインストール後はmy-app-scheme://myapp/
のようにリンクを作成してそれをオープンするだけで対象のアプリケーションが起動できる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Boost.Timerを使用しているので、Boost.SystemとBoost.Timerのライブラリをリンク時に指定すること。 | |
// ex) clang++ -std=c++14 optimization_test.cpp -O3 -lboost_system-mt -lboost_timer-mt | |
// 出来上がったバイナリを実行する時に、関数名をそのまま引数に渡して呼び出すと、テスト用の関数が実行される | |
// ex) ./a.out false_sharing_test | |
#include <algorithm> | |
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
#include <memory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void WaveformComponent::sliderValueChanged (juce::Slider *slider) | |
{ | |
if(slider == &zoom_slider_) { | |
double v = slider->getValue(); | |
int const size_min = 64; //! 2^6 | |
int const size_max = 16384; //! 2^14 | |
//! スライダーの感度を調整する変数。 | |
//! 値を大きくするほど、center位置でのズーム率が下がる | |
double const amount = JUCE_LIVE_CONSTANT(1024); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, table, div, p, dl { | |
font: 300 14px/22px lato,sans-serif; | |
} | |
.title { | |
font: 200 14px/28px lato,sans-serif; | |
font-size: 150%; | |
font-weight: bold; | |
margin: 10px 2px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<class F, class Ret = void> | |
struct Apply : boost::static_visitor<Ret> | |
{ | |
Apply(F f) : f_(std::move(f)) {} | |
template<class T> | |
Ret operator()(T &t) { return f_(t); } | |
template<class T> | |
Ret operator()(T &t) const { return f_(t); } |