Fork me on GitHub
#alda
<
2016-08-24
>
dave01:08:09

@randyg503 do you mean like reverb, chorus, delay, etc.?

randyg50309:08:01

@dave yes, like reverb, chorus, delay, etc.

randyg50309:08:54

@dave, where 'effects' might leverage/interface with something like JVstHost

dave13:08:22

that's a really interesting idea

dave13:08:02

i wonder if VST plugins can affect the audio output of the JVM midi synth? (that's what alda uses for playback)

randyg50316:08:38

what would the pathway look like??? alda MIDI note > javax.sound.midi.synthesizer? > audio stream > VST plugin > processed audio stream > alda > javax.sound.sampled

randyg50316:08:44

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)

dave16:08:52

that looks like it could be legit

dave16:08:11

please share the code example! i don't know too much about audio streams in java, would love to learn more

dave16:08:56

right now, we're just scheduling MIDI note on/off events and firing them in real time

dave16:08:07

it would be nice if we could capture that in an audio stream, though

dave16:08:16

that would allow us to export to wav files, for example

dave16:08:13

we could also do separate audio streams for separate instrument "tracks", and sync them up when we play/export the score

randyg50316:08:19

found code example by googling midi2wayrender.java

randyg50316:08:01

let me try that again: midi2wavrenderer.java

dave16:08:19

looks promising

dave16:08:56

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

dave16:08:49

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!