From: Gabriel Dunne Date: Fri, 7 Jul 2023 05:16:56 +0000 (-0700) Subject: Updating to Python X-Git-Url: https://git.quilime.com/?a=commitdiff_plain;h=83628d56b979c4697c7f4f695f599487830e4eeb;p=quilime.com.git Updating to Python --- diff --git a/_posts/cli/2013-09-16-gen_semitones.md b/_posts/cli/2013-09-16-gen_semitones.md index 7b0ffcf..c770eec 100644 --- a/_posts/cli/2013-09-16-gen_semitones.md +++ b/_posts/cli/2013-09-16-gen_semitones.md @@ -2,17 +2,18 @@ title: Generate Semitones date: 2013-09-16 category: cli -tags: perl +tags: python audio --- -```perl -#!/bin/perl -my $m = 2 ** (1/12); -foreach my $s (0..12) { - print int(0.5 + 1000 * $m ** $s-1000), "\n"; -} +```python +# python +m = 2 ** (1/12) +for s in range(13): + print(int(0.5 + 1000 * m ** s - 1000)) +``` -prints: +```bash +# output semitone - fine 0 - 0 1 - 59 @@ -29,6 +30,3 @@ semitone - fine 12 - 1000 ``` -[gist](https://gist.github.com/quilime/59fc3af7c5f30ca2399f#file-semitones-pl) - - diff --git a/css/highlight.css b/css/highlight.css index d46bd29..4bee9b3 100644 --- a/css/highlight.css +++ b/css/highlight.css @@ -39,7 +39,7 @@ color: #403d3d; } .highlight .go { - color: #403d3d; + color: #4fa; } .highlight .gp { color: #66d9ef; diff --git a/css/style.css b/css/style.css index 9bc126f..61f89e4 100644 --- a/css/style.css +++ b/css/style.css @@ -98,9 +98,8 @@ blockquote { pre, code { color:#4fa; line-height:1.4em; - font-size:14px; font-family:menlo, monaco, "Lucida Console", monospace; - padding:1px 5px 2px; +/* padding:1px 5px 2px;*/ background:#303030; border-radius:4px; text-indent: 0; @@ -113,7 +112,6 @@ pre { overflow: auto; } code { -padding:2px 6px; } table, td, tr { margin:0;