Skip to content

Instantly share code, notes, and snippets.

View uliska's full-sized avatar
💭
I may be slow to respond.

Urs Liska uliska

💭
I may be slow to respond.
  • Germany
View GitHub Profile
@uliska
uliska / geheimschrift.py
Last active September 17, 2017 18:12
Drehscheiben-Geheimschrift
#/usr/bin/env python3
in_str = input('Satz in Geheimschrift eingeben: ').upper()
for offs in range(1, 26):
print('A' + chr(65 + offs) + ': ', end='')
for c in in_str:
if c == ' ':
print(' ', end='')
continue
@uliska
uliska / view-man
Last active September 13, 2017 06:48
View manpages as PDF and optionally create them before
#!/bin/bash
# convert a manpage to PDF
echo
echo "view-man"
echo "Open a manpage as PDF"
echo
if (( $# == 0 ))
then
@uliska
uliska / ratio-to-cent-calculations.ly
Last active November 26, 2016 14:30
Underlying calculations to convert a frequency ratio in a pair of chromatic scale steps and cent deviation
\version "2.19.50"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic Caculation Example for "Just Intonation with LilyPond" paper
%
% This file is self-contained to be compiled with recent versions
% of LilyPond's 2.19 development version or later. It will not work
% with LilyPond 2.18.
% But as it only contains function definitions there is no real use
% in compiling it yet.
@uliska
uliska / ji-notation-with-package.ly
Created November 21, 2016 15:53
Display Just Intonation pitches with LilyPond and the openLilyLIb/ji package
\version "2.19.50"
%
% Examples for pitches in Just Intonation using the openLilyLib/ji package.
% In order to compile this file with LilyPond 2.19 (2.18 does *not* work)
% the oll-core and the ji packages have to be installed from
% https://github.com/openlilylib.
%
% Installing works by downloading or cloning the repostories from
% https://github.com/openlilylib/oll-core and
@uliska
uliska / basic-notation-with-fundamental.ly
Created November 21, 2016 15:13
Display simple pitches in Just Intonation, optionally specifying fundamental with the note encoding
\version "2.19.50"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic Notation Example for "Just Intonation with LilyPond" paper
%
% This file is self-contained to be compiled with recent versions
% of LilyPond's 2.19 development version or later. It will not work
% with LilyPond 2.18.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@uliska
uliska / basic-notation.ly
Created November 21, 2016 15:00
Displaying basic Just Intonation pitches
\version "2.19.50"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Basic Notation Example for "Just Intonation with LilyPond" paper
%
% This file is self-contained to be compiled with recent versions
% of LilyPond's 2.19 development version or later. It will not work
% with LilyPond 2.18.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@uliska
uliska / edition-mods.ily
Last active August 29, 2015 14:22
Snippet of complex metrics
% Modifiers for the Ferneyhough example.
% Six individual modifications are defined in this separate file
% and can be applied together or individually.
% Mod 1:
% Add some padding to the metronome mark.
% This is actually to work around a known bug
% (that appears with the cross-staff beams here)
\editionMod one 1 0/4 default.Staff.A
@uliska
uliska / gist:3e9647cd4be50550ca36
Last active August 29, 2015 14:22
Supported clefs in LilyPond
\version "2.19.20"
\paper {
indent = 0\cm
ragged-right = ##t
}
{
\clef G
c'1 ^\markup "G"
@uliska
uliska / gist:5a58564f433747b94105
Last active August 29, 2015 14:21
Align grace notes between voices
\version "2.19.20"
music = \relative e''' {
r8 e \tuplet 3/2 { des b g }
a4 \grace { a16 f } cis8 e
}
\score {
\new Staff <<
{
@uliska
uliska / find-forks.py
Last active August 29, 2015 14:13 — forked from akumria/find-forks.py
#!/usr/bin/env python
import os
import urllib2
import json
import subprocess
user=None
repo=None