Hi Romain! Am 16.12.2011 05:29, schrieb Romain Beauxis: > 2011/12/15 thomas Buehlmann <tom...@tbuhl.ch>: >> Hi, > Hi Thomas! > >> 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".) > Note that if compiled with ocaml-xmlplaylist or if > liquidsoap-plugin-xmlplaylist is installed for ubuntu and debian, > liquidsoap should be able to parse some kind of RSS, namely podcasts > and others. You can use that either directly through the playlist() > operator or programmatically using playlist.parse() (and > request.resolve() and the like..) Yes, i know that you mean. I can get the URL to an audio file referenced by RSS into LS. But that's not my point. My script parses the RSS and sends the text between <title> and <description> to a TTS (cepstral in my case), adds time and day and does write an mp3 from it. (And of course credits the feed generator :-) ) >> 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..! :-) > That's on my TODO.. :-) > > R. > I hope you can do this quick..! :-) My coffe machine is too far away from the server room..
-- Tom ------------------------------------------------------------------------------ Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users