Skip to content

Instantly share code, notes, and snippets.

kn1kn1 kn1kn1

Block or report user

Report or block kn1kn1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kn1kn1
kn1kn1 / spotlight.md
Last active Jul 12, 2019
Spotlight メニューのキーボードショートカットの変更
View spotlight.md

Spotlight メニューのキーボードショートカットの変更

Spotlight を起動するキーボードショートカットをctrl-英数にする方法

~/Library/Preferences/com.apple.symbolichotkeys.plist

64のvalue - parameters - item 149(スペースキー)から102(英数キー)に変更する

com apple symbolichotkeys plist

View redash_refresh.R
# cf. https://gist.github.com/arikfr/e3e434d8cfd7f331d499ccf351abbff9
library(httr)
get_fresh_query_result <-
function(redash_url,
query_id,
user_api_key,
params) {
poll_job <- function(redash_url, job_id) {
View RVIX.orca
.1R8.............................................................
aV4..............................................................
.................................................................
.Va..............................................................
.4I8.............................................................
..3XE............................................................
............E...E.;13Cff.........................................
.............E....;03Dff.........................................
.........E.E...E..;23Eff.........................................
...E...E.........E;03Fff.........................................
@kn1kn1
kn1kn1 / tidalLogger.scd
Created Mar 23, 2019
Logging TidalCycles OSC messages via SuperCollider
View tidalLogger.scd
// cf. https://gist.github.com/tado/a62f8aa794629e34dc6325fa6c1fd82c
SuperDirt.start
(
OSCdef(\tidalplay2, {
arg msg;
msg.postln;
}, '/play2', n);
)
View A Young Person's Guide to Rockstar.md

(この記事はFarmnote Advent Calendar 21 日目の記事です)

札幌オフィスの金井(@kn1kn1)です。主にFarmnote ColorのETLを担当しています。

私にとっての2018年は、RubyKaigiでの登壇Algorave Tokyoへの出演があり、そして何よりも第二子誕生があって多忙な日々でした。関係した皆様に感謝致します。

さて、アドベントカレンダーということですが、諸々の都合(主に私の時間の都合)で技術的にゆるい話題になりました。きちんとした内容の記事をご所望の方は、ぜひ他のメンバーのエントリーをどうぞ。

Rockstar

@kn1kn1
kn1kn1 / sp-print-numbers.rb
Last active Sep 26, 2018
sp-print-numbers.rb
View sp-print-numbers.rb
puts "num of chords: #{chord_names.size}"
puts "num of scales: #{scale_names.size}"
puts "num of samples: #{sample_groups.reduce(0){|acc, g| acc + sample_names(g).size}}"
puts "num of effects: #{fx_names.size}"
View loop_chop.rb
live_loop :l1 do
loop_chop(:loop_mehackit2, 4, 5, 1.0, 1.5, true)
end
def loop_chop(loop_name, prob_chop = 0, prob_rev = 0, pitch_shift_mix = 0.0, amp = 1.0, pick = false, rate = 1.0)
dur = sample_duration(loop_name) * rate
onsets = sample_buffer(loop_name).onset_slices
onsets = onsets.shuffle if pick
onsets.each do |onset|
puts "onset: #{onset}"
@kn1kn1
kn1kn1 / receiver.rb
Last active Aug 31, 2017
SP3 remote OSC sync experiment
View receiver.rb
use_real_time
sync "/osc/h"
sleep 0.5
live_loop :receiver do
sync "/osc/h"
sample :bd_haus
sleep 0.1
end
View petal-autocoder.rb
require "~/github/petal/petal"
use_fx_with_petal false
spc = get_seconds_per_cycle
s = spc / 2.0
use_random_seed 10
live_loop :od1 do
sn = ["less","cp","ades3","d","sid","sd","rs"].choose
You can’t perform that action at this time.