alda

WE'VE MOVED! Join us at: http://slack.alda.io
dave 2016-08-24T01:04:09.000077Z

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

2016-08-24T09:11:01.000078Z

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

2016-08-24T09:24:54.000079Z

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

dave 2016-08-24T13:14:22.000080Z

that's a really interesting idea

dave 2016-08-24T13:15:02.000081Z

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

2016-08-24T16:09:38.000082Z

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

2016-08-24T16:34:44.000083Z

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)

dave 2016-08-24T16:34:52.000084Z

that looks like it could be legit

dave 2016-08-24T16:35:11.000085Z

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

dave 2016-08-24T16:35:56.000086Z

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

dave 2016-08-24T16:36:07.000087Z

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

dave 2016-08-24T16:36:16.000088Z

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

dave 2016-08-24T16:37:13.000089Z

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

2016-08-24T16:37:19.000090Z

found code example by googling midi2wayrender.java

2016-08-24T16:37:24.000091Z

*wav

2016-08-24T16:38:01.000092Z

let me try that again: midi2wavrenderer.java

dave 2016-08-24T16:39:19.000095Z

looks promising

dave 2016-08-24T16:39:56.000096Z

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

dave 2016-08-24T16:40:49.000097Z

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!

dave 2016-08-24T16:41:01.000098Z

here's the relevant alda issue https://github.com/alda-lang/alda/issues/62

2016-08-24T16:46:30.000101Z

the version I found was: http://www.jfugue.org/4/code/Midi2WavRenderer.java