midish icon indicating copy to clipboard operation
midish copied to clipboard

List notes on track?

Open gminorcoles opened this issue 6 years ago • 4 comments

I just found midish. I think it is very cool.

I would like to list the notes and other events on a track, perhaps starting at a certain location. Is this possible? If I have a front end that takks to midish in verbose mode I would like to refresh the note list from midish instead of remembering every detail of the song in two places. I was thinking of an ncurses front end editor.

gminorcoles avatar May 30 '19 12:05 gminorcoles

On Thu, May 30, 2019 at 12:15:27PM +0000, gminorcoles wrote:

I just found midish. I think it is very cool.

I would like to list the notes and other events on a track, perhaps starting at a certain location. Is this possible?

There's no such function, but it doesn't seem difficult to add one. BTW, I also need one. Out of curiosity, how do you plan to use it? Would a list of (absolute_time, midi_event) tuples be usable?

If I have a front end that takks to midish in verbose mode I would like to refresh the note list from midish instead of remembering every detail of the song in two places. I was thinking of an ncurses front end editor.

great ;-)

ratchov avatar Jun 04 '19 13:06 ratchov

I am not even sure verbose mode is the best approach. But a list of tuples is fine. I have been looking at the code and maybe I should try to integrate the ncurses stuff directly. I am not very experienced with midi programming but it's a project I would like to do.

Thanks

gminorcoles avatar Jun 04 '19 13:06 gminorcoles

Using the verbose/batch may seem harder but it allows to properly isolate the real-time midish process from the user interface.

FWIW, before having tty support, there used to be a "rmidish" utility using the gnu readline library and the verbose/batch mode of midish. It may be useful as an example.

ratchov avatar Jun 04 '19 18:06 ratchov

You could try the new tdump command, it displays all selected events.

ratchov avatar Jun 05 '19 20:06 ratchov