Skip to content

Instantly share code, notes, and snippets.

@teamikl
teamikl / nd2-reaper-multi-rec.md
Created May 20, 2016 20:21
NetDuetto / Reaper マルチトラック録音

NETDUETTO / Reaper マルチトラック録音設定

録音

前準備

  • NetDuetto2
  • Reaper 5.x

Reaper を起動し、新規プロジェクトを作成した状態から開始します。

@teamikl
teamikl / ninjam-server-list.html
Last active May 25, 2016 07:14
NINJAM Server List
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NINJAM Server List</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">
@teamikl
teamikl / TestThreadLock.cpp
Last active December 7, 2015 12:36
Proof direct call block the event loop on main thread
#include <QApplication>
#include <QWidget>
#include <QTextEdit>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>
#include <QDebug>
#include <QThread>
#include <QMutex>
@teamikl
teamikl / note-interval.qml
Last active October 24, 2015 16:45
MuseScore2 plugin - Add note interval as lyrics
import QtQuick 2.0
import MuseScore 1.0
MuseScore {
menuPath: "Plugins.NoteInterval"
/**
* TPC (Tonal pitch class)
* ピッチは5度圏上での距離で比較する
*/
@teamikl
teamikl / coloring-chord-notes.qml
Created October 23, 2015 20:01
coloring chord notes plugin for MuseScore2
/**
* Coloring chord notes
*
* @author: tea <mikl.pudding at gmail dot com>
* @license: MIT
*
*
* 制限事項: 単一のリードシートのみを走査対象とします。
*
* 複数トラックや、2段になったコード表記、2声以上のメロディ、装飾音には対応してません。
@teamikl
teamikl / NDPlay.cs
Last active October 14, 2015 16:48
音素材を検索してNetDuettoで流すユーティリティ (windows用)
/**
* 音素材を検索してNetDuettoで流すユーティリティ
*
* @author tea <mikl.pudding [at] gmail [dot] com>
* @license MIT
*/
namespace Win32
{
using System;
@teamikl
teamikl / extract_rpp_notes.py
Created October 12, 2014 03:31
Extracts text notes from reaper project file
#!/usr/bin/env python3.4
# -*- encode: utf-8 -*-
"""
Extracts text notes from reaper project file
"""
import shlex
import fileinput
@teamikl
teamikl / genSessionTImeline.cs
Created August 12, 2013 09:19
Generate NINJAM session log timeline (ported from Python version) This code is for temporary use.
/**
* Generate NINJAM session log timeline
*
* @author tea <Ikkei.Shimomura@gmail.com>
* @since 2013/08/12
* @version 1.0.0
*/
// XXX: worst memory by string builder, but not much cost for use case.
@teamikl
teamikl / curses_color_sample.rb
Created August 28, 2012 22:04
colored cat -n sample
#!/usr/bin/env ruby
require "curses"
include Curses
module Color
DEFAULT = 1
LINENO = 2
end
@teamikl
teamikl / Metronome Demo
Created February 12, 2012 11:34
1 beat / 1 block, sample paintEvent and update region
# XXX: on this demo, bpi must not zero (width / bpi)
# NOTE: this does NOT support style-sheet.
from PyQt4.QtCore import Qt, QTimer, QPoint, QRect
from PyQt4.QtGui import QApplication, QWidget, QPainter, QBrush, QPen, QColor
class MetronomeView(QWidget):
def __init__(self, bpi, bpm, parent=None):
super(MetronomeView, self).__init__(parent)