__ ___ __ ___ _
/ |/ /___ ____ ___ _________ / |/ /_ _______(_)____
/ /|_/ / __ \/ __ \/ _ \/ ___/ __ \/ /|_/ / / / / ___/ / ___/
/ / / / /_/ / / / / __/ / / /_/ / / / / /_/ (__ ) / /__
/_/ /_/\____/_/ /_/\___/_/ \____/_/ /_/\__,_/____/_/\___/
by ducks.party
About Monero Block Music Generator
The Monero Block Music Generator is a unique project that transforms Monero blockchain data into musical compositions. Here's how it works:
1. Data Collection
For each block, we collect the following data from the Monero network:
- Block Hash
- Nonce
- Number of Transactions
- Orphan Status
2. Music Generation
The collected data is used to generate music as follows:
- Sample Rate: Determined by the number of transactions in the block (minimum 1000 Hz).
- Encoding: Uses signed integers for main chain blocks and unsigned for orphaned blocks.
- Musical Scale: Created from the unique digits in the nonce value.
- Bit Depth: Fixed at 16 bits for high-quality audio.
- Channels: Mono (1 channel) for simplicity.
3. Sound Generation Process
The sound is generated through the following steps:
- The block hash is converted to a series of decimal numbers.
- Each number is used to select a note from the musical scale derived from the nonce.
- A sine wave is generated for each note, with its frequency determined by the selected scale note.
- The amplitude of each sine wave is modulated to create a more complex sound.
- The resulting waveform is converted into raw audio data.
4. Audio Output
The raw audio data is converted into a WAV file using the SoX (Sound eXchange) command-line tool. This WAV file can be played directly in the browser or downloaded for offline listening.