Welcome to PlayNoise.js

Create music directly in your browser with voice-to-instrument conversion and YAML-based scores!

Original Audio:

Processed Audio Banjo Instrument:

Your Original Audio

You have not uploaded any files yet.



Try YAML to Audio Conversion

Features

Voice-to-Instrument Conversion

Convert recorded voices into musical tones for unique sound generation.

YAML-Based Scores

Effortlessly write music using simple YAML syntax.

WAV File Export

Generate stereo audio and export it as downloadable WAV files.

Get Started

Use the following code snippets to quickly get started with PlayNoise.js:

Voice To Instrument:
<script src="pn-library.js"></script>
    <script>
    async function runPNExample() {
        console.log(PN);  // Debug the PN object
        PN.instrument('thickbass'); // Choose an instrument
        const song = await PN.singVoice('recording2.wav'); // Convert voice to music
        console.log("Song created:", song);
        setTimeout(() => {
            PN.save(); // Save the audio as WAV after a delay
        }, 8000);
    }
    runPNExample();
</script>
YAML Song Data:
// Define song data
<script src="pn-library.js"></script>
    <script>
length: 0.4
instrument: banjo
harmonic: first
volume: 5000
sections:
  [
    {
      C1: [a4, c5, e5, 2:f5, 3:b4, a5, b5, g5, a5],
      C2: [4:a3, b3, d4, f4, b4, 2:c5, 2:e4],
    },
  ]
      `;

      const songData = jsyaml.load(yamlContent)
      // Create and play the song
      PN.instrument("banjo");
      PN.setVolume(0.5); // Set volume level
      const song = PN.createSong(songData); // Create a song from the input data
      PN.save(song);

Supported Instruments

Explore the variety of instruments you can use with PlayNoise.js:

ThickBass

Banjo

FunckLead

60's Organ

Cello

Guitar

Contact Us

Located in South West, Cameroon

Email: office@playnoise.org