What is Music Hacking? We’ve asked ChatGPT

Much is said about OpenAI’s ChatGPT tool, the conversational AI search engine. You can ask it to write an FM synthesiser embedded in a web page, or a conversation between the Dalai Lama and Donal Trump. 

We were curious about its understanding of Music Hacking. We were not disappointed by the result!

Prompt on ChatGPT

“Music hacking is the practice of using technology to manipulate or create music in innovative ways. This can include using software to remix existing songs, creating new music from scratch using synthesizers and other electronic instruments, or even using unconventional devices such as hacked game controllers to make music.

One of the key principles of music hacking is the idea of open source and collaboration. Many music hackers share their creations and techniques with others, and often work together to build upon each other’s ideas. This has led to the creation of a vibrant online community of music hackers, who share their work and provide feedback and support to each other.

One of the most popular tools for music hacking is the digital audio workstation (DAW), which allows users to record, edit, and produce music using a computer. DAWs often come with a wide range of virtual instruments and effects, making them ideal for creating electronic music. Another popular technique in music hacking is the use of chiptunes, which are songs created using the sound chips of old video game consoles. By using emulators or actual hardware, music hackers can create nostalgic, 8-bit style tunes that have become popular in their own right.

 

Music hacking has also been used to create experimental and avant-garde music. By using unconventional methods and technologies, music hackers are able to push the boundaries of what is considered “music” and create unique and interesting sounds.

Overall, music hacking is a fascinating and growing field that is constantly evolving. Whether you’re a seasoned musician looking to try something new, or just a curious technologist, there are many ways to get involved and explore the world of music hacking. So, if you have a passion for music and technology, why not give it a try?”

A web-based synth

write javascript code for an FM synthesiser inside an html page

The initial response was missing the buttons to start/stop the synth, and the controls to change the modulation and frequency, so we asked :

write fully functional javascript code for an fm synthesiser inside an html page

What’s amazing is that it picked up the new requirements and added the UI code. We haven’t tested the code, but let us know on Discord if it works!

				
					<!DOCTYPE html>
<html>
<body>

<!-- Create a start/stop button for the synthesizer -->
<button id="startStop">Start</button>

<!-- Create faders for the modGain and modOsc values -->
<label for="modGain">Modulation Gain:</label>
<input type="range" id="modGain" min="0" max="10" step="0.1" value="1">
<label for="modOsc">Modulation Frequency:</label>
<input type="range" id="modOsc" min="0" max="1000" step="1" value="220">

<script>
  // Create an audio context
  var audioCtx = new AudioContext();

  // Create sine wave oscillators for the carrier and modulator
  var carOsc = audioCtx.createOscillator();
  var modOsc = audioCtx.createOscillator();

  // Set the frequencies of the oscillators
  carOsc.frequency.value = 440;
  modOsc.frequency.value = 220;

  // Set the modulation index of the modulator
  var modGain = audioCtx.createGain();
  modGain.gain.value = 1;

  // Use the output of the modulator to modulate the frequency of the carrier
  modOsc.connect(modGain);
  modGain.connect(carOsc.frequency);

  // Set the gain of the carrier oscillator
  var carGain = audioCtx.createGain();
  carGain.gain.value = 0.5;

  // Connect the oscillators to the DAC
  carOsc.connect(carGain);
  carGain.connect(audioCtx.destination);

  // Function to start/stop the synthesizer
  function toggleSynthesizer() {
    if (carOsc.state === "running") {
      carOsc.stop();
      modOsc.stop();
      startStop.innerHTML = "Start";
    } else {
      carOsc.start();
      modOsc.start();
      startStop.innerHTML = "Stop";
    }
  }

  // Function to update the modGain and modOsc values from the faders
  function updateValues() {
    modGain.gain.value = modGainFader.value;
    modOsc.frequency.value = modOscFader.value;
  }

  // Get the UI elements
  var startStop = document.querySelector("#startStop");
  var modGainFader = document.querySelector("#modGain");
  var modOscFader = document.querySelector("#modOsc");

  // Set the event listeners for the UI elements
  startStop.addEventListener("click", toggleSynthesizer);
  modGainFader.addEventListener("input", updateValues);
  modOscFader.addEventListener("input", updateValues);

  // Start the oscillators
  carOsc.start();
  modOsc.start();
</script>

</body>
</

				
			

Join the future of the Music Hackspace!

16

Everyone should be able to learn and be on a creative journey. We offer opportunities to learn together, from live teachers and on-demand courses. 

We will soon be launching a crowdfunding campaign to offer even more workshops, scale our operations further and launch a subscription model to help you access our full programme of unique live and on-demand courses on musical and creative technologies.

Join us in building the world’s largest teaching platform dedicated to creative technologies.

* This is not an investment commitment at this stage. Once you have registered your interest, we’ll be in touch via email when our campaign is live and open for investment.

** Investment of this nature carry risk to your capital. Please invest aware.

Capital at risk

Crowdfunding is a way for growing businesses to receive investments from their community rather than rely on traditional financial institutions and investors.

This crowdfund gives you the chance to own shares in Music Hackspace and become a key part of our journey. Music Hackspace will be listed on Crowdcube, the UK’s largest online crowdfunding platform.

CrowdCube is an equity crowdfunding platform. 

Yes, every investor will receive shares in Music Hackspace. The number of shares you receive will be proportionate to the amount you invest. The final number of shares issued depends on the number of investors and amount of money raised.

We stand for a community based learning approach and want to include you in the next phase of Music Hackspace growth. We invite you to invest in the early stage of our development to help lower the barriers to learning creative technologies. 

Our business plan and financial overview will be available on our Crowdcube campaign page once the campaign is live. If, after reading it, you have any further questions please don’t hesitate to contact us. You’ll find our contact details within deck – we’re happy to answer all questions or supply any additional information.

All eligible customers over the age of 18 and resident of the UK or a country where they may legally receive financial promotions of the nature provided. We are partnering with CrowdCube for our seed round. To be an eligible customer you will need to sign-up with CrowdCube. 

If you are from US, Canada or Japan please contact us.

To become a shareholder in Music Hackspace please: 

1. Register your interest by signing up completing the form on this page 

2. Sign up and create an account with CrowdCube 

3. Watch out for updates from us 

4. Be ready to invest when our share offer is live.

We expect to launch in the Fall. Sign up and register your interest to be the first to know.

The campaign will last up to 30 days, ending whenever we reach our maximum investment target. If we reach our target early, we‘ll give notice 24 hours before the round closes. Please note, there is a limited amount of equity available in this round and we expect the round to fill quickly. We encourage you to invest as soon as the round opens.

Yes all investments will be made on the same terms. 

World-class brands and organisations already support us

Search results