Skip to content

Commit

Permalink
test 291
Browse files Browse the repository at this point in the history
  • Loading branch information
lee2sman committed Mar 18, 2024
1 parent 94833e6 commit 0e8a267
Show file tree
Hide file tree
Showing 29 changed files with 205 additions and 0 deletions.
Binary file not shown.
Binary file added 291/crackle.mp3
Binary file not shown.
Binary file added 291/cut.mp4
Binary file not shown.
Binary file added 291/farm.mp3
Binary file not shown.
9 changes: 9 additions & 0 deletions 291/fonts/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

This font is made by APlaPi.
You MUST NOT sell, rent, license or redistribute the font without my explicit permission.
If you need a license feel free to ask. For any other information e-mail me at [email protected]

- -- Donations will be welcome and very much appreciated. -- -

Thank you
APlaPi
Binary file added 291/fonts/Vintage Avalanche Black.otf
Binary file not shown.
Binary file added 291/fonts/Vintage Avalanche.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/fonts/avalanche.otf
Binary file not shown.
Binary file added 291/fonts/vintage_avalanche.zip
Binary file not shown.
23 changes: 23 additions & 0 deletions 291/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>catskills radio</title>
<script src="../lib/p5.min.js"></script>
<script src="../lib/addons/p5.sound.min.js"></script>
<script src="../lib/addons/p5.play.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>


<script src="sketch.js"></script>
<img id='tuner1' src='snd/knob.png' alt='radio power button'>
<img id='tuner2' src='snd/knob.png' alt='radio power button'>
<img id='tuner3' src='snd/knob.png' alt='radio power button'>
<img id='autoplay' src='snd/button-off.png' alt='autoplay button'>
<p id='channel1'>Chants Yiddish de Russie - Melodia / Le Chant Du Monde</p>
<p id='channel2'>Polish numbers station 10.33Mhz 03/10/2019</p>
<p id='channel3'>Polish Farm - Konarzyce, Powiat Śremski, Greater Poland Voivodeship, Poland </p>
<p></p>
</body>
</html>
Binary file added 291/knob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/knob.png~
Binary file not shown.
Binary file added 291/output.mp4
Binary file not shown.
Binary file added 291/polish.mp3
Binary file not shown.
Binary file added 291/radio.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/radio.mp4
Binary file not shown.
133 changes: 133 additions & 0 deletions 291/sketch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
let crackle, radio_static, songs, polish, farm
let started = false
let radio_image
let depressed = false
function preload() {
crackle=loadSound("crackle.mp3")
radio_static=loadSound("static.mp3")
songs=loadSound("yiddish-songs.mp3")
polish=loadSound("polish.mp3")
farm=loadSound("farm.mp3")
}

function setup() {
createCanvas(windowWidth, windowHeight)
textFont('serif')
songs.playMode('restart');
polish.playMode('restart');
farm.playMode('restart');

select('#autoplay').mouseClicked(selfPlay)
select('#tuner1').mouseClicked(dial1)
select('#tuner2').mouseClicked(dial2)
select('#tuner3').mouseClicked(dial3)
}

function draw() {
if (!started){
fill(255,20)
} else {
background(0);
}

}

function changeAll() {
crackle.loop()
radio_static.loop()
songs.play()
polish.play()
farm.play()
let songsvol = random()
songs.setVolume(songsvol)
let polvol = random()
polish.setVolume(polvol)
let farmvol = random()
farm.setVolume(farmvol)

let startpoint = random(songs.duration())
let songlength = songs.duration() - startpoint
songs.jump(startpoint,songlength)

let polishstart=random(polish.duration())
let polishlength=polish.duration() - polishstart
polish.jump(polishstart,polishlength)

let farmstart=random(farm.duration())
let farmlength = farm.duration() - farmstart
farm.jump(farmstart,farmlength)

started = true

select('#tuner1').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');
select('#tuner2').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');
select('#tuner3').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');

select('#channel1').style('opacity',songsvol)
select('#channel2').style('opacity',polvol)
select('#channel3').style('opacity',farmvol)
}

function dial1(){
songs.play()
let songsvol = random()
songs.setVolume(songsvol)

let startpoint = random(songs.duration())
let songlength = songs.duration() - startpoint
songs.jump(startpoint,songlength)

select('#tuner1').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');
select('#channel1').style('opacity',songsvol)
}
function dial2(){
polish.play()
let polvol = random()
polish.setVolume(polvol)

let polishstart=random(polish.duration())
let polishlength=polish.duration() - polishstart
polish.jump(polishstart,polishlength)

select('#tuner2').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');
select('#channel2').style('opacity',polvol)
}
function dial3(){
farm.play()
let farmvol = random()
farm.setVolume(farmvol)

let farmstart=random(farm.duration())
let farmlength = farm.duration() - farmstart
farm.jump(farmstart,farmlength)

select('#tuner3').attribute('src','snd/knob.png').style('transform', 'rotate('+random(-75,75)+'deg');
select('#channel3').style('opacity',farmvol)
}

function selfPlay(){
if (!(depressed)){
select('#autoplay').attribute('src','snd/button-on.png')
dial1()
dial2()
dial3()
} else {
select('#autoplay').attribute('src','snd/button-off.png')
songs.stop()
polish.stop()
farm.stop()
songsvol = 0;
polvol = 0;
farmvol = 0;

select('#channel1').style('opacity',farmvol)
select('#channel2').style('opacity',farmvol)
select('#channel3').style('opacity',farmvol)
}
depressed=!depressed
}

function windowResized() {
resizeCanvas(windowWidth, windowHeight)
}

Binary file added 291/snd/button-off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/button-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/buttonoff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/buttonon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/buttons.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/dial.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/knob.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 291/snd/knob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions 291/sources.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Konarzyce, Powiat Śremski, Greater Poland Voivodeship, Poland 495543__be_a_hero_not_a_patriot__farm-ext-footsteps-in-bg-chicken-hen-birds-sparrow-pigeon-cuckoo-flies-medium-wind-late-spring-poland.wav from freesound https://freesound.org/people/be_a_hero_not_a_patriot/sounds/495543/ CC0


Binary file added 291/static.mp3
Binary file not shown.
37 changes: 37 additions & 0 deletions 291/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@font-face {
font-family: avalanche;
src: url(fonts/avalanche.otf);
}
p {
font-family: avalanche;
font-size: large;
}
html, body {
margin: 0;
padding: 0;
background-color: black;
}
p,h1,h2,h3 {
color: lightgrey;
opacity: 0.2;
margin: 2em;
}
canvas {
z-index: -10;
display: block;
position: absolute;
top: 0px;
left: 0px;
}
#player {
opacity: 0.01;
width: 100vw;
height: 100vh;
}
#tuner1, #tuner2, #tuner3 {
z-index: 10;
min-width: 200px;
min-height: 200px;
width: 10vmin;
height: 10vmin;
}
Binary file added 291/yiddish-songs.mp3
Binary file not shown.

0 comments on commit 0e8a267

Please sign in to comment.