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
/* ---------------------------------------------- | |
このコードが有する機能: | |
・VOICEVOX Coreを利用してテキストから音声を合成する | |
・VOICEVOX Coreの音声合成結果をOpenSiv3DのAudioオブジェクトに変換する | |
このコードを動かすには、OpenSiv3D v0.6.11 と VOICEVOX Coreが必要です。 | |
それぞれのライブラリのインストール方法は以下のリンクを参照してください。 |
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
#include "mainWindow.h" | |
#include <regex> | |
//using namespace ImGui; | |
using namespace sf; | |
/* | |
#include <imgui.h> | |
#include <fstream> |
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
#include <imgui.h> | |
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <algorithm> | |
#include <vector> | |
struct NoteData { | |
int pitch; | |
float start; |
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
#pragma once | |
/** @file | |
* @brief undo redo command class | |
* @author S.F. (Satoshi Fujiwara) | |
*/ | |
#include <stack> | |
namespace sf { | |
namespace model { | |
struct command_manager; |
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
# ビルドスクリプト | |
$current = Get-Location | |
Import-Module 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll' | |
Enter-VsDevShell 9fe08a8b | |
Set-Location ($current.Path + "\windowsDesktop") | |
MSBuild.exe OpenSiv3D.sln | |
Set-Location $current | |
"***** ビルド完了 *****" |
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
const pi = Math.PI; | |
const e = Math.E; | |
// tile座標とズームレベルから緯度経度を求める | |
function tile2latlon(x, y, z) { | |
const lon = (x / 2.0 ** z) * 360 - 180;// # 経度(東経) | |
const mapy = (y / 2.0 ** z) * 2 * pi - pi; | |
const lat = 2 * Math.atan(e ** (- mapy)) * 180 / pi - 90;// # 緯度(北緯) | |
return { lat: lat, lon: lon }; | |
} |
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 T> | |
constexpr bool is_string(){ | |
return std::is_same<char *, typename std::decay< T >::type >::value | |
|| std::is_same< const char *, typename std::decay< T >::type >::value | |
|| std::is_same<std::string, typename std::decay<T>::type>::value; | |
}; | |
template<typename FuncType = std::function<int()>,bool IsReturnValue = false> | |
class FuncWorker : public Napi::AsyncWorker |
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
#include "sqlite3-napi.h" | |
#include "uv.h" | |
#include <iostream> | |
using namespace sqlite3_napi; | |
// --------------------------------------- | |
// Database Implementation | |
// --------------------------------------- |
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
#!/usr/bin/perl | |
# | |
# Markdown -- A text-to-HTML conversion tool for web writers | |
# | |
# Copyright (c) 2004 John Gruber | |
# <http://daringfireball.net/projects/markdown/> | |
# | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>CSS詳細度テスト</title> | |
<style> | |
* { | |
font-size:10px; |
NewerOlder