kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
835 stars 36 forks source link

faust: midi metadata not working #1417

Open ghost opened 6 months ago

ghost commented 6 months ago

if i add a basic faustdev instrument preset to my instruments list, add the declaration declare options "[midi:on][nvoices:1]"; to the beginning of the faust code and try to send multiple notes to the synth, i expect the compiler to read the options and make the synth monophonic. however, the synth stays polyphonic and plays multiple notes

is it possible to make radium and the compiler read and implement these options? this isn't just for making faust synths monophonic, but for example i'd like to implement audio effects that take in midi data

ghost commented 6 months ago

bump

kmatheussen commented 6 months ago

Maybe, but it's not very simple. Radium handle polyphony it's own way, it doesn't use faustlib for that (faust-support was implemented in 2012, which I'm pretty sure is before faustlib started supporting polyphony), so those options are ignored, but maybe it should use faustlib more.