@randyg503 do you mean like reverb, chorus, delay, etc.?
@dave yes, like reverb, chorus, delay, etc.
@dave, where 'effects' might leverage/interface with something like JVstHost
that's a really interesting idea
i wonder if VST plugins can affect the audio output of the JVM midi synth? (that's what alda uses for playback)
what would the pathway look like??? alda MIDI note > javax.sound.midi.synthesizer? > audio stream > VST plugin > processed audio stream > alda > javax.sound.sampled
found a code example which leads me to believe that pathway is fairly accurate (additionally, it appears that VST plugins require a PCM_FLOAT encoded audio stream)
that looks like it could be legit
please share the code example! i don't know too much about audio streams in java, would love to learn more
right now, we're just scheduling MIDI note on/off events and firing them in real time
it would be nice if we could capture that in an audio stream, though
that would allow us to export to wav files, for example
we could also do separate audio streams for separate instrument "tracks", and sync them up when we play/export the score
found code example by googling midi2wayrender.java
*wav
let me try that again: midi2wavrenderer.java
https://github.com/bluenote10/gervill/blob/master/src/main/java/Midi2WavRender.java ?
looks promising
maybe instead of firing the midi events in real time, we could generate a midi file, and then use that^ to export it to a wav
i'm pretty busy these days, and focusing on other issues in alda at the moment, but if anyone is interested in hacking on this, i'd love the help!
here's the relevant alda issue https://github.com/alda-lang/alda/issues/62
the version I found was: http://www.jfugue.org/4/code/Midi2WavRenderer.java