Skip to content

Instantly share code, notes, and snippets.

View interstar's full-sized avatar

Phil Jones interstar

View GitHub Profile
@interstar
interstar / microbit_module.py
Last active July 5, 2022 01:46
3 Sound Modes for the BBC Microbit
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) :
@interstar
interstar / longdelay.lua
Last active August 16, 2023 02:30
Long Delay for Lua Protoplug
--[[
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"
@interstar
interstar / bytebeats.pyscript
Created November 26, 2023 17:43
ByteBeats in Edison, Pyscript Edition
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"
@interstar
interstar / bytebeats3.pyscript
Created November 22, 2024 15:59
Bytebeats in Edison 3.0 (much faster than previously because we're eval-ing a lambda)
from enveditor import *
"""
Create bytebeats in Edison.
"""
def makeSample(length, srate, norm, formula):
# Sample rate selection
if srate == 0: