Hi, Am 15.12.2011 16:40, schrieb Samuel Mimram: > Hi, > > This is great news to hear that somebody is finally trying to use MIDI > in Liquidsoap! The example is not correct anymore because typing is > more strict in newer version of Lqiuidsoap (I should update the > doc...). The error you get > >> At line 6, char 42: >> this value has type >> source(,midi=1+_,...) (infered at line 5, char 18-20) >> but it should be a subtype of >> source(,midi=0,...) > means that out.icecast wants a source with only audio (and no MIDI) > whereas your source obviously has a MIDI channel. The solution is > simply to drop the MIDI channel by inserting > >> !#/usr/local/bin/liquidsoap >> s = single("/music/music.mid") >> s = midi.remove([9],s) >> s = mux_audio(audio=blank(),s) >> s = synth.all.saw(s) > s = drop_midi(s) > >> out.icecast(%mp3,blah blah blah,s) > and it should work :) I should have quessed that the midi-channel was still there and disturbing the output.. Thanks! But there's now another error: the script starts, but ends shortly and in the log i get
2011/12/15 21:34:20 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock. 2011/12/15 21:34:20 [clock.wallclock_main:2] Source midi failed while streaming: Invalid_argument("index out of bounds") do i need something specialv like ladspa oder dssi compiled into LS to play midi-files? >> As i get this, mux_audio adds a blank audiochannel source(audio=1+,) >> to the source. >> and then synth.all.saw modulates this audio channel according >> to the notes in the midi-channel. > Yes, this is exactly the right scenario. At least i got that right! ;-) > Out of curiosity, do you have any specific application in mind? I have > big plans for audio synthesis in Liquidsoap but never really got > motivated enough to implement them because nobody seemed to care... > So, don't hesitate to ask if you are missing some things... No, at the moment there's not really a project. IAt this momnet i'm just exploring the endless possibilities of this fine software by extending what begun as a media player replcaement. Now 'it's a nearly complete automated station ( i even made a ugly bash script to generate MP3 from RSS newsfeeds ) so LS can play them out as "news".) In the long term i might add a "midi-jingle" every hour as a simple clock to my private stream. Like a old clock: 1 "dong" at 1 o'clock and so on, just brvore the "news" I'm sure this can be done with LS..! :-) The only thing that i couldn't programm into LS to date is to make it do a real hot, fresh coffee..! :-) > Cheers, > > Samuel. > Thank you -- Tom ------------------------------------------------------------------------------ 10 Tips for Better Server Consolidation Server virtualization is being driven by many needs. But none more important than the need to reduce IT complexity while improving strategic productivity. Learn More! http://www.accelacomm.com/jaw/sdnl/114/51507609/ _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users