soundFloppy = loadSound('floppy.mp3');
soundNokia = loadSound('nokia-3310.mp3');
soundBoca = loadSound('dial-up-modem.mp3');
soundAim = loadSound('aim.mp3');
soundIcq = loadSound ('icq.mp3');
soundTelephone = loadSound ('telephone90s.mp3');
soundNintendo = loadSound ('nintendo.mp3');
soundGuitar = loadSound('90sr&b.mp3');
dactylog = loadFont('DACTYLOG.TTF');
vintage = loadFont('VintageQueens-PersonalUse.ttf');
avigea = loadFont('Avigea.ttf');
cnv = createCanvas(600, 700);
btn = new imageButton("floppy.png", 100 , 100);
btn.mousePressed(floppyBtnPressed);
btn.mouseReleased(floppyBtnReleased);
btnNokia = new imageButton('nokia.png', 100, 100);
btnNokia.position(150, 200);
btnNokia.mousePressed(nokiaBtnPressed);
btnNokia.mouseReleased(nokiaBtnReleased);
btnBoca = new imageButton('boca.png', 100, 100);
btnBoca.position(230, 330);
btnBoca.mousePressed(bocaBtnPressed);
btnBoca.mouseReleased(bocaBtnReleased);
btnAim = new imageButton('aim.png', 100, 100);
btnAim.position(350,230);
btnAim.mousePressed(aimBtnPressed);
btnAim.mouseReleased(aimBtnReleased);
btnIcq=new imageButton('icq.png', 100, 100);
btnIcq.position(480, 300);
btnIcq.mousePressed(icqBtnPressed);
btnIcq.mouseReleased(icqBtnReleased);
btnTelephone = new imageButton('telephone90s.png', 150, 150);
btnTelephone.position (40, 520);
btnTelephone.mousePressed(telephoneBtnPressed);
btnTelephone.mouseReleased(telephoneBtnReleased);
btnNintendo = new imageButton('nintendo.png', 150, 150);
btnNintendo.position (250, 450);
btnNintendo.mousePressed(nintendoBtnPressed);
btnNintendo.mouseReleased(nintendoBtnReleased);
btnGuitar = new imageButton('90sguitar.png', 200, 200);
btnGuitar.position(400, 450);
btnGuitar.mousePressed(guitarBtnPressed);
btnGuitar.mouseReleased(guitarBtnReleased);
headerTxt = "Sound Museum";
descriptionTxt = "Step into a nostalgic journey with Sound Museum, where you can relive the iconic sounds of classic technological devices! Our interactive platform allows you to hear the unique audio signatures of devices that shaped our digital lives.";
currentlyPlayingTxt = "...";
for(let y = 0; y < height; y++) {
let inter = map(y, 0, height, 0, 1);
let c = lerpColor(color('#ff0000'), color('#ffd27f'), inter);
for (let i = 0; i < 50; i++) {
ellipse(x, y, random(10, 30));
text(descriptionTxt, 20, 70, width - 50);
if (soundFloppy.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of a Floppy Disk...';
currentlyPlayingTxt = '...';
if (soundNokia.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Nokia';
currentlyPlayingTxt = '...';
if (soundBoca.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Boca';
currentlyPlayingTxt = '...';
if (soundAim.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Aim';
currentlyPlayingTxt = '...';
if (soundIcq.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Icq';
currentlyPlayingTxt = '...';
if (soundTelephone.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Telephone from the 90s';
currentlyPlayingTxt = '...';
if (soundNintendo.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of Nintendo';
currentlyPlayingTxt = '...';
if(soundGuitar.isPlaying()) {
currentlyPlayingTxt = 'You are listening the sound of R&B Guitar Loop from the 90s';
currentlyPlayingTxt = '...';
text(currentlyPlayingTxt, 20, height - 50, width - 50);
function floppyBtnPressed() {
function floppyBtnReleased() {
function nokiaBtnPressed() {
function nokiaBtnReleased () {
function bocaBtnPressed() {
function bocaBtnReleased () {
function aimBtnPressed() {
function aimBtnReleased() {
function icqBtnPressed () {
function icqBtnReleased() {
function telephoneBtnPressed() {
function telephoneBtnReleased () {
function nintendoBtnPressed () {
function nintendoBtnReleased() {
function guitarBtnPressed() {
function guitarBtnReleased() {