(Live real time using text (code) to make music and visuals)
Last week, I discovered Strudel. I was playing around with it and thought: “This would be perfect for Tyrone”. He is/was the main musical artist in our Group.
Strudel REPL is a web-based, live coding environment for creating music, based on the Tidal Cycles pattern language. It allows users to write and edit code in a browser to instantly hear the music it produces, with features like visual feedback and an interactive tutorial to help beginners and experts. The “REPL” stands for Read-Eval-Print Loop, a common term for interactive programming environments where you can type code, and the system immediately evaluates it and prints the result.
I can make some simple patterns, but I discovered that it can be used multiuser with realtime synthesizer named Hydra. I’m better doing visuals, than creating realtime digital music. Check out https://www.henriaanstoot.nl/?s=shaders – for my previous shader programming posts. (I love playing real instruments, let’s keep it that way.)
Hydra video synth is a free, open-source, live-coding environment for creating real-time visuals that runs in a web browser. It uses JavaScript and WebGL to allow users to “patch” together different visual sources and transformations, similar to an analog modular synthesizer, to generate effects like video feedback, generative patterns, and audio-reactive visuals.
It is JavaScript being compiled to WebGL
So using https://flok.cc we can start a multiuser session with realtime live coding.
So the first test session, learning to use Hydra and Strudel together over the internet. Plan is to do a live session for others using a screen projector.
Left Tyrone (Strudel) right me with Hydra.
In the last few days, I made some examples using hydra.
These examples use Microphone for sound reactive, and Webcam for embedded effects. NOTE: These are only in your browser session, nothing is being recorded/stored.
Using a bowden tube (PTFE tube 1mm) with a 3d printed holder. (ptfe is very smooth)
This is a test setup. I’ve removed arms and the flute on the bottom picture using AI. Then printed backpicture and top on sticky paper and stuck it on sturdy heavy paper.
I want to make a moving picture which moves our band members when there is sound (music). (Guitar, Harp, Bagpipes and Flute)
My proof of concept to build an electronic chanter for less than 4 euros.
It uses a Lolin32 Lite and a buzzer. (No libraries needed) (Some wires, thumbtacks and a PVC tube.)
I still have to glue the thumbtacks
Plays accidentals (false fingering) Vibrato Has serial console debugging Need other frequencies? Just edit the source.
CODE
int prevnote = 0;
// Note freq table
int ha = 880;
int hg = 783;
int fs = 739;
int f = 698;
int e = 659;
int d = 587;
int cs = 554;
int c = 523;
int b = 493;
int as = 466;
int la = 440;
int lg = 391;
int mute = 0;
// 8 Bits to note, luckly not 9 fingers :)
// 0 (00000000) = all fingers off = mute
// bottom hand top hand
// 0111 011
// 1
// 01110111 = 119 = E
// 255 (11111111) = all fingers on = lg
// below per 10 all 255 posibilities
// Look at position 175
// custom frequency to get vibrato on D
// using bottom hand middle finger.
int data[] = {
mute,hg,ha,fs,ha,hg,ha,e,ha,hg,ha,
f,ha,hg,ha,d,ha,hg,ha,fs,ha,
hg,ha,e,ha,hg,ha,f,ha,hg,ha,
c,ha,hg,ha,f,ha,hg,ha,e,ha,
hg,ha,f,ha,hg,ha,d,ha,hg,ha,
f,ha,hg,ha,e,ha,hg,ha,f,ha,
hg,ha,b,ha,hg,ha,f,ha,hg,ha,
e,ha,hg,ha,f,ha,hg,ha,d,ha,
hg,ha,f,ha,hg,ha,e,ha,hg,ha,
e,ha,hg,ha,c,ha,hg,ha,f,ha,
hg,ha,e,ha,hg,ha,f,ha,hg,ha,
d,ha,hg,ha,fs,ha,hg,ha,e,ha,
hg,ha,f,ha,hg,ha,la,ha,hg,ha,
f,ha,hg,ha,e,ha,hg,ha,f,ha,
hg,ha,d,ha,hg,ha,f,ha,hg,ha,
e,ha,hg,ha,f,ha,hg,ha,cs,ha,
hg,ha,f,ha,hg,ha,e,ha,hg,ha,
f,ha,hg,ha,580,ha,hg,ha,f,ha,
hg,ha,e,ha,hg,ha,f,ha,hg,ha,
as,ha,hg,ha,f,ha,hg,ha,e,ha,
hg,ha,f,ha,hg,ha,d,ha,hg,ha,
f,ha,hg,ha,e,ha,hg,ha,f,ha,
hg,ha,c,ha,hg,ha,fs,ha,hg,ha,
e,ha,hg,ha,f,ha,hg,ha,d,ha,
hg,ha,fs,ha,hg,ha,e,ha,hg,ha,
fs,ha,hg,ha,lg };
void setup() {
pinMode(14, OUTPUT);
Serial.begin(115200);
delay(1000);
}
void loop() {
int t1=touchRead(4);
int t2=touchRead(2);
int t3=touchRead(15);
int t4=touchRead(13);
int t5=touchRead(12);
int t6=touchRead(27);
int t7=touchRead(33);
int t8=touchRead(32);
int note = 0;
// Debug reading
//Serial.println(t1);
// My readings are near zero and above 50
// So I chose 30 (adjust when needed)
if ( t1 < 30) {
bitSet(note, 0);
}
if ( t2 < 30) {
bitSet(note, 1);
}
if ( t3 < 30) {
bitSet(note, 2);
}
if ( t4 < 30) {
bitSet(note, 3);
}
if ( t5 < 30) {
bitSet(note, 4);
}
if ( t6 < 30) {
bitSet(note, 5);
}
if ( t7 < 30) {
bitSet(note, 6);
}
if ( t8 < 30) {
bitSet(note, 7);
}
//Serial.println(note);
if (note == 0 && note != prevnote) {
noTone(14);
prevnote = 0;
}
if (note != prevnote) {
tone(14,data[note]);
// debug
//Serial.print("Note number : ");
//Serial.println(note);
//Serial.print("Freq : ");
//Serial.println(data[note]);
prevnote = note;
}
}
I Still got 19 posts in draft, I know, but I saw a post on Reddit about tunes being played.
(Only pipe tunes) Only the lists I could find, so incomplete. (No tunes in this list from 2022-now) Some I’ve played for 30+ years, others only a while.
I’m going to rate these soon
1st pipeband – started here at 14 yrs 2nd pipeband – continental grade 2 band 3rd pipeband – 4th grade, teaching 4th pipeband – 4th grade, teaching and piper for the Highland Dancers
A lot of tunes are being played in all bands
Own compositions are on another page
1st Pipeband
1976 Police Tattoo 1st and 2nd
42nd Highlanders
51st highland division, The
Ale is dear, The
Amazing Grace + Marching arrangement
Arrival
Aspen bank
Atholl highlanders
Auld lang Syne 1st & 2nd
Balmoral 1st and 2nd
Banks of the Lossie, The
Battle of Killiecrankie
Battle of the Somme, The
Bloody fields of flanders, The
Bonnie Charlie is noo awa’
Bonnie Galloway
Bonnie lass O’fyvie
Brown haired Maiden, The
Bugle Horn
Cabar Feidh
Caller herrin
Castle Dangerous 1st & 2nd
Cock o’ the north
Corriechollie
Cradle song, The
Crusaders March, The
Cullen bay (Slow,Quick & 2nd)
Desert Storm
Dovecote Park
Dream valley of Glendaruel
Earl of Mansfield, The
Farewell to Nigg
Flett from flotta
Flower of Scotland, The 1st &
Glendaruel highlanders, The
Going Home
Green hills of Tyrol, The
Greenwood side
Heights of dargai, The
Highland cathedral 1st & 2nd
Highland laddie
High road to Gareloch, The
Hills of alva, The
Itchy Fingers
Jimmy Findlater
Killworth hills
Kyle Sku 1st & 2nd
Lady Mackenzie of Fairburn
Lochanside
Loch Duich
Loch Rannoch 1st & 2nd
Marie’s wedding
Meeting of the waters, The
Miss Girdle
MRS. Flora Duncan
Murdo’s wedding
My Home
My lodging’s on the cold groun
Old rustic bridge, The
Paddy’s leather breeches
Piobaireachd of Donald Dubh
Pipe Dreams
Pipers prayer, The
P/M J.K. Cairns 1st,2nd
P/M Robert Martin
Pony Galop
Road to the Isles
Rose of Allandale
Rowan Tree, The
Salute to the Chieftain
Scotland the brave
Scots Royal
Skye boat song
Sweet maid of Glendaruel, The
Swinging highland safari
Teribus
Trumpet Voluntary
wee highland laddie, The
When the battle is over
Wings
Within a mile o’ Edinburgh toon
2nd pipe band
Brown haired Maid
Susan MacLeod
Donald MacLeans Farewell to Oban
Major David Manson
Maggie Cameron
Carradale Bay
The Final Fling
Eirnies Impact
Bells of Dunblane
Finbar Sauders
Grey old lady of Raasay
Jimmy Rollo
Miss drummond of Perth
Black watch polka
Megalomania
Shovel Tongue
Devil in the Kitchen
Hellbound Train
Murrays Fancy
Bulgarian Bandit
Amazing Grace
Highland Cathedral
Penny Cross cottage
Blustering Home
Cutting Bracken
Cullen Bay
Eileen MacDonald
Whitby Runaround
Troys Wedding
Bumpy old road
Desert Storm
Daryl Boyle
Drochaid Luidaid
Easy club reel
Itchy Fingers
Stornoway
Up to the line
Brig Snow
Kitty lie over
Angus McKinnon
General Montgomerey
Dr Ross Welcome
Cabar Feidh
Accordion Man
Wings
Lord Lovats Lament
1976 Police Tattoo
Rowan Tree
Crusaders March
Scotland the Brave
Lochanside
Balmoral
PM JK Cairns
Collins Cattle
When the battle is over
Green hills of Tyrol
Brown Haired maiden
Highroad to Gairloch
Highland Laddie
Makays Farewell
Johnny Cope
3rd pipe band
Skye boat song
Brown haired maiden
Highland Cathedral
Highroad to Gareloch
Loudons wood and braes
Tail Toddle
Stumpie
Highroad to Linton
Hills of Caithness
The steamboat
Kenmure Lads
Morag of Dunvegan
Badge of Scotland
Lord Lovats Lament
Glendaruel Highlanders
48th Highlanders of Canada
Highland Laddie
Colonel Robertson
Green Hills of Tyrol
When the battle is over
Lochanside
Magersfontein
Scots wha hae
March for Gerrit Ham
Flower of Scotland
Amazing Grace
Wings
Barren rocks of Aden
Wilhelmus
Flowers of the Forrest
Lochaber no more
Morag of Dunvegan
4th pipe band
Argyll Broadswords Set (Piper for the dancers)
Flora MacDonalds Fancy Set (Piper for the dancers)
Scottish Lilt (Piper for the dancers)
Seann Truibhas (Piper for the dancers)
Highland Fling Set (Piper for the dancers)
Sword dance (Piper for the dancers)
Accordeon Man
Amazing Grace
Auld Lang Syne
Battle of the Somme
Bonnie Dundee
Bonnie Lass o’ Fyvie
Brown Haired Maiden
Cock ‘o the North
Coline`s Persuasion
Conquest of Paradise
Cullen Bay
Dark Island
Farewell to Camraw
Flower of Scotland
Glasgow City Police Pipers
Glendaruel Highlanders
Going Home
Green hills of Tyrol, The
Highland Cathedral
Highland Laddie
Highroad to Gairloch
Itchy Fingers
Killworth Hills
Loch Lomond
Millenium Prayer for Peace
Mrs Flora Duncan
Mull of Kintyre
Murdos Wedding
My Home
Old Rustic Bridge
Rose of Allandale
Rowan Tree, The
Scotland the Brave
Skye Boat Song
Swinging Highland Safari
Teribus
When the Battle is Over
Wings
Within a Mile o’ Edinburgh Toon
Tapsalteerie folkband
Ass in the Graveyard
Sandy’s new Chanter
Boys of Brittany
Flower of Scotland
Death of a Spacepiper
Irish Washerwomen
Pumkin’s Fancy, The
Paddy’s Leather Breeches
Itchy Fingers
Ebb Tide
Atholl Highlanders
Jolly Beggarman
Roses o’ Prince Charlie, The
Song for a smallpipe
Brest St. Marc
Blackbird
Masons Apron
The Haunting
Nae Bother Folkband
Bulgarian Red
Busindre Reel
Cairn Water
Caledonia
Engine Room
Farewell to Uist / The Lochaber Badger
Hector the Hero
Hoolit / Electric Chopsticks
King’s Shilling / Highland Laddie
Maggie West’s Waltz
Morag’s Jig / Joe Wilson / Cork Hill
Morrison’s Jig / Drowsy Maggie
Passing Places / Road East / Didi’s Tune
Pumpkin’s Fancy / The High Drive
Trip to Ireland / Jutland
Waterbound
Journey to the Centre of the Celts
Return from Finegal / Chanter’s Song
The butterfly / Lochaber Dance
Breizh / Seagull
Terrortime
Sir john Fenwick (/ Sir Sidney Smit)
Turning Away (zang)
Devil in the Kitchen / Andy Renwicks Favourite Ferret
I was making a re-arrangement of a bagpipe tune. Designing a blender 3D printed light box. Cooking a Mexican BBQ dinner. Visiting a textile place with old and new weaving looms. (Which gave me some great ideas). And working on my 68000 computer.
A great weekend.
No embellishments yet, and no lights in de blender logo.
My little record player project is also in the picture, I need to re-print the parts using my new printer!