Skip to content

Instantly share code, notes, and snippets.

View iani's full-sized avatar
💭
sc-hacks, sonarts_compmus_2020, emacs-prelude-personal-arch, sc-hacks-redux, dlb

Iannis Zannos iani

💭
sc-hacks, sonarts_compmus_2020, emacs-prelude-personal-arch, sc-hacks-redux, dlb
View GitHub Profile
@iani
iani / arduino_read_accell_raw_220517.java
Created May 17, 2022 07:10
Arduino uno accelerometer test: Read 6 raw integers from registers and write them to serial port
#include <Wire.h> // Used for I2C
// The SparkFun breakout board defaults to 1, set to 0 if SA0 jumper on the bottom of the board is set
#define MMA8452_ADDRESS 0x1D // 0x1D if SA0 is high, 0x1C if low
//Define a few of the registers that we will be accessing on the MMA8452
#define OUT_X_MSB 0x01
#define XYZ_DATA_CFG 0x0E
#define WHO_AM_I 0x0D
@iani
iani / arduinotestintegerwrite220513.java
Created May 13, 2022 17:10
Write some integers to serial port to test how they are read in SuperCollider
int testval;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
testval = 1;
@iani
iani / sc_path_variable.scd
Created February 9, 2021 13:42
In SuperCollider, help a user to load the files of a piece on their own computer with their own path

// NOTE: CHANGE /users/nikos/ to your own selected folder. ~soundRoot = "/users/nikos/"; // the user should set this path to the folder which contains the sounds of the piece.

Pathname(~soundRoot +/+ "Folder1")

@iani
iani / BresenhamEuclidean_SuperCollider.scd
Last active January 18, 2021 12:28
Bresenham Implementation of the Euclidean Rhythm Algorithm in SuperCollider
@iani
iani / pbind_score.scd
Last active January 16, 2021 06:53
simple pbind-score playing function

//: 16 Jan 2021 15:35 /* Simple function for playing a timed sequence of pbinds, with example.

In 2 steps:

  1. Define the function for playing pbinds.
  2. Use the function for playing a sequence of pbinds

Note that once the function has been defined and stored, it can be used any number of times to play different scores.

@iani
iani / ianitestjist.txt
Created December 9, 2020 17:27
test just for sonarts class
This is my code ....
@iani
iani / togiagitlab.sh
Created July 10, 2019 08:20
create repo for phd of e.t on gitlab
git clone git@gitlab.com:iani/togia.git
cd togia
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
@iani
iani / SonifyTaoSC.scd
Last active June 14, 2019 18:05
sonify text - very very simple example

//: a text: ( { var text; text = "The tao that can be told is not the eternal Tao The name that can be named is not the eternal Name. The unnamable is the eternally real. Naming is the origin

@iani
iani / pollugen.scd
Last active June 7, 2019 16:16
polling kr ugens to send to midi
// =====================================================================
// SuperCollider Workspace
// =====================================================================
//:
{
var src;
src = LFSaw.kr(0.2).range(360, 1000);
SendTrig.kr(Impulse.kr(10), 0, src);
}.play;
//: