#Note Generation

19 messages · Page 1 of 1 (latest)

sonic garnet
#

Does anyone know any good tools/libraries/theory for generating musical notes on a wide range of instruments like piano, guitar, violin, etc (e.g., generating the sound of the note F#4 on an electric guitar) and adding effects like reverb, distortion, delay, etc?
Essentially I’m trying to create a “digital instrument” using C++, and my goal right now is making an audio manager that can generate any sound based on the note, instrument and optional enabled effects with parameters.
The main requirement is being incredibly lightweight, since I want to run this on a raspberry pi 3B while also having a display, button inputs, etc.

I have quite a lot of knowledge about music in general but not at all about the technical aspects that lay under it. All I know is that there’s a formula to convert a note to a frequency and that a sine wave will produce a very basic mono tone similar to a simple synth sound.

Any information, possible libraries, etc is very much appreciated wolfcheer

clever cloakBOT
#

-# C++ @sharp jasper @fiery trench @violet sandal

fiery trench
#

you could look at using VST plugins? generally you either need a sample library or to simulate the instrument (hard to do even in commercial software), midi synths do this by outputting just what notes to play, then a processing pipeline plays the vst/soundfont and applies signals

#

given that the goal is any note/instrument/effect, probably your best bet is to pick a single instrument you want to simulate, and start looking around for research papers or examples of people simulating that instrument

#

a vst would remove the need to simulate, but doesn't always cover the full range of any given instrument, and free ones are limited. that would however give you the capability to use/modify the output
not sure exactly how... but that is what many digital audio workstations do

sonic garnet
#

Alrighttt, thank you for the information, I appreciate it

#

Looks like VST has a very high RAM usage which won’t really be doable on a raspberry pi 3B

#

Soundfont might be an option though

#

Will look more into that tomorrow

fiery trench
sonic garnet
#

After messing around a bit with Soundfont, this is also quite heavy too like you already mentioned and the sound files take up a ton of space which isnt preffered

#

I think that I'm just gonna stick to mathematical sound waves, this'll also add a pretty cool aspect to the whole project

#

Music completely created using math

#

I did find a few pretty nice formulas already for some sounds

fiery trench
#

you could look into how retro console sound chips work

#

what 'instruments' they offer, the waveforms they can do

#

the VRC7 is quite a lovely chip

#

SID is a good chip as well

#

OPL3 is another interesting one to look at