grimmdude / MidiWriterJS

♬ A JavaScript library which provides an API for programmatically generating and creating expressive multi-track MIDI files and JSON.
MIT License
557 stars 60 forks source link

No sound in midi file #42

Closed CropFarmer closed 5 years ago

CropFarmer commented 5 years ago

Here's my code (I'm using discord.js and node.js btw, the code is supposed to make a random midi) image image

no errors occur, it's just when i open the midi file, it has no sound i did the same code with the example tracks (minus the random numbers and stuff) and the sound was fine. any fix? Edit: There is sound, but it's really really quiet. How do i make it louder?

grimmdude commented 5 years ago

Hi @CropFarmer,

Thanks for your message. I'm guessing you were able to figure out your issue since this has been closed? Depending on what method you're using to play the MIDI, using velocity:100 on your note events should increase the volume.

-Garrett