Hello!

I'm playing around with liqudisoaps midi implementation.

I tried to modity the code i found on the savonet website:

!#/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)
out.icecast(%mp3,blah blah blah,s)

  i get the error

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,...)

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.

If LS actually uses the midi-synthesizer on the soundcard then i'm of  
course doing
something silly.

it seems like the original code (using out(s) ) is working,
but i cannot check the sound since on my server there's no soundcard  
installed.
I can only tell by seeing some
MIDI: unknown meta-event 21
errors.

Is there a fundametal misunderstanding on my side?
Is it possible to output the midi stream to icecast without outputting  
to  soundcard?

Thanks for helping!

  --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

Reply via email to