Csound
Csound is a sound and music computing system. Jird can output a Csound score corresponding to music written as ratios. If we have some Jird music in a text file music.txt, running
$ jird --csound music.txt
will produce a Csound score file music.sco.
Then if orchestra.orc is a Csound orchestra file, running
$ csound orchestra.orc music.sco
will render the music to a wav file.
In the generated Csound score the fourth p-field is the volume of the note and the fifth p-field is the frequency of the note in Hz. Below is a simple one instrument Csound orchestra file which uses the volume p4 and frequency p5 to set the amplitude and frequency for the vco2 Csound opcode:
sr = 44100
ksmps = 64
nchnls = 2
0dbfs = 5
instr 1
iAmp = p4
iFreq = p5
aVco vco2 iAmp, iFreq
kEnv madsr 0.1, 0.4, 0.6, 0.7
aLp moogladder aVco, 5000, 0.4
outall aLp*kEnv
endin
NB the default note volume in Jird is 1, which if used as a Csound oscillator amplitude can give quite a loud output. In the example orchestra above the 0dbfs reference level is set to 5 to give a quieter output. For more information see the Csound get started page.