denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] A Good Idea


From: Richard Shann
Subject: Re: [Denemo-devel] A Good Idea
Date: Fri, 05 Mar 2010 14:12:22 +0000

On Fri, 2010-03-05 at 09:58 +0000, Richard Shann wrote:
> 
> (OK, I admit, I am slightly glossing over the details of information,
> (meta data I think) that will come at the start of the track, giving
> timesignature etc. You have the usual things that you can do for this
> -
> crudest would be just a flag for if you are doing import from file or
> just adding smf_event_ts that have been recorded off someone's MIDI
> controller.)

A better plan is this: whenever you hit "Record" Denemo will create an
smf_t and put an smf_track_t in it and then install the meta data for
keysig, timesig, tempo or whatever there is, using the code that is
embedded in exportmidi.c (it will get the information from the current
staff).
Once this is created it will start putting the smf_event_ts  that it
gets from your MIDI controller into the smf_track_t until you hit "Stop"

After recording you could use the routines I propose in importmidi.c to
turn the smf_track into a staff full of music notation.

Richard






reply via email to

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