Explore Philadelphia - A Fun City Guide
About this app
Discover the vibrant city of Philadelphia with an interactive city guide. Explore sights, events, transport, and local cuisine while experiencing the charm of Philly.
Complextro Instrument Simulator Complextro Instrument Simulator Click on the pads to play sounds! Set Tempo Fast Medium Slow
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Complextro Instrument Simulator</title>
<meta name="description" content="Create captivating Complextro music with this interactive instrument simulator. Experiment with synth sounds, beats, and effects to compose your unique sound!">
<meta name="keywords" content="music simulator, Complextro, instrument, sound, beats, audio, synth, creativity">
<style>
body {
background: linear-gradient(to right, #ff7e5f, #feb47b);
font-family: 'Roboto', sans-serif;
}
h1 {
color: white;
}
.button {
background-color: #f9c74f;
border: none;
padding: 10px 15px;
font-size: 18px;
margin: 10px;
cursor: pointer;
border-radius: 5px;
transition: transform 0.1s;
}
.button:hover {
transform: scale(1.1);
}
.pad {
width: 100px;
height: 100px;
background-color: #43aa8b;
display: inline-block;
margin: 10px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
}
.pad:hover {
transform: scale(1.1);
background-color: #5f9ea0;
}
</style>
<script>
const sounds = {
kick: new Audio('https://www.soundjay.com/button/sounds/button-1.mp3'),
snare: new Audio('https://www.soundjay.com/button/sounds/button-2.mp3'),
hiHat: new Audio('https://www.soundjay.com/button/sounds/button-3.mp3'),
synth1: new Audio('https://www.soundjay.com/button/sounds/button-4.mp3'),
synth2: new Audio('https://www.soundjay.com/button/sounds/button-5.mp3')
};
const playSound = (sound) => {
sounds[sound].currentTime = 0; // Reset the audio
sounds[sound].play(); // Play the sound
};
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll('.pad').forEach(pad => {
pad.addEventListener('click', () => playSound(pad.getAttribute('data-sound')));
});
const tempoButtons = document.querySelectorAll('.tempo-btn');
tempoButtons.forEach(button => {
button.addEventListener('click', () => {
const tempo = button.getAttribute('data-tempo');
playSound('kick');
setTimeout(() => playSound('snare'), tempo);
setTimeout(() => playSound('hiHat'), tempo / 2);
});
});
});
</script>
</head>
<body>
<div id="main-container" class="text-center" style="padding: 20px;">
<h1>Complextro Instrument Simulator</h1>
<h3>Click on the pads to play sounds!</h3>
<div>
<div class="pad" data-sound="kick"></div>
<div class="pad" data-sound="snare"></div>
<div class="pad" data-sound="hiHat"></div>
<div class="pad" data-sound="synth1"></div>
<div class="pad" data-sound="synth2"></div>
</div>
<h3>Set Tempo</h3>
<button class="button tempo-btn" data-tempo="500">Fast</button>
<button class="button tempo-btn" data-tempo="800">Medium</button>
<button class="button tempo-btn" data-tempo="1000">Slow</button>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!