denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIDI output via libsmf (was Re: [Denemo-devel] Linking smf events to


From: Richard Shann
Subject: Re: MIDI output via libsmf (was Re: [Denemo-devel] Linking smf events to Denemo objects)
Date: Tue, 26 May 2009 18:30:08 +0100

I have pushed the code for MIDI output to jack without any intermediate
file. Because it is using data attached to the score to do the playing
it is more sensitive to things like deleting the score that is being
played. I have put in some checks for this, but without getting serious
about it, and I have yet to understand where we are going with
Staff/Voices -> JACK ports.
What is still happening if you treat it roughly (e.g. loading a new file
while one is playing, or playing two at once) is that you can get hung
notes.
I have fixed what I suspect are lurking bugs, where g_debug is used in a
callback which I guess happens under interrupt and so could crash
denemo.
I notice that in the exportmidi function every note involves a loop
through 128 (channels I think), which seems excessive...
Next I think should be to put the user in control of the MIDI events to
associate with staffs, notes etc. Then we can write scripts to play
around with the relationship between, say, staffs and channels. I will
do some more thinking about this.

Richard



On Mon, 2009-05-25 at 12:59 +0100, Richard Shann wrote:
> On Mon, 2009-05-25 at 10:08 +0100, Richard Shann wrote:
> > I've pushed this to git, not because it offers anything new yet, but
> > because I have fixed a bug in the MIDI output.
> > It will now be trivial to do the playback without intermediate file.
> I have done this, it gets rid of the problem with the current code that
> the smf structures are created at each play but never demolished.
> Now testing (especially async properties)...
> 
> Richard
> 
> 
> 
> > 
> > Richard
> > 
> > On Sun, 2009-05-24 at 17:54 +0100, Richard Shann wrote:
> > > On Sun, 2009-05-24 at 14:46 +0100, Richard Shann wrote:
> > > > Ok, I am doing exportmidi.c converting in the first instance to
> > > > creating
> > > > an smf and outputting it as a file.
> > > > 
> > > 
> > > I have done this, it was complicated by the fact that exportmidi was
> > > padding out midi events with leading 0's. Now testing.
> > > Richard
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Denemo-devel mailing list
> > > address@hidden
> > > http://lists.gnu.org/mailman/listinfo/denemo-devel
> > 
> > 
> > 
> > _______________________________________________
> > Denemo-devel mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/denemo-devel
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]