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
from enveditor import * | |
""" | |
Create bytebeats in FL Studio's Edison editor. Change the formula in generator(t) to change the actual bytebeat | |
This script should be called something like bytebeats.pyscript and placed in | |
"C:\Users\<USERNAME>\Documents\Image-Line\FL Studio\Settings\Audio scripts" |
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
--[[ | |
name: Delay Line | |
description: Simple delay line effect with DC removal | |
author: osar.fr (adapted by Phil Jones ) | |
See : https://www.youtube.com/watch?v=PEUZZCpzkWo | |
--]] | |
require "include/protoplug" |
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
import speech | |
import random | |
import music | |
import time | |
import math | |
from microbit import pin1, pin2, display, button_a, button_b, sleep | |
# See https://www.youtube.com/watch?v=DOlMiNbmLWg | |
def scale(x, lo1, hi1, lo2, hi2) : |
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
--[[ | |
name: square demo 5 | |
description: > generate a squarewave with pulse width control and filter | |
author: synaesmedia | |
--]] | |
require "include/protoplug" | |
local makeFilter = require "include/dsp/cookbook filters" |
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
# UK Drill Beat in Sonic Pi | |
# Tutorial : https://www.youtube.com/watch?v=ELA339I4NwY | |
# Note : this Sonic Pi Sketch relies on you having certain drill type drum samples | |
# Put them in the directory referenced in the variable called sampleKit | |
# you'll need samples called hat.wav, hat2.wav, kick.wav, snare.wav and noise.wav | |
define :flatfifth do |c| |
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
print(""" | |
# Scope demo in Python | |
# the x bound in the scope of f is visible within y | |
# but is not the same as the x bound at the global scope | |
x = 4 | |
y = 3 | |
def f(x) : | |
def g(y) : |
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
--[[ | |
name: square demo | |
description: > Square wave synth with pulse width control & ADSR envelopes | |
author: synaesmedia | |
see : https://www.youtube.com/watch?v=eBLbpXHaYIE | |
Protoplug : https://github.com/pac-dev/protoplug | |
--]] | |
require "include/protoplug" |
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
--[[ | |
name: square demo | |
description: > generate a squarewave with pulse width control | |
author: synaesmedia | |
See https://www.youtube.com/watch?v=8kXs8XIyq1U | |
--]] | |
require "include/protoplug" |
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
## Japanese chord progression | |
## Based on https://www.youtube.com/watch?v=yKV58VVGV9k | |
## See https://www.youtube.com/watch?v=ADr8hrjpKbo | |
define :oneChord do | tonic, mode, deg | | |
majorKeyTriads = [:M,:m,:m,:M,:M,:m,:dim] | |
minorKeyTriads = [:m,:dim,:M,:m,:m,:M,:M] | |
majorKey7s = [:M7,:m7,:m7,:M7,:dom7,:m7,:halfdiminished] | |
minorKey7s = [:m7,:halfdiminished,:M7,:m7,:m7,:M7,:dom7] | |
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
import sys, re | |
# Run like this : | |
# python3 rectext.py toplevel.txt | |
# | |
# include statement looks like this | |
# @include fname.txt | |
def slurp(fName) : |
NewerOlder